diff options
author | Junaid Shahid <junaids@google.com> | 2018-06-27 14:59:09 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-08-06 17:58:53 +0200 |
commit | 0aab33e4f9459fc80378bc2a089d5784fe8ccd3b (patch) | |
tree | b52ac79111412139dea359863fbc997fd64a8428 /include/net/rtnetlink.h | |
parent | 6e42782f516f05c8030f63308f2457681b1c9919 (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/rtnetlink.h')
0 files changed, 0 insertions, 0 deletions