Re: [PATCH RFC v1 06/11] x86/fpu/mpx: Remove MPX xstate component support
From: Chang S. Bae
Date: Tue Apr 01 2025 - 13:14:43 EST
On 3/20/2025 4:47 PM, Chang S. Bae wrote:
In the meantime, kernel memory usage could be improved by treating MPX
as VCPU-only, aligning with the ongoing supervisor CET state handling
work [3].
Sorry, I made a naive assumption when mentioning this earlier.
Since MPX is a user feature, excluding it from the host fpstate while
exposing it to the guest would also require enforcement in userspace.
The only viable option seems to be switching XCR0. However, this would
introduce significant kernel code complexity (as you’re aware) with a
marginal benefit — saving just per-task 128 bytes on legacy systems.
Unlike guest-exclusive supervisor states, this trade-off appears to be
too costly.
Thanks,
Chang