Re: [PATCH v2 0/8] KVM: x86: nVMX GUEST_CR3 bug fix, and then some...

From: Sean Christopherson
Date: Wed Oct 30 2019 - 05:09:53 EST


On Tue, Oct 29, 2019 at 04:03:04PM +0100, Martin Lucina wrote:
> (Cc:s trimmed)
>
> Hi,
>
> On Monday, 30.09.2019 at 12:42, Reto Buerki wrote:
> > On 9/27/19 11:45 PM, Sean Christopherson wrote:
> > > Sean Christopherson (8):
> > > KVM: nVMX: Always write vmcs02.GUEST_CR3 during nested VM-Enter
> > > KVM: VMX: Skip GUEST_CR3 VMREAD+VMWRITE if the VMCS is up-to-date
> > > KVM: VMX: Consolidate to_vmx() usage in RFLAGS accessors
> > > KVM: VMX: Optimize vmx_set_rflags() for unrestricted guest
> > > KVM: x86: Add WARNs to detect out-of-bounds register indices
> > > KVM: x86: Fold 'enum kvm_ex_reg' definitions into 'enum kvm_reg'
> > > KVM: x86: Add helpers to test/mark reg availability and dirtiness
> > > KVM: x86: Fold decache_cr3() into cache_reg()
> > >
> > > arch/x86/include/asm/kvm_host.h | 5 +-
> > > arch/x86/kvm/kvm_cache_regs.h | 67 +++++++++++++++++------
> > > arch/x86/kvm/svm.c | 5 --
> > > arch/x86/kvm/vmx/nested.c | 14 ++++-
> > > arch/x86/kvm/vmx/vmx.c | 94 ++++++++++++++++++---------------
> > > arch/x86/kvm/x86.c | 13 ++---
> > > arch/x86/kvm/x86.h | 6 +--
> > > 7 files changed, 123 insertions(+), 81 deletions(-)
> >
> > Series:
> > Tested-by: Reto Buerki <reet@xxxxxxxxxxx>
>
> Any chance of this series making it into 5.4? Unless I'm looking in the
> wrong place, I don't see the changes in either kvm.git or Linus' tree.

It's queued up in kvm.git for 5.5. That being said, the first patch
should go into 5.4 (it's also tagged for stable). The next round of KVM
fixes for 5.4 will probably be delayed due to KVM Forum.

Paolo?