Re: [RFC PATCH 26/35] KVM: SVM: Guest FPU state save/restore not needed for SEV-ES guest

2020-09-15 Thread Tom Lendacky
On 9/14/20 4:39 PM, Sean Christopherson wrote: > On Mon, Sep 14, 2020 at 03:15:40PM -0500, Tom Lendacky wrote: >> From: Tom Lendacky >> >> The guest FPU is automatically restored on VMRUN and saved on VMEXIT by >> the hardware, so there is no reason to do this in KVM. > > I assume hardware has it

Re: [RFC PATCH 26/35] KVM: SVM: Guest FPU state save/restore not needed for SEV-ES guest

2020-09-15 Thread Sean Christopherson
On Tue, Sep 15, 2020 at 09:25:18AM -0500, Tom Lendacky wrote: > On 9/14/20 4:39 PM, Sean Christopherson wrote: > > On Mon, Sep 14, 2020 at 03:15:40PM -0500, Tom Lendacky wrote: > >> From: Tom Lendacky > >> > >> The guest FPU is automatically restored on VMRUN and saved on VMEXIT by > >> the hardwa

[RFC PATCH 26/35] KVM: SVM: Guest FPU state save/restore not needed for SEV-ES guest

2020-09-14 Thread Tom Lendacky
From: Tom Lendacky The guest FPU is automatically restored on VMRUN and saved on VMEXIT by the hardware, so there is no reason to do this in KVM. Signed-off-by: Tom Lendacky --- arch/x86/kvm/svm/svm.c | 8 ++-- arch/x86/kvm/x86.c | 18 ++ 2 files changed, 20 insertions