Re: [PATCH v3 2/2] x86/sev-es: Include XSS value in GHCB CPUID request

From: Dave Hansen

Date: Wed Sep 24 2025 - 19:02:29 EST


On 9/24/25 13:08, John Allen wrote:
> + if (has_cpuflag(X86_FEATURE_SHSTK) && regs->ax == 0xd && regs->cx == 1) {
> + struct msr m;
> +
> + raw_rdmsr(MSR_IA32_XSS, &m);
> + ghcb_set_xss(ghcb, m.q);
> + }

Is there a reason this is open-coding CPUID_LEAF_XSTATE?