aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorPaolo Bonzini <[email protected]>2020-09-29 12:31:32 +0000
committerPaolo Bonzini <[email protected]>2020-10-03 09:07:40 +0000
commitb502e6ecdc3b6d381bd72c5f879bc1e00d6fe7db (patch)
treeee7378f38763f315a253ef615ea26cc163c41bed /fs/btrfs/dev-replace.c
parentKVM: SVM: Add a dedicated INVD intercept routine (diff)
downloadkernel-b502e6ecdc3b6d381bd72c5f879bc1e00d6fe7db.tar.gz
kernel-b502e6ecdc3b6d381bd72c5f879bc1e00d6fe7db.zip
KVM: VMX: update PFEC_MASK/PFEC_MATCH together with PF intercept
The PFEC_MASK and PFEC_MATCH fields in the VMCS reverse the meaning of the #PF intercept bit in the exception bitmap when they do not match. This means that, if PFEC_MASK and/or PFEC_MATCH are set, the hypervisor can get a vmexit for #PF exceptions even when the corresponding bit is clear in the exception bitmap. This is unexpected and is promptly detected by a WARN_ON_ONCE. To fix it, reset PFEC_MASK and PFEC_MATCH when the #PF intercept is disabled (as is common with enable_ept && !allow_smaller_maxphyaddr). Reported-by: Qian Cai <[email protected]>> Reported-by: Naresh Kamboju <[email protected]> Tested-by: Naresh Kamboju <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions