Re: [edk2-devel] [PATCH v6 1/6] OvmfPkg/BaseMemEncryptLib: Detect SEV live migration feature.

2021-08-10 Thread Lendacky, Thomas via groups.io
On 8/10/21 1:05 AM, Gerd Hoffmann wrote: > Hi, > >>> I still really don't understand the need for the CPUID loop. KVM only ever >>> programs CPUID function 0x4000, right? > > Nope. When you enable hyper-v emulation features you'll go find the kvm > cpuid @ 0x4000 and the hyper-v cpuid

Re: [edk2-devel] [PATCH v6 1/6] OvmfPkg/BaseMemEncryptLib: Detect SEV live migration feature.

2021-08-10 Thread Gerd Hoffmann
Hi, > > I still really don't understand the need for the CPUID loop. KVM only ever > > programs CPUID function 0x4000, right? Nope. When you enable hyper-v emulation features you'll go find the kvm cpuid @ 0x4000 and the hyper-v cpuid @ 0x4100 (or the other way around, not sure).

Re: [edk2-devel] [PATCH v6 1/6] OvmfPkg/BaseMemEncryptLib: Detect SEV live migration feature.

2021-08-09 Thread Ashish Kalra via groups.io
Hello Tom, On Mon, Aug 09, 2021 at 08:41:27AM -0500, Tom Lendacky wrote: > On 8/2/21 7:31 AM, Ashish Kalra wrote: > > + > > + Signature[12] = '\0'; > > + for (mKvmLeaf = 0x4000; mKvmLeaf < 0x4001; mKvmLeaf += 0x100) { > > I still really don't understand the need for the CPUID loop. KVM

Re: [edk2-devel] [PATCH v6 1/6] OvmfPkg/BaseMemEncryptLib: Detect SEV live migration feature.

2021-08-09 Thread Lendacky, Thomas via groups.io
On 8/2/21 7:31 AM, Ashish Kalra wrote: > From: Ashish Kalra > > Add support to check if we are running inside KVM HVM and > KVM HVM supports SEV Live Migration feature. > > Cc: Jordan Justen > Cc: Ard Biesheuvel > Signed-off-by: Ashish Kalra > --- >

[edk2-devel] [PATCH v6 1/6] OvmfPkg/BaseMemEncryptLib: Detect SEV live migration feature.

2021-08-02 Thread Ashish Kalra via groups.io
From: Ashish Kalra Add support to check if we are running inside KVM HVM and KVM HVM supports SEV Live Migration feature. Cc: Jordan Justen Cc: Ard Biesheuvel Signed-off-by: Ashish Kalra --- OvmfPkg/Include/Library/MemEncryptSevLib.h| 27 ++