summaryrefslogtreecommitdiffstats
path: root/hw/ide/macio.c
diff options
context:
space:
mode:
authorMaciej S. Szmigiero2022-05-23 18:26:58 +0200
committerPaolo Bonzini2022-05-25 21:26:35 +0200
commit267b5e7e378afd260004cb37a66a6fcd641e3b53 (patch)
treeaf356193ca979a9a320b24f56d23f1914b8341e1 /hw/ide/macio.c
parenthw/audio/ac97: Remove unneeded local variables (diff)
downloadqemu-267b5e7e378afd260004cb37a66a6fcd641e3b53.tar.gz
qemu-267b5e7e378afd260004cb37a66a6fcd641e3b53.tar.xz
qemu-267b5e7e378afd260004cb37a66a6fcd641e3b53.zip
target/i386/kvm: Fix disabling MPX on "-cpu host" with MPX-capable host
Since KVM commit 5f76f6f5ff96 ("KVM: nVMX: Do not expose MPX VMX controls when guest MPX disabled") it is not possible to disable MPX on a "-cpu host" just by adding "-mpx" there if the host CPU does indeed support MPX. QEMU will fail to set MSR_IA32_VMX_TRUE_{EXIT,ENTRY}_CTLS MSRs in this case and so trigger an assertion failure. Instead, besides "-mpx" one has to explicitly add also "-vmx-exit-clear-bndcfgs" and "-vmx-entry-load-bndcfgs" to QEMU command line to make it work, which is a bit convoluted. Make the MPX-related bits in FEAT_VMX_{EXIT,ENTRY}_CTLS dependent on MPX being actually enabled so such workarounds are no longer necessary. Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> Message-Id: <51aa2125c76363204cc23c27165e778097c33f0b.1653323077.git.maciej.szmigiero@oracle.com> Cc: qemu-stable@nongnu.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/ide/macio.c')
0 files changed, 0 insertions, 0 deletions