Commit a1f5762652 for qemu.org
commit a1f5762652b58d5620014e16985fa0483fd4cf3a
Author: Mohamed Mediouni <mohamed@unpredictable.fr>
Date: Wed Apr 22 23:42:15 2026 +0200
target/i386: make xsave_buf present unconditionally
This is necessary for the xsave_helper helpers to compile.
Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr>
Link: https://lore.kernel.org/r/20260422214225.2242-28-mohamed@unpredictable.fr
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
index c14237967b..2a6c54dc29 100644
--- a/target/i386/cpu.h
+++ b/target/i386/cpu.h
@@ -2270,10 +2270,8 @@ typedef struct CPUArchState {
int64_t user_tsc_khz; /* for sanity check only */
uint64_t apic_bus_freq;
uint64_t tsc;
-#if defined(CONFIG_KVM) || defined(CONFIG_HVF)
void *xsave_buf;
uint32_t xsave_buf_len;
-#endif
#if defined(CONFIG_KVM)
struct kvm_nested_state *nested_state;
MemoryRegion *xen_vcpu_info_mr;