aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2020-09-23 21:53:52 +0000
committerPaolo Bonzini <[email protected]>2020-09-25 12:56:35 +0000
commit8d214c481611b29458a57913bd786f0ac06f0605 (patch)
tree31190bdf4f18c022e92f397990fd0a7bde2ff1f1 /fs/btrfs/dev-replace.c
parentKVM: x86: fix MSR_IA32_TSC read for nested migration (diff)
downloadkernel-8d214c481611b29458a57913bd786f0ac06f0605.tar.gz
kernel-8d214c481611b29458a57913bd786f0ac06f0605.zip
KVM: x86: Reset MMU context if guest toggles CR4.SMAP or CR4.PKE
Reset the MMU context during kvm_set_cr4() if SMAP or PKE is toggled. Recent commits to (correctly) not reload PDPTRs when SMAP/PKE are toggled inadvertantly skipped the MMU context reset due to the mask of bits that triggers PDPTR loads also being used to trigger MMU context resets. Fixes: 427890aff855 ("kvm: x86: Toggling CR4.SMAP does not load PDPTEs in PAE mode") Fixes: cb957adb4ea4 ("kvm: x86: Toggling CR4.PKE does not load PDPTEs in PAE mode") Cc: Jim Mattson <[email protected]> Cc: Peter Shier <[email protected]> Cc: Oliver Upton <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions