]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: Skip shadow page resync on CR3 switch when indicated by guest
authorJunaid Shahid <junaids@google.com>
Wed, 27 Jun 2018 21:59:18 +0000 (14:59 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:59:00 +0000 (17:59 +0200)
commitfe6abfa17c46a39835467716c98764f4e140a794
tree37e602fdc99567f8e5a702dfdbca00d415327099
parent42ca3f1e72646082d965e4c4814ee6b1f8d95c92
kvm: x86: Skip shadow page resync on CR3 switch when indicated by guest

When the guest indicates that the TLB doesn't need to be flushed in a
CR3 switch, we can also skip resyncing the shadow page tables since an
out-of-sync shadow page table is equivalent to an out-of-sync TLB.

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