@samitouri / QOSamiQemu / commits / 364d7890c6

target/i386: introduce ClearwaterForest-v3 to expose ITS_NO

Expose ITS_NO by default, as users using Clearwater Forest and higher CPU models would not be able to live migrate to lower CPU hosts due to missing features. In that case, they would not be vulnerable to ITS. its-no was originally added on [1], but needs to be exposed on the individual CPU models for the guests to see by default. Note: Version 1 already exposes ARCH_CAP_BHI_NO, which would already mark the CPU as invulnerable to ITS (at least in Linux); however, expose ITS_NO for completeness. [1] 74978391b2da ("target/i386: Make ITS_NO available to guests") Cc: Pawan Gupta <pawan.kumar.gupta@linux.intel.com> Signed-off-by: Jon Kohler <jon@nutanix.com> Link: https://lore.kernel.org/r/20251106174626.49930-6-jon@nutanix.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Jon Kohler committed Nov 6, 2025 at 10:46 UTC 364d7890c6f56352d184bc58203d5e0e6b537a58
1 file changed +8
target/i386/cpu.c
+8
@@ -5964,6 +5964,14 @@ static const X86CPUDefinition builtin_x86_defs[] = {
5964 { /* end of list */ },
5965 }
5966 },
5967 + {
5968 + .version = 3,
5969 + .note = "with cet-ss, cet-ibt, ITS_NO",
5970 + .props = (PropValue[]) {
5971 + { "its-no", "on" },
5972 + { /* end of list */ },
5973 + }
5974 + },
5975 { /* end of list */ },
5976 },
5977 },