, 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
> ; 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月
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
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
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
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
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
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