]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/i386: introduce GraniteRapids-v5 to expose ITS_NO
authorJon Kohler <jon@nutanix.com>
Thu, 6 Nov 2025 17:46:23 +0000 (10:46 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 1 Mar 2026 15:02:45 +0000 (16:02 +0100)
Expose ITS_NO by default, as users using Granite Rapids 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.

[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-4-jon@nutanix.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c

index 81779483d311e68d99f6a4e279d28a07fa10211c..987f64c5af3448e18f8c2350aa4b73b4139d8cd8 100644 (file)
@@ -5443,6 +5443,15 @@ static const X86CPUDefinition builtin_x86_defs[] = {
                     { /* end of list */ },
                 }
             },
+            {
+                .version = 5,
+                .note = "with cet-ss, cet-ibt, its-no",
+                .cache_info = &xeon_gnr_cache_info,
+                .props = (PropValue[]) {
+                    { "its-no", "on" },
+                    { /* end of list */ },
+                }
+            },
             { /* end of list */ },
         },
     },