Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1528349

Re: [PATCH 0/4] VMX Capability MSRs

From Paolo Bonzini <pbonzini@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 0/4] VMX Capability MSRs
Date 2016-11-23 12:50 +0100
Message-ID <sGEdQ-4jn-21@gated-at.bofh.it> (permalink)
References <sGuo9-6vC-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 23/11/2016 02:14, David Matlack wrote:
> This patchset includes v2 of "KVM: nVMX: support restore of VMX capability
> MSRs" (patch 1) as well as some additional related patches that came up
> while preparing v2.
> 
> Patches 2 and 3 make KVM's emulation of MSR_IA32_VMX_CR{0,4}_FIXED1 more
> accurate. Patch 4 fixes a bug in emulated VM-entry that came up when
> testing patches 2 and 3.
> 
> Changes since v1:
>   * Support restoring less-capable versions of MSR_IA32_VMX_BASIC,
>     MSR_IA32_VMX_CR{0,4}_FIXED{0,1}.
>   * Include VMX_INS_OUTS in MSR_IA32_VMX_BASIC initial value.
> 
> David Matlack (4):
>   KVM: nVMX: support restore of VMX capability MSRs
>   KVM: nVMX: fix checks on CR{0,4} during virtual VMX operation
>   KVM: nVMX: accurate emulation of MSR_IA32_CR{0,4}_FIXED1
>   KVM: nVMX: load GUEST_EFER after GUEST_CR0 during emulated VM-entry
> 
>  arch/x86/include/asm/vmx.h |  31 ++++
>  arch/x86/kvm/vmx.c         | 443 +++++++++++++++++++++++++++++++++++++++------
>  2 files changed, 421 insertions(+), 53 deletions(-)
> 

The main question is whether patches 2-3 actually make
vmx_restore_fixed0/1_msr unnecessary, otherwise looks great.

It would be nice to have a testcase for patch 4, since it could go in
independently.

Paolo

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] VMX Capability MSRs David Matlack <dmatlack@google.com> - 2016-11-23 02:20 +0100
  [PATCH 1/4] KVM: nVMX: support restore of VMX capability MSRs David Matlack <dmatlack@google.com> - 2016-11-23 02:20 +0100
    Re: [PATCH 1/4] KVM: nVMX: support restore of VMX capability MSRs Paolo Bonzini <pbonzini@redhat.com> - 2016-11-23 12:50 +0100
  [PATCH 2/4] KVM: nVMX: fix checks on CR{0,4} during virtual VMX operation David Matlack <dmatlack@google.com> - 2016-11-23 02:20 +0100
    Re: [PATCH 2/4] KVM: nVMX: fix checks on CR{0,4} during virtual VMX  operation Paolo Bonzini <pbonzini@redhat.com> - 2016-11-23 12:40 +0100
  [PATCH 4/4] KVM: nVMX: load GUEST_EFER after GUEST_CR0 during emulated VM-entry David Matlack <dmatlack@google.com> - 2016-11-23 02:30 +0100
  Re: [PATCH 0/4] VMX Capability MSRs Paolo Bonzini <pbonzini@redhat.com> - 2016-11-23 12:50 +0100

csiph-web