Re: [RFC 7/7] KVM: VMX: Enable PKS for nested VM

2020-08-14 Thread Jim Mattson
On Fri, Aug 14, 2020 at 3:09 AM Chenyi Qiang wrote: > > > > On 8/14/2020 1:52 AM, Jim Mattson wrote: > > On Wed, Aug 12, 2020 at 9:54 PM Chenyi Qiang wrote: > >> > >> > >> > >> On 8/11/2020 8:05 AM, Jim Mattson wrote: > >>> On Fri, Aug 7, 2020 at 1:47 AM Chenyi Qiang > >>> wrote: > >

Re: [RFC 7/7] KVM: VMX: Enable PKS for nested VM

2020-08-14 Thread Chenyi Qiang
On 8/14/2020 1:52 AM, Jim Mattson wrote: On Wed, Aug 12, 2020 at 9:54 PM Chenyi Qiang wrote: On 8/11/2020 8:05 AM, Jim Mattson wrote: On Fri, Aug 7, 2020 at 1:47 AM Chenyi Qiang wrote: PKS MSR passes through guest directly. Configure the MSR to match the L0/L1 settings so that nested

Re: [RFC 7/7] KVM: VMX: Enable PKS for nested VM

2020-08-13 Thread Jim Mattson
On Wed, Aug 12, 2020 at 9:54 PM Chenyi Qiang wrote: > > > > On 8/11/2020 8:05 AM, Jim Mattson wrote: > > On Fri, Aug 7, 2020 at 1:47 AM Chenyi Qiang wrote: > >> > >> PKS MSR passes through guest directly. Configure the MSR to match the > >> L0/L1 settings so that nested VM runs PKS properly. >

Re: [RFC 7/7] KVM: VMX: Enable PKS for nested VM

2020-08-12 Thread Chenyi Qiang
On 8/11/2020 8:05 AM, Jim Mattson wrote: On Fri, Aug 7, 2020 at 1:47 AM Chenyi Qiang wrote: PKS MSR passes through guest directly. Configure the MSR to match the L0/L1 settings so that nested VM runs PKS properly. Signed-off-by: Chenyi Qiang --- arch/x86/kvm/vmx/nested.c | 32

Re: [RFC 7/7] KVM: VMX: Enable PKS for nested VM

2020-08-12 Thread Jim Mattson
On Wed, Aug 12, 2020 at 8:00 AM Sean Christopherson wrote: > > On Mon, Aug 10, 2020 at 05:05:36PM -0700, Jim Mattson wrote: > > On Fri, Aug 7, 2020 at 1:47 AM Chenyi Qiang wrote: > > > > > > PKS MSR passes through guest directly. Configure the MSR to match the > > > L0/L1 settings so that nested

Re: [RFC 7/7] KVM: VMX: Enable PKS for nested VM

2020-08-12 Thread Sean Christopherson
On Mon, Aug 10, 2020 at 05:05:36PM -0700, Jim Mattson wrote: > On Fri, Aug 7, 2020 at 1:47 AM Chenyi Qiang wrote: > > > > PKS MSR passes through guest directly. Configure the MSR to match the > > L0/L1 settings so that nested VM runs PKS properly. > > > > Signed-off-by: Chenyi Qiang > > --- > >

Re: [RFC 7/7] KVM: VMX: Enable PKS for nested VM

2020-08-10 Thread Jim Mattson
On Fri, Aug 7, 2020 at 1:47 AM Chenyi Qiang wrote: > > PKS MSR passes through guest directly. Configure the MSR to match the > L0/L1 settings so that nested VM runs PKS properly. > > Signed-off-by: Chenyi Qiang > --- > arch/x86/kvm/vmx/nested.c | 32 >

[RFC 7/7] KVM: VMX: Enable PKS for nested VM

2020-08-07 Thread Chenyi Qiang
PKS MSR passes through guest directly. Configure the MSR to match the L0/L1 settings so that nested VM runs PKS properly. Signed-off-by: Chenyi Qiang --- arch/x86/kvm/vmx/nested.c | 32 arch/x86/kvm/vmx/vmcs12.c | 2 ++ arch/x86/kvm/vmx/vmcs12.h | 6 +-