Re: [RFC PATCH 05/35] KVM: SVM: Add initial support for SEV-ES GHCB access to KVM

2020-09-16 Thread Tom Lendacky
On 9/15/20 11:28 AM, Sean Christopherson wrote: > On Tue, Sep 15, 2020 at 08:24:22AM -0500, Tom Lendacky wrote: >> On 9/14/20 3:58 PM, Sean Christopherson wrote: @@ -79,6 +88,9 @@ static inline void kvm_register_write(struct kvm_vcpu *vcpu, int reg, if (WARN_ON_ONCE((unsigned

Re: [RFC PATCH 05/35] KVM: SVM: Add initial support for SEV-ES GHCB access to KVM

2020-09-15 Thread Tom Lendacky
On 9/14/20 3:58 PM, Sean Christopherson wrote: > On Mon, Sep 14, 2020 at 03:15:19PM -0500, Tom Lendacky wrote: >> From: Tom Lendacky >> >> Provide initial support for accessing the GHCB when needing to access >> registers for an SEV-ES guest. The support consists of: >> >> - Accessing the GHCB

Re: [RFC PATCH 05/35] KVM: SVM: Add initial support for SEV-ES GHCB access to KVM

2020-09-15 Thread Sean Christopherson
On Tue, Sep 15, 2020 at 08:24:22AM -0500, Tom Lendacky wrote: > On 9/14/20 3:58 PM, Sean Christopherson wrote: > >> @@ -79,6 +88,9 @@ static inline void kvm_register_write(struct kvm_vcpu > >> *vcpu, int reg, > >>if (WARN_ON_ONCE((unsigned int)reg >= NR_VCPU_REGS)) > >>return; >

[RFC PATCH 05/35] KVM: SVM: Add initial support for SEV-ES GHCB access to KVM

2020-09-14 Thread Tom Lendacky
From: Tom Lendacky Provide initial support for accessing the GHCB when needing to access registers for an SEV-ES guest. The support consists of: - Accessing the GHCB instead of the VMSA when reading and writing guest registers (after the VMSA has been encrypted). - Creating register