diff options
author | 2014-03-05 23:19:52 +0100 | |
---|---|---|
committer | 2014-03-17 12:21:39 +0100 | |
commit | 93c4adc7afedf9b0ec190066d45b6d67db5270da (patch) | |
tree | 8b941c7e959fab7a677df0d6d7c4052ec468342d /virt/kvm | |
parent | KVM: x86: Add nested virtualization support for MPX (diff) | |
download | linux-dev-93c4adc7afedf9b0ec190066d45b6d67db5270da.tar.xz linux-dev-93c4adc7afedf9b0ec190066d45b6d67db5270da.zip |
KVM: x86: handle missing MPX in nested virtualization
When doing nested virtualization, we may be able to read BNDCFGS but
still not be allowed to write to GUEST_BNDCFGS in the VMCS. Guard
writes to the field with vmx_mpx_supported(), and similarly hide the
MSR from userspace if the processor does not support the field.
We could work around this with the generic MSR save/load machinery,
but there is only a limited number of MSR save/load slots and it is
not really worthwhile to waste one for a scenario that should not
happen except in the nested virtualization case.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions