diff options
author | Jim Mattson <jmattson@google.com> | 2017-05-23 11:52:52 -0700 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2017-06-07 16:28:15 +0200 |
commit | a8b6fda38f80e75afa3b125c9e7f2550b579454b (patch) | |
tree | abf9f0e5c51970832f3175faac041796a27479d7 /mm/swapfile.c | |
parent | 9d643f63128bcec2b845fd0719a6b971b68c59cc (diff) | |
download | lwn-a8b6fda38f80e75afa3b125c9e7f2550b579454b.tar.gz lwn-a8b6fda38f80e75afa3b125c9e7f2550b579454b.zip |
kvm: vmx: Do not disable intercepts for BNDCFGS
The MSR permission bitmaps are shared by all VMs. However, some VMs
may not be configured to support MPX, even when the host does. If the
host supports VMX and the guest does not, we should intercept accesses
to the BNDCFGS MSR, so that we can synthesize a #GP
fault. Furthermore, if the host does not support MPX and the
"ignore_msrs" kvm kernel parameter is set, then we should intercept
accesses to the BNDCFGS MSR, so that we can skip over the rdmsr/wrmsr
without raising a #GP fault.
Fixes: da8999d31818fdc8 ("KVM: x86: Intel MPX vmx and msr handle")
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions