Skip to content
Commit 93c4adc7 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 36be0b9d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment