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

From: Chang S. Bae

Date: Thu Nov 13 2025 - 18:32:16 EST


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.