Re: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support for the XGETBV instruction

2020-07-23 Thread Lendacky, Thomas
, Ray Subject: Re: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support for the XGETBV instruction On 7/22/20 8:16 PM, Gao, Liming wrote: Laszlo: -Original Message- From: Laszlo Ersek Sent: 2020年7月23日 4:28 To: Liu, Zhiguang ; devel@edk2.groups.io; thomas.lenda...@amd.com Cc

Re: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support for the XGETBV instruction

2020-07-23 Thread Liming Gao
> ; Ni, Ray > Subject: Re: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support for > the XGETBV instruction > > On 7/22/20 8:16 PM, Gao, Liming wrote: > > Laszlo: > > > > -Original Message- > > From: Laszlo Ersek > > Sent: 2020年7月

Re: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support for the XGETBV instruction

2020-07-23 Thread Lendacky, Thomas
Subject: Re: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support for the XGETBV instruction On 07/22/20 02:55, Liu, Zhiguang wrote: Hi Tom, Nasm is a cross-OS assembly code and can be used in Linux. So I think we don't need implement the same function in GccInline.c, we can just use

Re: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support for the XGETBV instruction

2020-07-22 Thread Liming Gao
To: devel@edk2.groups.io >> Cc: Brijesh Singh ; Ard Biesheuvel >> ; Dong, Eric ; Justen, >> Jordan L ; Laszlo Ersek >> ; Gao, Liming ; Kinney, >> Michael D ; Ni, Ray >> Subject: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support >> for the XGETBV inst

Re: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support for the XGETBV instruction

2020-07-22 Thread Lendacky, Thomas
Behalf Of >>> Lendacky, Thomas >>> Sent: Wednesday, July 22, 2020 5:19 AM >>> To: devel@edk2.groups.io >>> Cc: Brijesh Singh ; Ard Biesheuvel >>> ; Dong, Eric ; Justen, >>> Jordan L ; Laszlo Ersek ; >>> Gao, Liming ; Kinney, Micha

Re: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support for the XGETBV instruction

2020-07-22 Thread Laszlo Ersek
Biesheuvel >> ; Dong, Eric ; Justen, >> Jordan L ; Laszlo Ersek ; >> Gao, Liming ; Kinney, Michael D >> ; Ni, Ray >> Subject: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support for >> the XGETBV instruction >> >> From: Tom Lendacky >&g

Re: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support for the XGETBV instruction

2020-07-21 Thread Zhiguang Liu
as > Sent: Wednesday, July 22, 2020 5:19 AM > To: devel@edk2.groups.io > Cc: Brijesh Singh ; Ard Biesheuvel > ; Dong, Eric ; Justen, > Jordan L ; Laszlo Ersek ; > Gao, Liming ; Kinney, Michael D > ; Ni, Ray > Subject: [edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add sup

[edk2-devel] [PATCH v11 06/46] MdePkg/BaseLib: Add support for the XGETBV instruction

2020-07-21 Thread Lendacky, Thomas
From: Tom Lendacky BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2198 Under SEV-ES, a CPUID instruction requires the current value of the XCR0 register. In order to retrieve that value, the XGETBV instruction needs to be executed. Provide the necessary support to execute the XGETBV