diff options
author | 2022-02-25 18:22:43 +0000 | |
---|---|---|
committer | 2022-03-01 08:58:24 -0500 | |
commit | f6d0a2521ce1cc3aea760ea42b43c428e1c98108 (patch) | |
tree | 95b50aa25f3342bdd650c39ec6dcefc42c3e1d36 /mm/util.c | |
parent | KVM: x86/emulator: Move the unhandled outer privilege level logic of far return into __load_segment_descriptor() (diff) | |
download | wireguard-linux-f6d0a2521ce1cc3aea760ea42b43c428e1c98108.tar.xz wireguard-linux-f6d0a2521ce1cc3aea760ea42b43c428e1c98108.zip |
KVM: x86: Invoke kvm_mmu_unload() directly on CR4.PCIDE change
Replace a KVM_REQ_MMU_RELOAD request with a direct kvm_mmu_unload() call
when the guest's CR4.PCIDE changes. This will allow tweaking the logic
of KVM_REQ_MMU_RELOAD to free only obsolete/invalid roots, which is the
historical intent of KVM_REQ_MMU_RELOAD. The recent PCIDE behavior is
the only user of KVM_REQ_MMU_RELOAD that doesn't mark affected roots as
obsolete, needs to unconditionally unload the entire MMU, _and_ affects
only the current vCPU.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220225182248.3812651-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions