]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
kvm: x86: Use fast CR3 switch for nested VMX
authorJunaid Shahid <junaids@google.com>
Wed, 27 Jun 2018 21:59:11 +0000 (14:59 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:58:54 +0000 (17:58 +0200)
commit50c28f21d045dde8c52548f8482d456b3f0956f5
treef0c046a9dfba1a1b0aec3b286faed82df10dc92e
parent1c53da3fa3a333eb15ee5a154700e75d135c21c8
kvm: x86: Use fast CR3 switch for nested VMX

Use the fast CR3 switch mechanism to locklessly change the MMU root
page when switching between L1 and L2. The switch from L2 to L1 should
always go through the fast path, while the switch from L1 to L2 should
go through the fast path if L1's CR3/EPTP for L2 hasn't changed
since the last time.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu.h
arch/x86/kvm/vmx.c
virt/kvm/kvm_main.c