Re: [PATCH RFC v1 17/20] KVM: x86: Prepare APX state setting in XCR0

Chang S. Bae
2025-11-13T23:32:16Z

On 11/11/2025 8:59 AM, Paolo Bonzini wrote:
>
> You should also adjust set_xcr to reject setting BNDREGS and APX

/* MPX and APX conflict in the non-compacted XSAVE format */
if (xcr0 & XFEATURE_MASK_BNDREGS && xcr0 & XFEATURE_MASK_APX)
return 1;

> together (QEMU should also reject MPX and APX together in CPUID, but KVM
> doesn't care enough about invalid CPUID configuration).
Zhao, please ensure this on your QEMU patches.