forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitb502e6e
committed
KVM: VMX: update PFEC_MASK/PFEC_MATCH together with PF intercept
The PFEC_MASK and PFEC_MATCH fields in the VMCS reverse the meaning ofthe #PF intercept bit in the exception bitmap when they do not match.This means that, if PFEC_MASK and/or PFEC_MATCH are set, thehypervisor can get a vmexit for #PF exceptions even when thecorresponding 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 interceptis disabled (as is common with enable_ept && !allow_smaller_maxphyaddr).Reported-by: Qian Cai <cai@redhat.com>>Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>Tested-by: Naresh Kamboju <naresh.kamboju@linaro.org>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent4bb05f3 commitb502e6e
1 file changed
+12
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
797 | 809 | | |
798 | 810 | | |
799 | 811 | | |
| |||
4355 | 4367 | | |
4356 | 4368 | | |
4357 | 4369 | | |
4358 | | - | |
4359 | | - | |
4360 | | - | |
4361 | | - | |
4362 | | - | |
4363 | | - | |
4364 | | - | |
4365 | | - | |
4366 | | - | |
4367 | | - | |
4368 | 4370 | | |
4369 | 4371 | | |
4370 | 4372 | | |
| |||
0 commit comments
Comments
(0)