]> Git Repo - linux.git/commit
KVM: X86: Don't reset mmu context when toggling X86_CR4_PGE
authorLai Jiangshan <[email protected]>
Sun, 19 Sep 2021 02:42:46 +0000 (10:42 +0800)
committerPaolo Bonzini <[email protected]>
Fri, 22 Oct 2021 09:19:29 +0000 (05:19 -0400)
commita91a7c7096005113d8e749fd8dfdd3e1eecee263
treefc845ad074a0eb01ad296a91e1cd8869ce1c8df0
parent552617382c197949ff965a3559da8952bf3c1fa5
KVM: X86: Don't reset mmu context when toggling X86_CR4_PGE

X86_CR4_PGE doesn't participate in kvm_mmu_role, so the mmu context
doesn't need to be reset.  It is only required to flush all the guest
tlb.

It is also inconsistent that X86_CR4_PGE is in KVM_MMU_CR4_ROLE_BITS
while kvm_mmu_role doesn't use X86_CR4_PGE.  So X86_CR4_PGE is also
removed from KVM_MMU_CR4_ROLE_BITS.

Signed-off-by: Lai Jiangshan <[email protected]>
Reviewed-by: Sean Christopherson <[email protected]>
Message-Id: <20210919024246[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/kvm/mmu.h
arch/x86/kvm/x86.c
This page took 0.050995 seconds and 4 git commands to generate.