]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: vmx: hyper-v: don't pass EPT configuration info to vmx_hv_remote_flush_tlb()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 11 Oct 2018 10:03:12 +0000 (12:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 13 Oct 2018 09:38:54 +0000 (11:38 +0200)
commit33dd1a289efd76ab6b4c454a8dafb6c08cbb6734
tree9fa36531e4f2a6980e5a82a5370247966d3eeea3
parente7ba8d3a99da3bbba9d1bb8ec03ea12448d01dc7
KVM: vmx: hyper-v: don't pass EPT configuration info to vmx_hv_remote_flush_tlb()

I'm observing random crashes in multi-vCPU L2 guests running on KVM on
Hyper-V. I bisected the issue to the commit e40df7ff9f3a ("KVM: vmx: Add
tlb_remote_flush callback support"). Hyper-V TLFS states:

"AddressSpace specifies an address space ID (an EPT PML4 table pointer)"

So apparently, Hyper-V doesn't expect us to pass naked EPTP, only PML4
pointer should be used. Strip off EPT configuration information before
calling into vmx_hv_remote_flush_tlb().

Fixes: e40df7ff9f3a ("KVM: vmx: Add tlb_remote_flush callback support")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c