summaryrefslogtreecommitdiff
path: root/include/net/slhc_vj.h
diff options
context:
space:
mode:
authorJunaid Shahid <junaids@google.com>2018-06-27 14:59:09 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2018-08-06 17:58:53 +0200
commit0aab33e4f9459fc80378bc2a089d5784fe8ccd3b (patch)
treeb52ac79111412139dea359863fbc997fd64a8428 /include/net/slhc_vj.h
parent6e42782f516f05c8030f63308f2457681b1c9919 (diff)
kvm: x86: Add support for fast CR3 switch across different MMU modes
This generalizes the lockless CR3 switch path to be able to work across different MMU modes (e.g. nested vs non-nested) by checking that the expected page role of the new root page matches the page role of the previously stored root page in addition to checking that the new CR3 matches the previous CR3. Furthermore, instead of loading the hardware CR3 in fast_cr3_switch(), it is now done in vcpu_enter_guest(), as by that time the MMU context would be up-to-date with the VCPU mode. Signed-off-by: Junaid Shahid <junaids@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/net/slhc_vj.h')
0 files changed, 0 insertions, 0 deletions