OSDN Git Service

kvm: x86: Support resetting the MMU context without resetting roots
authorJunaid Shahid <junaids@google.com>
Wed, 27 Jun 2018 21:59:10 +0000 (14:59 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:58:54 +0000 (17:58 +0200)
commit1c53da3fa3a333eb15ee5a154700e75d135c21c8
tree66492453384245c38e368e5e182d91b65159f67e
parent0aab33e4f9459fc80378bc2a089d5784fe8ccd3b
kvm: x86: Support resetting the MMU context without resetting roots

This adds support for re-initializing the MMU context in a different
mode while preserving the active root_hpa and the prev_root.

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