aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2022-02-26 00:15:25 +0000
committerPaolo Bonzini <[email protected]>2022-03-08 09:31:51 -0500
commitc8e5a0d0e9bcc67b095e44c8f4420d4ed08ff06a (patch)
treed13c6b4f6726ddf74afd4cd070422838d04b5beb /net/lapb/lapb_timer.c
parent614f6970aa70242a3f8a8051b01244c029f77b2a (diff)
KVM: x86/mmu: Check for !leaf=>leaf, not PFN change, in TDP MMU SP removal
Look for a !leaf=>leaf conversion instead of a PFN change when checking if a SPTE change removed a TDP MMU shadow page. Convert the PFN check into a WARN, as KVM should never change the PFN of a shadow page (except when its being zapped or replaced). From a purely theoretical perspective, it's not illegal to replace a SP with a hugepage pointing at the same PFN. In practice, it's impossible as that would require mapping guest memory overtop a kernel-allocated SP. Either way, the check is odd. Signed-off-by: Sean Christopherson <[email protected]> Reviewed-by: Ben Gardon <[email protected]> Message-Id: <[email protected]> Reviewed-by: Mingwei Zhang <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions