diff --git a/Guide/src/user_guide/openvmm/snapshots.md b/Guide/src/user_guide/openvmm/snapshots.md index 7362b8d1025..3af378f45fd 100644 --- a/Guide/src/user_guide/openvmm/snapshots.md +++ b/Guide/src/user_guide/openvmm/snapshots.md @@ -389,13 +389,18 @@ The guest CPU is a pinned CPU profile: one per CPU generation, the same on every backend. OpenVMM pins `intel.skylake-sp.v1` (Xeon Scalable, first generation: family 6, model 85, steppings 0 to 4), `intel.icelake-sp.v1` (Xeon Scalable, third generation: 6/106), `intel.emeraldrapids.v1` (Xeon -Scalable, fifth generation: 6/207), `intel.alderlake.v1` (Core, twelfth -generation: 6/151 and 6/154), `amd.milan.v1` (AMD EPYC, third generation: -25/1), `amd.genoa.v1` and `amd.genoa.v2` (AMD EPYC, fourth generation: -25/17), and `amd.turin.v1` (AMD EPYC, fifth generation: 26/2). +Scalable, fifth generation: 6/207), `intel.graniterapids.v1` (Xeon 6 with +P-cores: 6/173), `intel.alderlake.v1` (Core, twelfth generation: 6/151 and +6/154), `amd.milan.v1` (AMD EPYC, third generation: 25/1), `amd.genoa.v1` +and `amd.genoa.v2` (AMD EPYC, fourth generation: 25/17), and +`amd.turin.v1` (AMD EPYC, fifth generation: 26/2). `amd.genoa.v2` drops what `amd.genoa.v1` presents in `0x80000021`, `LFENCE` serialization and the TSA immunities, which not every Genoa host's -hypervisor presents. `--cpu-profile ` selects one; the default, +hypervisor presents. No profile presents AMX: its tile states need a +dynamic XSAVE permission that OpenVMM does not request from KVM, and every +backend presents the same profile. Nor does any present AVX10, whose leaf +`0x24` no profile keeps; the AVX-512 features enumerate every instruction +of AVX10.1. `--cpu-profile ` selects one; the default, `auto`, selects the latest revision of the host's generation's profile. An earlier revision stays pinned, so its snapshots still restore. An Intel or AMD host that no pinned profile serves boots on a host profile diff --git a/openvmm/openvmm_core/src/worker/dispatch/time_abi.rs b/openvmm/openvmm_core/src/worker/dispatch/time_abi.rs index c2cdeeb5d2e..1910b47ceba 100644 --- a/openvmm/openvmm_core/src/worker/dispatch/time_abi.rs +++ b/openvmm/openvmm_core/src/worker/dispatch/time_abi.rs @@ -1396,13 +1396,17 @@ mod tests { /// The signature of the test profile's CPU, an Ice Lake-SP Xeon. const TEST_SIGNATURE: u32 = 0x0006_06a6; + /// The signature of a Sapphire Rapids Xeon, family 6 model 143 stepping + /// 8, which no pinned profile serves. + const SAPPHIRE_RAPIDS: u32 = 0x0008_06f8; + + /// The brand string of the Sapphire Rapids test CPU. + const SAPPHIRE_RAPIDS_BRAND: &str = "Intel(R) Xeon(R) Platinum 8480C"; + /// The signature of a Granite Rapids Xeon, family 6 model 173 stepping 1, - /// which no pinned profile serves. + /// which `intel.graniterapids.v1` serves. const GRANITE_RAPIDS: u32 = 0x000a_06d1; - /// The brand string of the Granite Rapids test CPU. - const GRANITE_RAPIDS_BRAND: &str = "Intel(R) Xeon(R) 6973P-C"; - /// No test hook. const NO_HOOKS: TimeAbiTestHooks = TimeAbiTestHooks { force_utc_downtime: false, @@ -1691,13 +1695,16 @@ mod tests { ); } - /// The effective CPUID ends leaf 0Bh with Intel's terminating subleaf, - /// which carries VP 0's x2APIC ID; the backend sets each VP's own. No - /// pinned profile reaches leaf 1Fh. + /// The effective CPUID ends leaf 0Bh, and leaf 1Fh where the profile + /// reaches it, as `intel.graniterapids.v1` does, with Intel's terminating + /// subleaf, which carries VP 0's x2APIC ID; the backend sets each VP's + /// own. Leaf 1Fh describes the same levels as leaf 0Bh. #[test] fn effective_cpuid_terminates_the_extended_topology() { + let mut reached_1f = false; for profile in cpu_profile::pinned_profiles() { - assert!(profile.lookup(0, 0)[0] < 0x1f, "{}", profile.id()); + let reaches_1f = profile.lookup(0, 0)[0] >= 0x1f; + reached_1f |= reaches_1f; for vp_count in [1, 2, 8] { let effective = effective_cpuid(profile, &topology(vp_count, X2ApicState::Supported)).unwrap(); @@ -1711,18 +1718,29 @@ mod tests { let leaf_b = subleaves(0xb); assert_eq!(leaf_b.len(), 3, "{}: {leaf_b:x?}", profile.id()); assert_eq!(leaf_b[2], (Some(2), [0, 0, 2, 0], [!0; 4])); - assert!(subleaves(0x1f).is_empty()); + let leaf_1f = subleaves(0x1f); + if reaches_1f { + assert_eq!(leaf_1f, leaf_b, "{}", profile.id()); + } else { + assert!(leaf_1f.is_empty(), "{}: {leaf_1f:x?}", profile.id()); + } let (_, config) = partition_config(&partition_profile(profile), &effective); - let terminator = config - .cpuid - .leaves() - .iter() - .find(|leaf| leaf.function == 0xb && leaf.index == Some(2)) - .unwrap(); - assert_eq!(terminator.mask, [!0, !0, !0, 0]); + for function in [0xb, 0x1f] { + let terminator = config + .cpuid + .leaves() + .iter() + .find(|leaf| leaf.function == function && leaf.index == Some(2)); + if function == 0xb || reaches_1f { + assert_eq!(terminator.unwrap().mask, [!0, !0, !0, 0]); + } else { + assert!(terminator.is_none(), "{}", profile.id()); + } + } } } + assert!(reached_1f); } #[test] @@ -2406,20 +2424,25 @@ mod tests { #[test] fn auto_falls_back_to_host_profiles_only_where_they_serve() { let tiger_lake = HostCpuSignature::new(*b"GenuineIntel", 0x0008_06c1); - let granite_rapids = HostCpuSignature::new(*b"GenuineIntel", GRANITE_RAPIDS); + let sapphire_rapids = HostCpuSignature::new(*b"GenuineIntel", SAPPHIRE_RAPIDS); let zen3 = HostCpuSignature::new(*b"AuthenticAMD", 0x00a2_0f12); let icelake = HostCpuSignature::new(*b"GenuineIntel", TEST_SIGNATURE); + let granite_rapids = HostCpuSignature::new(*b"GenuineIntel", GRANITE_RAPIDS); let milan = HostCpuSignature::new(*b"AuthenticAMD", 0x00a0_0f11); let hygon = HostCpuSignature::new(*b"HygonGenuine", 0x0090_0f01); let select = |requested, host, hooks| select_on_host(requested, host, None, hooks); - for host in [&tiger_lake, &granite_rapids, &zen3] { + for host in [&tiger_lake, &sapphire_rapids, &zen3] { for hooks in [&NO_HOOKS, &HOST_CPU_UNKNOWN] { assert!(falls_back(host, hooks), "{host}"); assert!(is_fallback(&select(cpu_profile::AUTO, host, hooks))); } } - for (host, id) in [(&icelake, TEST_PROFILE), (&milan, "amd.milan.v1")] { + for (host, id) in [ + (&icelake, TEST_PROFILE), + (&granite_rapids, "intel.graniterapids.v1"), + (&milan, "amd.milan.v1"), + ] { assert!(!falls_back(host, &NO_HOOKS), "{host}"); assert_eq!( selected(select(cpu_profile::AUTO, host, &NO_HOOKS)) @@ -2459,8 +2482,8 @@ mod tests { /// form, which the link prefills with the CPU. #[test] fn auto_falls_back_to_a_host_profile_and_warns() { - let host = HostCpuSignature::new(*b"GenuineIntel", GRANITE_RAPIDS); - let fingerprint = test_fingerprint("kvm", GRANITE_RAPIDS, GRANITE_RAPIDS_BRAND); + let host = HostCpuSignature::new(*b"GenuineIntel", SAPPHIRE_RAPIDS); + let fingerprint = test_fingerprint("kvm", SAPPHIRE_RAPIDS, SAPPHIRE_RAPIDS_BRAND); let profile = fall_back(&host, || Ok(fingerprint.clone())).unwrap(); assert!(profile.is_host()); assert_eq!(profile.id(), "intel.host.v1"); @@ -2483,8 +2506,8 @@ mod tests { lines[0], format!( "NVX-CPU-PROFILE-FALLBACK: no built-in CPU profile serves this host's CPU, \ - GenuineIntel 6/173/1 (Intel(R) Xeon(R) 6973P-C), so --cpu-profile auto fell \ - back to intel.host.v1 ({digest}), a profile derived from this host's kvm \ + GenuineIntel 6/143/8 (Intel(R) Xeon(R) Platinum 8480C), so --cpu-profile auto \ + fell back to intel.host.v1 ({digest}), a profile derived from this host's kvm \ backend for development." ) ); @@ -2502,9 +2525,9 @@ mod tests { " openvmm --hypervisor kvm --cpu-fingerprint fingerprint.json", "and attach fingerprint.json to a CPU profile request:", " https://github.com/microsoft/nvx/issues/new?template=cpu-profile.yml\ - &title=CPU%20profile%3A%20GenuineIntel%206%2F173%2F1%20%28Intel%28R%29%20Xeon\ - %28R%29%206973P-C%29&signature=GenuineIntel%206%2F173%2F1\ - &cpu=Intel%28R%29%20Xeon%28R%29%206973P-C", + &title=CPU%20profile%3A%20GenuineIntel%206%2F143%2F8%20%28Intel%28R%29%20Xeon\ + %28R%29%20Platinum%208480C%29&signature=GenuineIntel%206%2F143%2F8\ + &cpu=Intel%28R%29%20Xeon%28R%29%20Platinum%208480C", ] ); } @@ -2514,8 +2537,8 @@ mod tests { /// pinned profile serves. #[test] fn explicit_host_profiles_invite_requests_only_where_no_profile_serves() { - let fingerprint = test_fingerprint("whp", GRANITE_RAPIDS, GRANITE_RAPIDS_BRAND); - let host = HostCpuSignature::new(*b"GenuineIntel", GRANITE_RAPIDS); + let fingerprint = test_fingerprint("whp", SAPPHIRE_RAPIDS, SAPPHIRE_RAPIDS_BRAND); + let host = HostCpuSignature::new(*b"GenuineIntel", SAPPHIRE_RAPIDS); let profile = host_partition_profile(&fingerprint, &host).unwrap(); let digest = profile.digest_string(); let invited = host_profile_warning( @@ -2529,7 +2552,8 @@ mod tests { invited.starts_with(&format!( "--cpu-profile host selected intel.host.v1 ({digest}), a profile derived from \ this host's whp backend for development; no built-in CPU profile serves this \ - host's CPU, GenuineIntel 6/173/1 (Intel(R) Xeon(R) 6973P-C).\nIt is not pinned" + host's CPU, GenuineIntel 6/143/8 (Intel(R) Xeon(R) Platinum 8480C).\nIt is not \ + pinned" )), "{invited}" ); @@ -2577,13 +2601,13 @@ mod tests { "az-AZ_09.~%20%2F%28R%29%26%3D%3F%23%25%2B%C3%A9" ); // A CPU without a brand string prefills only its signature. - let fingerprint = test_fingerprint("mshv", GRANITE_RAPIDS, ""); - assert_eq!(describe_cpu(&fingerprint.host.cpu), "GenuineIntel 6/173/1"); + let fingerprint = test_fingerprint("mshv", SAPPHIRE_RAPIDS, ""); + assert_eq!(describe_cpu(&fingerprint.host.cpu), "GenuineIntel 6/143/8"); assert_eq!( cpu_profile_request_url(&fingerprint.host.cpu), format!( - "{CPU_PROFILE_REQUEST_URL}&title=CPU%20profile%3A%20GenuineIntel%206%2F173%2F1\ - &signature=GenuineIntel%206%2F173%2F1" + "{CPU_PROFILE_REQUEST_URL}&title=CPU%20profile%3A%20GenuineIntel%206%2F143%2F8\ + &signature=GenuineIntel%206%2F143%2F8" ) ); assert_eq!( @@ -2599,16 +2623,16 @@ mod tests { /// and a backend that cannot boot the derived profile. #[test] fn a_fallback_that_cannot_boot_says_that_auto_fell_back() { - let host = HostCpuSignature::new(*b"GenuineIntel", GRANITE_RAPIDS); + let host = HostCpuSignature::new(*b"GenuineIntel", SAPPHIRE_RAPIDS); let fell_back = FellBack::new(&host).to_string(); assert_eq!( fell_back, "--cpu-profile auto fell back to a host CPU profile, because no built-in CPU \ - profile serves this host's CPU, GenuineIntel 6/173/1, but this host cannot boot one" + profile serves this host's CPU, GenuineIntel 6/143/8, but this host cannot boot one" ); let no_rdtscp = - test_fingerprint_with("whp", GRANITE_RAPIDS, GRANITE_RAPIDS_BRAND, |cpuid| { + test_fingerprint_with("whp", SAPPHIRE_RAPIDS, SAPPHIRE_RAPIDS_BRAND, |cpuid| { for entry in cpuid.iter_mut() { if entry.key() == (0x8000_0001, None) { let mut registers = entry.registers(); @@ -2926,10 +2950,10 @@ mod tests { /// serves only the capture host's CPU model and stepping. #[test] fn restore_takes_a_fallback_profile_from_the_snapshot() { - let host = HostCpuSignature::new(*b"GenuineIntel", GRANITE_RAPIDS); - let fingerprint = test_fingerprint("kvm", GRANITE_RAPIDS, GRANITE_RAPIDS_BRAND); + let host = HostCpuSignature::new(*b"GenuineIntel", SAPPHIRE_RAPIDS); + let fingerprint = test_fingerprint("kvm", SAPPHIRE_RAPIDS, SAPPHIRE_RAPIDS_BRAND); let fallback = fall_back(&host, || Ok(fingerprint)).unwrap(); - let record = host_profile_record(&fallback, GRANITE_RAPIDS); + let record = host_profile_record(&fallback, SAPPHIRE_RAPIDS); assert_eq!(fallback.record().encoding, record.profile.as_slice()); assert_eq!( fallback.record().digest.as_slice(), @@ -2943,11 +2967,11 @@ mod tests { assert_eq!(*restored, *fallback); assert_eq!(restored.record(), fallback.record()); - let stepping_2 = HostCpuSignature::new(*b"GenuineIntel", GRANITE_RAPIDS + 1); + let stepping_9 = HostCpuSignature::new(*b"GenuineIntel", SAPPHIRE_RAPIDS + 1); assert_eq!( selected(select_on_host( fallback.id(), - &stepping_2, + &stepping_9, Some(&record), hooks )) diff --git a/petri/src/vm/openvmm/microvm.rs b/petri/src/vm/openvmm/microvm.rs index 8982141c85b..22e3c678c72 100644 --- a/petri/src/vm/openvmm/microvm.rs +++ b/petri/src/vm/openvmm/microvm.rs @@ -512,8 +512,8 @@ mod tests { const GENOA: HostCpuSignature = HostCpuSignature::new(*b"AuthenticAMD", 0x00a1_0f11); const SKYLAKE_SP: HostCpuSignature = HostCpuSignature::new(*b"GenuineIntel", 0x0005_0654); /// A CPU that no built-in profile serves, so `auto` falls back to a host - /// profile. - const GRANITE_RAPIDS: HostCpuSignature = HostCpuSignature::new(*b"GenuineIntel", 0x000a_06d1); + /// profile: a Sapphire Rapids Xeon. + const SAPPHIRE_RAPIDS: HostCpuSignature = HostCpuSignature::new(*b"GenuineIntel", 0x0008_06f8); /// A CPU of a vendor that host profiles do not serve. const HYGON: HostCpuSignature = HostCpuSignature::new(*b"HygonGenuine", 0x0090_0f01); @@ -535,7 +535,7 @@ mod tests { // `auto` already used a host profile, or none could serve the CPU. assert!(!falls_back_to_host_profile( unsupported, - Some(&GRANITE_RAPIDS) + Some(&SAPPHIRE_RAPIDS) )); assert!(!falls_back_to_host_profile(unsupported, Some(&HYGON))); // The host CPU is not identified. diff --git a/vmm_core/cpu_profile/profiles/intel.graniterapids.v1.json b/vmm_core/cpu_profile/profiles/intel.graniterapids.v1.json new file mode 100644 index 00000000000..de67f850d90 --- /dev/null +++ b/vmm_core/cpu_profile/profiles/intel.graniterapids.v1.json @@ -0,0 +1,964 @@ +{ + "cpuid": [ + { + "leaf": "0x00000000", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000024", + "0x756e6547", + "0x6c65746e", + "0x49656e69" + ] + }, + { + "leaf": "0x00000001", + "mask": [ + "0xffffffff", + "0x0000ffff", + "0xf7dfffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x000a06d1", + "0x00000800", + "0xf6da3203", + "0x0f8bfbff" + ] + }, + { + "leaf": "0x00000002", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00feff01", + "0x000000f0", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000003", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000004", + "mask": [ + "0x00003fff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000000", + "value": [ + "0x00000121", + "0x02c0003f", + "0x0000003f", + "0x00000000" + ] + }, + { + "leaf": "0x00000004", + "mask": [ + "0x00003fff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000001", + "value": [ + "0x00000122", + "0x03c0003f", + "0x0000003f", + "0x00000000" + ] + }, + { + "leaf": "0x00000004", + "mask": [ + "0x00003fff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000002", + "value": [ + "0x00000143", + "0x03c0003f", + "0x000007ff", + "0x00000000" + ] + }, + { + "leaf": "0x00000004", + "mask": [ + "0x00003fff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000003", + "value": [ + "0x00000163", + "0x03c0003f", + "0x00077fff", + "0x00000000" + ] + }, + { + "leaf": "0x00000004", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000004", + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000005", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000006", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000004", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000007", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffef", + "0xffffffff" + ], + "subleaf": "0x00000000", + "value": [ + "0x00000002", + "0xf1bf2fb9", + "0x1a415f66", + "0x20814010" + ] + }, + { + "leaf": "0x00000007", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000001", + "value": [ + "0x00001c30", + "0x00000000", + "0x00000000", + "0x00004000" + ] + }, + { + "leaf": "0x00000007", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000002", + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000001" + ] + }, + { + "leaf": "0x00000008", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000009", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000000a", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000000c", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000000d", + "mask": [ + "0xffffffff", + "0x00000000", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000000", + "value": [ + "0x000000e7", + "0x00000000", + "0x00000a80", + "0x00000000" + ] + }, + { + "leaf": "0x0000000d", + "mask": [ + "0xffffffff", + "0x00000000", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000001", + "value": [ + "0x0000000f", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000000d", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000002", + "value": [ + "0x00000100", + "0x00000240", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000000d", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000005", + "value": [ + "0x00000040", + "0x00000440", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000000d", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000006", + "value": [ + "0x00000200", + "0x00000480", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000000d", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000007", + "value": [ + "0x00000400", + "0x00000680", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000000e", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000000f", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000000", + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000010", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000000", + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000011", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000012", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000000", + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000013", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000014", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000000", + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000015", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000016", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000017", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000000", + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000018", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000000", + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000019", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000001a", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000001b", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000001c", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000001d", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000000", + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x0000001e", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000000", + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000020", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000021", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000022", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000023", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x00000024", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": "0x00000000", + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x80000000", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x80000008", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x80000001", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000121", + "0x2c100800" + ] + }, + { + "leaf": "0x80000002", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x65746e49", + "0x2952286c", + "0x6f655820", + "0x2952286e" + ] + }, + { + "leaf": "0x80000003", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x6f725020", + "0x73736563", + "0x2820726f", + "0x6e617247" + ] + }, + { + "leaf": "0x80000004", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x20657469", + "0x69706152", + "0x00297364", + "0x00000000" + ] + }, + { + "leaf": "0x80000005", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000000" + ] + }, + { + "leaf": "0x80000006", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x08007040", + "0x00000000" + ] + }, + { + "leaf": "0x80000007", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00000000", + "0x00000000", + "0x00000000", + "0x00000100" + ] + }, + { + "leaf": "0x80000008", + "mask": [ + "0xffffffff", + "0xffffffff", + "0xffffffff", + "0xffffffff" + ], + "subleaf": null, + "value": [ + "0x00003930", + "0x00000000", + "0x00000000", + "0x00000000" + ] + } + ], + "description": "Intel Xeon 6 with P-cores (Granite Rapids), on every backend; NVX time ABI v1", + "generation": { + "cpus": [ + { + "family": 6, + "model": 173, + "steppings": [ + 0, + 15 + ] + } + ], + "name": "graniterapids" + }, + "id": "intel.graniterapids.v1", + "msrs": [ + { + "index": "0x0000010a", + "mask": "0x400000000c12e1bb", + "value": "0x000000000800e121" + } + ], + "physical_address_width": 48, + "provenance": { + "method": "derived by cpu_profile::derive under openvmm-cpu-profile-policy/v1: per-register consensus within each backend, then across backends, of the hosts' supported CPU surfaces", + "sources": [ + { + "backend": "kvm", + "hosts": 2, + "surface_digests": [ + "sha256:aeed50004a66f6a20a9764c89235d90941d4d97dcdd112288d5b7a7eb66e7ee8" + ] + }, + { + "backend": "whp", + "hosts": 1, + "surface_digests": [ + "sha256:6ea62e2941525b3ab863bc98f916753f8e2634445cf63a8dc704d80feb96b29d" + ] + } + ] + }, + "schema": "openvmm-cpu-profile/v1", + "vendor": "GenuineIntel", + "xcr0": "0x00000000000000e7", + "xsave_components": [ + { + "align64": false, + "index": 2, + "offset": 576, + "size": 256, + "supervisor": false, + "xfd": false + }, + { + "align64": false, + "index": 5, + "offset": 1088, + "size": 64, + "supervisor": false, + "xfd": false + }, + { + "align64": false, + "index": 6, + "offset": 1152, + "size": 512, + "supervisor": false, + "xfd": false + }, + { + "align64": false, + "index": 7, + "offset": 1664, + "size": 1024, + "supervisor": false, + "xfd": false + } + ], + "xss": "0x0000000000000000" +} diff --git a/vmm_core/cpu_profile/src/catalog.rs b/vmm_core/cpu_profile/src/catalog.rs index 0acbd055d20..44a2d14cb32 100644 --- a/vmm_core/cpu_profile/src/catalog.rs +++ b/vmm_core/cpu_profile/src/catalog.rs @@ -458,6 +458,7 @@ mod tests { const CASCADE_LAKE: u32 = 0x0005_0657; const ICELAKE: u32 = 0x0006_06a6; const EMERALDRAPIDS: u32 = 0x000c_06f2; + const GRANITE_RAPIDS: u32 = 0x000a_06d1; const ALDER_LAKE: u32 = 0x0009_06a3; const ALDER_LAKE_S: u32 = 0x0009_0672; const TIGER_LAKE: u32 = 0x0008_06c1; @@ -484,7 +485,7 @@ mod tests { /// The pinned JSON files, the source of the static data, and their golden /// digests. Released profiles are immutable: changing a golden digest is /// a deliberate act, here. - const FILES: [(&str, &str, &str); 8] = [ + const FILES: [(&str, &str, &str); 9] = [ ( "intel.skylake-sp.v1", include_str!("../profiles/intel.skylake-sp.v1.json"), @@ -500,6 +501,11 @@ mod tests { include_str!("../profiles/intel.emeraldrapids.v1.json"), "sha256:73c084783f26df29871c72200ea34470e4afec6187bf96de6ac051dbaed6727d", ), + ( + "intel.graniterapids.v1", + include_str!("../profiles/intel.graniterapids.v1.json"), + "sha256:362212bdc29d955b02f294878cc3a9f7a557572c5e36dc2710ecd4790e9c71f1", + ), ( "intel.alderlake.v1", include_str!("../profiles/intel.alderlake.v1.json"), @@ -703,6 +709,11 @@ mod tests { "intel.emeraldrapids.v1", "emeraldrapids", ), + ( + intel(GRANITE_RAPIDS), + "intel.graniterapids.v1", + "graniterapids", + ), (intel(ALDER_LAKE), "intel.alderlake.v1", "alderlake"), (intel(ALDER_LAKE_S), "intel.alderlake.v1", "alderlake"), (amd(MILAN), "amd.milan.v1", "milan"), @@ -795,6 +806,8 @@ mod tests { (6, 143), (6, 151), (6, 154), + (6, 173), + (6, 174), (6, 207), (25, 1), (25, 17), diff --git a/vmm_core/cpu_profile/src/derive.rs b/vmm_core/cpu_profile/src/derive.rs index 9d6ff1e9de7..6f255b6c44c 100644 --- a/vmm_core/cpu_profile/src/derive.rs +++ b/vmm_core/cpu_profile/src/derive.rs @@ -19,15 +19,17 @@ //! management, performance monitoring, debug, SGX, RDT, PT, CET, key //! locker) are cleared, in AMD profiles also where AMD enumerates them //! (SVM, IBS, LWP, the performance counter extensions, MONITORX, RDPRU, -//! PPIN, CPPC, and the like). AMD's speculation controls and immunities -//! stay, those of `0x80000021` included, but for what KVM cannot present: -//! `BTC_NO` goes, and PSFD stays only beside a `SPEC_CTRL` control +//! PPIN, CPPC, and the like), and so is AVX10, whose leaf `0x24` keeps no +//! data ([`AVX10`]). AMD's speculation controls and immunities stay, those +//! of `0x80000021` included, but for what KVM cannot present: `BTC_NO` +//! goes, and PSFD stays only beside a `SPEC_CTRL` control //! ([`has_spec_ctrl_control`]). Intel's enumerations of its speculation //! controls and `IA32_ARCH_CAPABILITIES`, which KVM adds on AMD hosts //! ([`INTEL_SPECULATION_ENUMERATIONS`]), go too. //! 3. The XSAVE features are the intersection, within [`ALLOWED_XCR0`], and //! the XSAVE leaf is rebuilt from them; every host must agree on the -//! layout. A feature whose XSAVE state is not enabled is cleared. +//! layout. A feature whose XSAVE state is not enabled is cleared, AMX's +//! too, whose tile states [`ALLOWED_XCR0`] never enables. //! 4. The brand string is generic per generation, such as //! `Intel(R) Xeon(R) Processor ()`, //! `Intel(R) Core(TM) Processor ()`, or @@ -116,7 +118,9 @@ pub const AMD_DATA_LEAVES: [u32; 4] = [ ]; /// The XCR0 bits a profile may enable: x87, SSE, AVX, MPX, AVX-512, and -/// PKRU. AMX needs dynamic XSAVE permissions that no backend grants yet. +/// PKRU. Not AMX's tile states: KVM enables them only with a dynamic XSAVE +/// permission, which OpenVMM does not request, and a profile is the same on +/// every backend, so profiles clear AMX's features too. pub const ALLOWED_XCR0: u64 = 0x2ff; /// The IA32_XSS bits a profile may enable: none yet. @@ -151,6 +155,12 @@ pub const AMD_BTC_NO: u32 = 1 << 29; /// profiles clear them. pub const INTEL_SPECULATION_ENUMERATIONS: u32 = 1 << 26 | 1 << 27 | 1 << 29 | 1 << 31; +/// `CPUID.(7,1):EDX[19]`, AVX10, whose version and vector lengths leaf `0x24` +/// enumerates. Profiles clear it, because leaf `0x24` is not a data leaf: +/// AVX10.1, its first version, has no instruction that the AVX-512 feature +/// bits, which stay, do not enumerate. +pub const AVX10: u32 = 1 << 19; + /// Returns whether a CPUID whose `CPUID.(7,0):EDX` is `leaf7_edx` and whose /// `CPUID.0x80000008:EBX` is `ext8_ebx` enumerates a `SPEC_CTRL` control, as /// KVM's `guest_has_spec_ctrl_msr()` decides whether a guest may access @@ -197,7 +207,7 @@ impl KnownGeneration { } /// The generations profiles exist for. -pub const KNOWN_GENERATIONS: [KnownGeneration; 7] = [ +pub const KNOWN_GENERATIONS: [KnownGeneration; 8] = [ KnownGeneration { vendor: CpuVendor::Intel, name: "skylake-sp", @@ -220,6 +230,14 @@ pub const KNOWN_GENERATIONS: [KnownGeneration; 7] = [ description: "Intel Xeon Scalable, fifth generation (Emerald Rapids)", brand: "Intel(R) Xeon(R) Processor (Emerald Rapids)", }, + KnownGeneration { + vendor: CpuVendor::Intel, + name: "graniterapids", + // Granite Rapids-AP and -SP (173). Granite Rapids-D is model 174. + cpus: &[(6, 173, [0, 15])], + description: "Intel Xeon 6 with P-cores (Granite Rapids)", + brand: "Intel(R) Xeon(R) Processor (Granite Rapids)", + }, KnownGeneration { vendor: CpuVendor::Intel, name: "alderlake", @@ -806,6 +824,8 @@ fn apply_policy(vendor: CpuVendor, combined: &Table) -> Result Result [[u32; 4]; 3] { mod tests { use super::*; use crate::cpuid::CpuidEntry; + use crate::test_support::GRANITE_RAPIDS_WHP_HOST; use crate::test_support::fingerprint; use crate::test_support::fingerprint_with; use crate::test_support::genoa_kvm_entries; use crate::test_support::genoa_mshv_fingerprint; use crate::test_support::genoa_whp_fingerprint; + use crate::test_support::granite_rapids_kvm_fingerprint; + use crate::test_support::granite_rapids_whp_entries; + use crate::test_support::granite_rapids_whp_fingerprint; use crate::test_support::host_fingerprint; use crate::test_support::milan_whp_entries; use crate::test_support::profile; use crate::test_support::profile_entries; use crate::test_support::turin_kvm_entries; + use hvdef::HvX64PartitionProcessorXsaveFeatures as XsaveBank; use test_with_tracing::test; const ICELAKE: &str = "intel.icelake-sp.v1"; @@ -1208,6 +1251,112 @@ mod tests { assert_eq!(derived.xsave_components().len(), 1); } + /// AMX's tile states are outside [`ALLOWED_XCR0`], so a profile clears + /// AMX's features too. The WHP of a Granite Rapids host offers AMX + /// (`test_support::GRANITE_RAPIDS_WHP_CPUID`), and a WHP partition takes + /// its processor features from its profile's CPUID bits, so the partition + /// of that host's host profile now enables no AMX state either. With + /// AMX's features set, it presented AMX's XSAVE components and tile + /// palette outside the profile, and every cold boot failed with + /// `E_CPU_UNLISTED` (microsoft/nvx#1055). + #[test] + fn a_profile_has_no_amx_without_its_xsave_states() { + const AMX_7_0_EDX: u32 = 1 << 22 | 1 << 24 | 1 << 25; + const AMX_FP16: u32 = 1 << 21; + let whp = granite_rapids_whp_fingerprint(); + // The fixture is the fingerprint that the issue posted. + assert_eq!( + whp.surface_digest, + "sha256:6ea62e2941525b3ab863bc98f916753f8e2634445cf63a8dc704d80feb96b29d" + ); + let offered = |leaf, subleaf| cpuid::lookup(&whp.backend.cpuid, leaf, subleaf).unwrap(); + assert_eq!(offered(7, 0)[3] & AMX_7_0_EDX, AMX_7_0_EDX); + assert_eq!(offered(7, 1)[0] & AMX_FP16, AMX_FP16); + assert_eq!(whp.backend.xsave.xcr0_supported.0 & 3 << 17, 3 << 17); + let available = XsaveBank::from(GRANITE_RAPIDS_WHP_HOST.xsave); + assert!(available.amx_tile_support() && available.amx_fp16_support()); + + let host = derive_host_profile(&whp).unwrap(); + assert_eq!(host.xcr0(), 0xe7); + assert_eq!(host.lookup(7, 0)[3] & AMX_7_0_EDX, 0); + assert_eq!(host.lookup(7, 1)[0] & AMX_FP16, 0); + // The other features of leaf 7.0 EDX stay: FSRM, SERIALIZE, + // TSXLDTRK, AVX512-FP16, and IA32_ARCH_CAPABILITIES. CET's IBT goes, + // as on every host. + assert_eq!( + host.lookup(7, 0)[3], + 1 << 4 | 1 << 14 | 1 << 16 | 1 << 23 | 1 << 29 + ); + let features = hv_banks::profile_features(&host, GRANITE_RAPIDS_WHP_HOST).unwrap(); + let xsave = XsaveBank::from(features.xsave); + assert!(!xsave.amx_tile_support(), "{xsave:?}"); + assert!(!xsave.amx_bf16_support(), "{xsave:?}"); + assert!(!xsave.amx_int8_support(), "{xsave:?}"); + assert!(!xsave.amx_fp16_support(), "{xsave:?}"); + assert!(!xsave.xfd_support(), "{xsave:?}"); + assert!(xsave.avx512_support(), "{xsave:?}"); + + // AMX-COMPLEX, which this host does not offer, goes too. + const AMX_COMPLEX: u32 = 1 << 8; + assert_eq!(offered(7, 1)[3] & AMX_COMPLEX, 0); + let mut entries = granite_rapids_whp_entries(); + set(&mut entries, 7, Some(1), 3, |edx| edx | AMX_COMPLEX); + let complex = derive_host_profile(&host_fingerprint("whp", entries)).unwrap(); + assert_eq!(complex.lookup(7, 1)[3] & AMX_COMPLEX, 0); + assert_eq!(complex.lookup(7, 1)[3], host.lookup(7, 1)[3]); + } + + /// Leaf `0x24` keeps no data, so a profile clears AVX10, which leaf + /// `0x24` describes, rather than enumerate AVX10 with version 0. The WHP + /// of the Granite Rapids host offers AVX10.1 at every vector length; its + /// host profile keeps the AVX-512 features, which enumerate every + /// instruction of AVX10.1, and its WHP partition has no AVX10. + #[test] + fn a_profile_has_no_avx10_without_its_leaf() { + let whp = granite_rapids_whp_fingerprint(); + let offered = |leaf, subleaf| cpuid::lookup(&whp.backend.cpuid, leaf, subleaf).unwrap(); + assert_eq!(offered(7, 1)[3] & AVX10, AVX10); + // Version 1, with 128-, 256-, and 512-bit vectors. + assert_eq!(offered(0x24, 0), [0, 0x7_0001, 0, 0]); + let available = XsaveBank::from(GRANITE_RAPIDS_WHP_HOST.xsave); + assert!(available.avx10_1_256_support() && available.avx10_1_512_support()); + + let host = derive_host_profile(&whp).unwrap(); + assert_eq!(host.lookup(7, 1)[3] & AVX10, 0); + assert_eq!(host.lookup(0x24, 0), [0; 4]); + // AVX512F, DQ, IFMA, CD, BW, and VL; VBMI, VBMI2, GFNI, VAES, + // VPCLMULQDQ, VNNI, BITALG, and VPOPCNTDQ; FP16; and BF16 stay. + let avx512 = [ + ( + 0, + 1, + 1 << 16 | 1 << 17 | 1 << 21 | 1 << 28 | 1 << 30 | 1 << 31, + ), + ( + 0, + 2, + 1 << 1 | 1 << 6 | 1 << 8 | 1 << 9 | 1 << 10 | 1 << 11 | 1 << 12 | 1 << 14, + ), + (0, 3, 1 << 23), + (1, 0, 1 << 5), + ]; + for (subleaf, register, bits) in avx512 { + assert_eq!( + host.lookup(7, subleaf)[register] & bits, + bits, + "7.{subleaf}" + ); + } + let features = hv_banks::profile_features(&host, GRANITE_RAPIDS_WHP_HOST).unwrap(); + let xsave = XsaveBank::from(features.xsave); + assert!(!xsave.avx10_1_256_support(), "{xsave:?}"); + assert!(!xsave.avx10_1_512_support(), "{xsave:?}"); + assert!( + xsave.avx512_support() && xsave.avx512_fp16_support(), + "{xsave:?}" + ); + } + #[test] fn rejects_inconsistent_inputs() { let pinned = profile(ICELAKE); @@ -1426,6 +1575,73 @@ mod tests { } } + /// The pinned Granite Rapids profile is the policy's profile of the hosts + /// it was derived from, Intel Xeon 6973P-C VMs on Azure: the WHP of a + /// runner of microsoft/nvx#1055 (`test_support::GRANITE_RAPIDS_WHP_CPUID`) + /// and the KVM of a GitHub-hosted Actions runner + /// (`GRANITE_RAPIDS_KVM_CPUID`), whose surface a second such runner + /// shared. It has neither AMX, whose tile states the KVM fingerprint + /// lacks and the policy never enables, nor AVX10, nor CET, which only WHP + /// offers, and both hosts support it. + #[test] + fn the_granite_rapids_profile_is_its_hosts_derivation() { + let pinned = profile("intel.graniterapids.v1"); + let kvm = granite_rapids_kvm_fingerprint(); + let whp = granite_rapids_whp_fingerprint(); + let derived = derive_profile( + generation("graniterapids"), + 1, + &[kvm.clone(), kvm.clone(), whp.clone()], + ) + .unwrap(); + assert_eq!(derived.id(), pinned.id()); + assert_eq!(derived.description(), pinned.description()); + assert_eq!(derived.generation(), pinned.generation()); + assert_eq!(derived.cpuid(), pinned.cpuid()); + assert_eq!(derived.xcr0(), pinned.xcr0()); + assert_eq!(derived.xss(), pinned.xss()); + assert_eq!(derived.xsave_components(), pinned.xsave_components()); + assert_eq!( + derived.physical_address_width(), + pinned.physical_address_width() + ); + assert_eq!(derived.msrs(), pinned.msrs()); + assert_eq!( + derived + .provenance() + .sources + .iter() + .map(|source| (source.backend.as_str(), source.hosts)) + .collect::>(), + [("kvm", 2), ("whp", 1)] + ); + assert_eq!(brand(pinned), "Intel(R) Xeon(R) Processor (Granite Rapids)"); + + assert_eq!(pinned.xcr0(), 0xe7); + assert_eq!( + pinned.lookup(7, 0)[3] & (1 << 20 | 1 << 22 | 1 << 24 | 1 << 25), + 0 + ); + assert_eq!(pinned.lookup(7, 1)[0] & 1 << 21, 0); + assert_eq!(pinned.lookup(7, 1)[3] & AVX10, 0); + assert_eq!(pinned.lookup(0x24, 0), [0; 4]); + // The immunities that both KVM and WHP's banks present: neither + // GDS_NO nor SKIP_L1DFL_VMENTRY, which only KVM presents. + assert_eq!( + pinned.msr(IA32_ARCH_CAPABILITIES), + Some((0x0800_e121, ARCH_CAPABILITIES_PINNED_MASK)) + ); + for host in [&kvm, &whp] { + let surface = crate::HostCpuSurface::from_fingerprint(&host.backend); + assert_eq!( + crate::support_violations(pinned, &surface), + Vec::::new(), + "{}", + host.backend.name + ); + } + } + /// `amd.genoa.v2` is the policy's profile of the KVM host that /// `amd.genoa.v1` derives from and of an Azure VM with the same CPU whose /// MSHV enumerates the basic leaves only up to 0xD and presents nothing diff --git a/vmm_core/cpu_profile/src/hv_banks.rs b/vmm_core/cpu_profile/src/hv_banks.rs index e282a5af87e..09109eff34b 100644 --- a/vmm_core/cpu_profile/src/hv_banks.rs +++ b/vmm_core/cpu_profile/src/hv_banks.rs @@ -781,8 +781,9 @@ mod tests { /// The processor features the hypervisors offered on the fleet's hosts /// (CPU fingerprints): WHP's capability and MSHV's host partition /// properties on the bare-metal Skylake-SP hosts and on the Ice Lake-SP - /// (8370C) and Emerald Rapids (8573C) Azure runners. - const HOSTS: [(&str, &str, HvFeatures); 6] = [ + /// (8370C) and Emerald Rapids (8573C) Azure runners, and WHP's on a + /// Granite Rapids (6973P-C) Azure runner. + const HOSTS: [(&str, &str, HvFeatures); 7] = [ ( "intel.skylake-sp.v1", "whp 4114", @@ -807,6 +808,11 @@ mod tests { xsave: 0x7f_ffdf, }, ), + ( + "intel.graniterapids.v1", + "whp 6973P-C", + crate::test_support::GRANITE_RAPIDS_WHP_HOST, + ), ( "intel.skylake-sp.v1", "mshv 4114", diff --git a/vmm_core/cpu_profile/src/pinned_data.rs b/vmm_core/cpu_profile/src/pinned_data.rs index 289b6d55972..25240f262c4 100644 --- a/vmm_core/cpu_profile/src/pinned_data.rs +++ b/vmm_core/cpu_profile/src/pinned_data.rs @@ -15,7 +15,7 @@ use crate::pinned::xsave; /// The pinned profiles, in catalog order. Released profiles are immutable: a /// change is a new revision with a new ID. -pub(crate) const PINNED: [PinnedProfile; 8] = [ +pub(crate) const PINNED: [PinnedProfile; 9] = [ PinnedProfile { id: "intel.skylake-sp.v1", digest: digest("b36ef861ffec67350a28faff8c446d5a19f78d6d58862378fa9d2282dad87492"), @@ -934,12 +934,374 @@ pub(crate) const PINNED: [PinnedProfile; 8] = [ ), ], }, + PinnedProfile { + id: "intel.graniterapids.v1", + digest: digest("362212bdc29d955b02f294878cc3a9f7a557572c5e36dc2710ecd4790e9c71f1"), + encoding: r#"{"cpuid":[{"leaf":"0x00000000","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000024","0x756e6547","0x6c65746e","0x49656e69"]},{"leaf":"0x00000001","mask":["0xffffffff","0x0000ffff","0xf7dfffff","0xffffffff"],"subleaf":null,"value":["0x000a06d1","0x00000800","0xf6da3203","0x0f8bfbff"]},{"leaf":"0x00000002","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00feff01","0x000000f0","0x00000000","0x00000000"]},{"leaf":"0x00000003","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000004","mask":["0x00003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000121","0x02c0003f","0x0000003f","0x00000000"]},{"leaf":"0x00000004","mask":["0x00003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x00000122","0x03c0003f","0x0000003f","0x00000000"]},{"leaf":"0x00000004","mask":["0x00003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000143","0x03c0003f","0x000007ff","0x00000000"]},{"leaf":"0x00000004","mask":["0x00003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000003","value":["0x00000163","0x03c0003f","0x00077fff","0x00000000"]},{"leaf":"0x00000004","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000004","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000005","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000006","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000004","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000007","mask":["0xffffffff","0xffffffff","0xffffffef","0xffffffff"],"subleaf":"0x00000000","value":["0x00000002","0xf1bf2fb9","0x1a415f66","0x20814010"]},{"leaf":"0x00000007","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x00001c30","0x00000000","0x00000000","0x00004000"]},{"leaf":"0x00000007","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000000","0x00000000","0x00000000","0x00000001"]},{"leaf":"0x00000008","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000009","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0x00000000","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x000000e7","0x00000000","0x00000a80","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0x00000000","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x0000000f","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000100","0x00000240","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000005","value":["0x00000040","0x00000440","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000006","value":["0x00000200","0x00000480","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000007","value":["0x00000400","0x00000680","0x00000000","0x00000000"]},{"leaf":"0x0000000e","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000f","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000010","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000011","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000012","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000013","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000014","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000015","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000016","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000017","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000018","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000019","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001b","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001e","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000020","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000021","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000022","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000023","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000024","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000000","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x80000008","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000001","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000121","0x2c100800"]},{"leaf":"0x80000002","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x65746e49","0x2952286c","0x6f655820","0x2952286e"]},{"leaf":"0x80000003","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x6f725020","0x73736563","0x2820726f","0x6e617247"]},{"leaf":"0x80000004","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x20657469","0x69706152","0x00297364","0x00000000"]},{"leaf":"0x80000005","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000006","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x08007040","0x00000000"]},{"leaf":"0x80000007","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000100"]},{"leaf":"0x80000008","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00003930","0x00000000","0x00000000","0x00000000"]}],"description":"Intel Xeon 6 with P-cores (Granite Rapids), on every backend; NVX time ABI v1","generation":{"cpus":[{"family":6,"model":173,"steppings":[0,15]}],"name":"graniterapids"},"id":"intel.graniterapids.v1","msrs":[{"index":"0x0000010a","mask":"0x400000000c12e1bb","value":"0x000000000800e121"}],"physical_address_width":48,"provenance":{"method":"derived by cpu_profile::derive under openvmm-cpu-profile-policy/v1: per-register consensus within each backend, then across backends, of the hosts' supported CPU surfaces","sources":[{"backend":"kvm","hosts":2,"surface_digests":["sha256:aeed50004a66f6a20a9764c89235d90941d4d97dcdd112288d5b7a7eb66e7ee8"]},{"backend":"whp","hosts":1,"surface_digests":["sha256:6ea62e2941525b3ab863bc98f916753f8e2634445cf63a8dc704d80feb96b29d"]}]},"schema":"openvmm-cpu-profile/v1","vendor":"GenuineIntel","xcr0":"0x00000000000000e7","xsave_components":[{"align64":false,"index":2,"offset":576,"size":256,"supervisor":false,"xfd":false},{"align64":false,"index":5,"offset":1088,"size":64,"supervisor":false,"xfd":false},{"align64":false,"index":6,"offset":1152,"size":512,"supervisor":false,"xfd":false},{"align64":false,"index":7,"offset":1664,"size":1024,"supervisor":false,"xfd":false}],"xss":"0x0000000000000000"}"#, + description: "Intel Xeon 6 with P-cores (Granite Rapids), on every backend; NVX time ABI v1", + generation: &KNOWN_GENERATIONS[3], + cpuid: &[ + leaf( + 0x0, + None, + [0x24, 0x756e_6547, 0x6c65_746e, 0x4965_6e69], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x1, + None, + [0xa_06d1, 0x800, 0xf6da_3203, 0xf8b_fbff], + [0xffff_ffff, 0xffff, 0xf7df_ffff, 0xffff_ffff], + ), + leaf( + 0x2, + None, + [0xfe_ff01, 0xf0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x3, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x4, + Some(0x0), + [0x121, 0x2c0_003f, 0x3f, 0x0], + [0x3fff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x4, + Some(0x1), + [0x122, 0x3c0_003f, 0x3f, 0x0], + [0x3fff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x4, + Some(0x2), + [0x143, 0x3c0_003f, 0x7ff, 0x0], + [0x3fff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x4, + Some(0x3), + [0x163, 0x3c0_003f, 0x7_7fff, 0x0], + [0x3fff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x4, + Some(0x4), + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x5, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x6, + None, + [0x4, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x7, + Some(0x0), + [0x2, 0xf1bf_2fb9, 0x1a41_5f66, 0x2081_4010], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffef, 0xffff_ffff], + ), + leaf( + 0x7, + Some(0x1), + [0x1c30, 0x0, 0x0, 0x4000], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x7, + Some(0x2), + [0x0, 0x0, 0x0, 0x1], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x8, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x9, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0xa, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0xc, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0xd, + Some(0x0), + [0xe7, 0x0, 0xa80, 0x0], + [0xffff_ffff, 0x0, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0xd, + Some(0x1), + [0xf, 0x0, 0x0, 0x0], + [0xffff_ffff, 0x0, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0xd, + Some(0x2), + [0x100, 0x240, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0xd, + Some(0x5), + [0x40, 0x440, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0xd, + Some(0x6), + [0x200, 0x480, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0xd, + Some(0x7), + [0x400, 0x680, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0xe, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0xf, + Some(0x0), + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x10, + Some(0x0), + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x11, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x12, + Some(0x0), + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x13, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x14, + Some(0x0), + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x15, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x16, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x17, + Some(0x0), + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x18, + Some(0x0), + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x19, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x1a, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x1b, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x1c, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x1d, + Some(0x0), + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x1e, + Some(0x0), + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x20, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x21, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x22, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x23, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x24, + Some(0x0), + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x8000_0000, + None, + [0x8000_0008, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x8000_0001, + None, + [0x0, 0x0, 0x121, 0x2c10_0800], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x8000_0002, + None, + [0x6574_6e49, 0x2952_286c, 0x6f65_5820, 0x2952_286e], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x8000_0003, + None, + [0x6f72_5020, 0x7373_6563, 0x2820_726f, 0x6e61_7247], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x8000_0004, + None, + [0x2065_7469, 0x6970_6152, 0x29_7364, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x8000_0005, + None, + [0x0, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x8000_0006, + None, + [0x0, 0x0, 0x800_7040, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x8000_0007, + None, + [0x0, 0x0, 0x0, 0x100], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + leaf( + 0x8000_0008, + None, + [0x3930, 0x0, 0x0, 0x0], + [0xffff_ffff, 0xffff_ffff, 0xffff_ffff, 0xffff_ffff], + ), + ], + xcr0: 0xe7, + xss: 0x0, + xsave_components: &[ + xsave(2, 256, 576, false, false, false), + xsave(5, 64, 1088, false, false, false), + xsave(6, 512, 1152, false, false, false), + xsave(7, 1024, 1664, false, false, false), + ], + physical_address_width: 48, + msrs: &[msr(0x10a, 0x800_e121, 0x4000_0000_0c12_e1bb)], + provenance_method: "derived by cpu_profile::derive under openvmm-cpu-profile-policy/v1: per-register consensus within each backend, then across backends, of the hosts' supported CPU surfaces", + provenance_sources: &[ + source( + "kvm", + 2, + &["sha256:aeed50004a66f6a20a9764c89235d90941d4d97dcdd112288d5b7a7eb66e7ee8"], + ), + source( + "whp", + 1, + &["sha256:6ea62e2941525b3ab863bc98f916753f8e2634445cf63a8dc704d80feb96b29d"], + ), + ], + }, PinnedProfile { id: "intel.alderlake.v1", digest: digest("2dfb6ccfd5a195b1614e6d963615c3372f40806b8f19b0d8425142f8c18a0c2e"), encoding: r#"{"cpuid":[{"leaf":"0x00000000","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x0000001c","0x756e6547","0x6c65746e","0x49656e69"]},{"leaf":"0x00000001","mask":["0xffffffff","0x0000ffff","0xf7dfffff","0xffffffff"],"subleaf":null,"value":["0x000906a3","0x00000800","0xf6da3203","0x0f8bfbff"]},{"leaf":"0x00000002","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00feff01","0x000000f0","0x00000000","0x00000000"]},{"leaf":"0x00000003","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000004","mask":["0x00003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000121","0x02c0003f","0x0000003f","0x00000000"]},{"leaf":"0x00000004","mask":["0x00003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x00000122","0x01c0003f","0x0000003f","0x00000000"]},{"leaf":"0x00000004","mask":["0x00003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000143","0x0240003f","0x000007ff","0x00000000"]},{"leaf":"0x00000004","mask":["0x00003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000003","value":["0x00000163","0x02c0003f","0x00007fff","0x00000000"]},{"leaf":"0x00000004","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000004","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000005","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000006","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000004","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000007","mask":["0xffffffff","0xffffffff","0xffffffef","0xffffffff"],"subleaf":"0x00000000","value":["0x00000002","0x219c27a9","0x18400724","0xac004410"]},{"leaf":"0x00000007","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x00000810","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000007","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000000","0x00000000","0x00000000","0x00000001"]},{"leaf":"0x00000008","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000009","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0x00000000","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000007","0x00000000","0x00000340","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0x00000000","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x0000000f","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000100","0x00000240","0x00000000","0x00000000"]},{"leaf":"0x0000000e","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000f","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000010","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000011","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000012","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000013","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000014","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000015","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000016","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000017","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000018","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000019","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001b","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000000","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x80000008","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000001","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000121","0x2c100800"]},{"leaf":"0x80000002","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x65746e49","0x2952286c","0x726f4320","0x4d542865"]},{"leaf":"0x80000003","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x72502029","0x7365636f","0x20726f73","0x646c4128"]},{"leaf":"0x80000004","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x4c207265","0x29656b61","0x00000000","0x00000000"]},{"leaf":"0x80000005","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000006","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x05007040","0x00000000"]},{"leaf":"0x80000007","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000100"]},{"leaf":"0x80000008","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x0000302e","0x00000000","0x00000000","0x00000000"]}],"description":"Intel Core, twelfth generation (Alder Lake), on every backend; NVX time ABI v1","generation":{"cpus":[{"family":6,"model":151,"steppings":[0,15]},{"family":6,"model":154,"steppings":[0,15]}],"name":"alderlake"},"id":"intel.alderlake.v1","msrs":[{"index":"0x0000010a","mask":"0x400000000c12e1bb","value":"0x000000000002e123"}],"physical_address_width":46,"provenance":{"method":"derived by cpu_profile::derive under openvmm-cpu-profile-policy/v1: per-register consensus within each backend, then across backends, of the hosts' supported CPU surfaces","sources":[{"backend":"whp","hosts":1,"surface_digests":["sha256:8e0184d897cb2641df7306afe86a1d4af5f4740d775719f4be49bcd1e0f15b53"]}]},"schema":"openvmm-cpu-profile/v1","vendor":"GenuineIntel","xcr0":"0x0000000000000007","xsave_components":[{"align64":false,"index":2,"offset":576,"size":256,"supervisor":false,"xfd":false}],"xss":"0x0000000000000000"}"#, description: "Intel Core, twelfth generation (Alder Lake), on every backend; NVX time ABI v1", - generation: &KNOWN_GENERATIONS[3], + generation: &KNOWN_GENERATIONS[4], cpuid: &[ leaf( 0x0, @@ -1229,7 +1591,7 @@ pub(crate) const PINNED: [PinnedProfile; 8] = [ digest: digest("463ee0368dc01bf56a3ab1157d62b21b51d11b3dcccb46c804864748ef696543"), encoding: r#"{"cpuid":[{"leaf":"0x00000000","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x0000000d","0x68747541","0x444d4163","0x69746e65"]},{"leaf":"0x00000001","mask":["0xffffffff","0x0000ffff","0xf7dfffff","0xffffffff"],"subleaf":null,"value":["0x00a00f11","0x00000800","0xf6da3203","0x078bfbff"]},{"leaf":"0x00000002","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000003","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000004","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000005","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000006","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000004","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000007","mask":["0xffffffff","0xffffffff","0xffffffef","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x219c07a9","0x00400604","0x00000010"]},{"leaf":"0x00000008","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000009","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0x00000000","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000007","0x00000000","0x00000340","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0x00000000","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x0000000f","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000100","0x00000240","0x00000000","0x00000000"]},{"leaf":"0x80000000","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x80000021","0x68747541","0x444d4163","0x69746e65"]},{"leaf":"0x80000001","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00a00f11","0x00000000","0x004002f3","0x2fd3fbff"]},{"leaf":"0x80000002","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x20444d41","0x43595045","0x6f725020","0x73736563"]},{"leaf":"0x80000003","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x2820726f","0x616c694d","0x0000296e","0x00000000"]},{"leaf":"0x80000004","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000005","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0xff40ff40","0xff40ff40","0x20080140","0x20080140"]},{"leaf":"0x80000006","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x48002200","0x68004200","0x02006140","0x08009140"]},{"leaf":"0x80000007","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000100"]},{"leaf":"0x80000008","mask":["0xffffffff","0xffffffff","0xffff0f00","0xffffffff"],"subleaf":null,"value":["0x00003030","0x00000005","0x00000000","0x00000000"]},{"leaf":"0x80000009","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000b","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000e","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000f","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000010","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000011","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000012","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000013","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000014","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000015","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000016","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000017","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000018","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000019","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001b","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000121","0x01c0003f","0x0000003f","0x00000000"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x00000122","0x01c0003f","0x0000003f","0x00000000"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000143","0x01c0003f","0x000003ff","0x00000002"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000003","value":["0x00000163","0x03c0003f","0x00007fff","0x00000001"]},{"leaf":"0x8000001d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000004","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001e","mask":["0x00000000","0xffff0000","0xfffff800","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001f","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000020","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000021","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]}],"description":"AMD EPYC, third generation (Milan), on every backend; NVX time ABI v1","generation":{"cpus":[{"family":25,"model":1,"steppings":[0,15]}],"name":"milan"},"id":"amd.milan.v1","msrs":[],"physical_address_width":48,"provenance":{"method":"derived by cpu_profile::derive under openvmm-cpu-profile-policy/v1: per-register consensus within each backend, then across backends, of the hosts' supported CPU surfaces","sources":[{"backend":"whp","hosts":1,"surface_digests":["sha256:35a6cf971fd37b3f28176b1164b37efeec4bcb5094b5d8222d581ee1dd3e7307"]}]},"schema":"openvmm-cpu-profile/v1","vendor":"AuthenticAMD","xcr0":"0x0000000000000007","xsave_components":[{"align64":false,"index":2,"offset":576,"size":256,"supervisor":false,"xfd":false}],"xss":"0x0000000000000000"}"#, description: "AMD EPYC, third generation (Milan), on every backend; NVX time ABI v1", - generation: &KNOWN_GENERATIONS[4], + generation: &KNOWN_GENERATIONS[5], cpuid: &[ leaf( 0x0, @@ -1567,7 +1929,7 @@ pub(crate) const PINNED: [PinnedProfile; 8] = [ digest: digest("894ac647399039242eb0f0e6582e91691234446ebc9362576d7c5613f34b966b"), encoding: r#"{"cpuid":[{"leaf":"0x00000000","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x0000001c","0x68747541","0x444d4163","0x69746e65"]},{"leaf":"0x00000001","mask":["0xffffffff","0x0000ffff","0xf7dfffff","0xffffffff"],"subleaf":null,"value":["0x00a10f11","0x00000800","0xf6da3203","0x078bfbff"]},{"leaf":"0x00000002","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000003","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000004","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000005","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000006","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000004","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000007","mask":["0xffffffff","0xffffffff","0xffffffef","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x219c07a9","0x00400604","0x00000010"]},{"leaf":"0x00000008","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000009","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0x00000000","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000007","0x00000000","0x00000340","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0x00000000","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x0000000f","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000100","0x00000240","0x00000000","0x00000000"]},{"leaf":"0x0000000e","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000f","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000010","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000011","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000012","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000013","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000014","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000015","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000016","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000017","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000018","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000019","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001b","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000000","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x80000021","0x68747541","0x444d4163","0x69746e65"]},{"leaf":"0x80000001","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00a10f11","0x00000000","0x004002f3","0x2fd3fbff"]},{"leaf":"0x80000002","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x20444d41","0x43595045","0x6f725020","0x73736563"]},{"leaf":"0x80000003","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x2820726f","0x6f6e6547","0x00002961","0x00000000"]},{"leaf":"0x80000004","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000005","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0xff48ff40","0xff48ff40","0x20080140","0x20080140"]},{"leaf":"0x80000006","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x5c002200","0x6c004200","0x04006140","0x0a009140"]},{"leaf":"0x80000007","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000100"]},{"leaf":"0x80000008","mask":["0xffffffff","0xffffffff","0xffff0f00","0xffffffff"],"subleaf":null,"value":["0x00003030","0x00000005","0x00000000","0x00000000"]},{"leaf":"0x80000009","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000b","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000e","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000f","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000010","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000011","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000012","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000013","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000014","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000015","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000016","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000017","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000018","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000019","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001b","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000121","0x01c0003f","0x0000003f","0x00000000"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x00000122","0x01c0003f","0x0000003f","0x00000000"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000143","0x01c0003f","0x000007ff","0x00000002"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000003","value":["0x00000163","0x03c0003f","0x00007fff","0x00000001"]},{"leaf":"0x8000001d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000004","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001e","mask":["0x00000000","0xffff0000","0xfffff800","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001f","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000020","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000021","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000204","0x00000000","0x00000006","0x00000000"]}],"description":"AMD EPYC, fourth generation (Genoa), on every backend; NVX time ABI v1","generation":{"cpus":[{"family":25,"model":17,"steppings":[0,15]}],"name":"genoa"},"id":"amd.genoa.v1","msrs":[],"physical_address_width":48,"provenance":{"method":"derived by cpu_profile::derive under openvmm-cpu-profile-policy/v1: per-register consensus within each backend, then across backends, of the hosts' supported CPU surfaces","sources":[{"backend":"kvm","hosts":1,"surface_digests":["sha256:68c11e9ed42a2e64267876eca0d21ba1083d24f36d5b4f9d891a53523646c2aa"]}]},"schema":"openvmm-cpu-profile/v1","vendor":"AuthenticAMD","xcr0":"0x0000000000000007","xsave_components":[{"align64":false,"index":2,"offset":576,"size":256,"supervisor":false,"xfd":false}],"xss":"0x0000000000000000"}"#, description: "AMD EPYC, fourth generation (Genoa), on every backend; NVX time ABI v1", - generation: &KNOWN_GENERATIONS[5], + generation: &KNOWN_GENERATIONS[6], cpuid: &[ leaf( 0x0, @@ -1995,7 +2357,7 @@ pub(crate) const PINNED: [PinnedProfile; 8] = [ digest: digest("8ee00e9ee8fd5defe3eebdc343733195d477f5f3449defa403f616d530a84839"), encoding: r#"{"cpuid":[{"leaf":"0x00000000","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x0000000d","0x68747541","0x444d4163","0x69746e65"]},{"leaf":"0x00000001","mask":["0xffffffff","0x0000ffff","0xf7dfffff","0xffffffff"],"subleaf":null,"value":["0x00a10f11","0x00000800","0xf6da3203","0x078bfbff"]},{"leaf":"0x00000002","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000003","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000004","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000005","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000006","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000004","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000007","mask":["0xffffffff","0xffffffff","0xffffffef","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x219c07a9","0x00400604","0x00000010"]},{"leaf":"0x00000008","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000009","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0x00000000","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000007","0x00000000","0x00000340","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0x00000000","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x0000000f","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000100","0x00000240","0x00000000","0x00000000"]},{"leaf":"0x80000000","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x80000021","0x68747541","0x444d4163","0x69746e65"]},{"leaf":"0x80000001","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00a10f11","0x00000000","0x004002f3","0x2fd3fbff"]},{"leaf":"0x80000002","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x20444d41","0x43595045","0x6f725020","0x73736563"]},{"leaf":"0x80000003","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x2820726f","0x6f6e6547","0x00002961","0x00000000"]},{"leaf":"0x80000004","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000005","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0xff48ff40","0xff48ff40","0x20080140","0x20080140"]},{"leaf":"0x80000006","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x5c002200","0x6c004200","0x04006140","0x0a009140"]},{"leaf":"0x80000007","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000100"]},{"leaf":"0x80000008","mask":["0xffffffff","0xffffffff","0xffff0f00","0xffffffff"],"subleaf":null,"value":["0x00003030","0x00000005","0x00000000","0x00000000"]},{"leaf":"0x80000009","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000b","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000e","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000f","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000010","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000011","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000012","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000013","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000014","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000015","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000016","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000017","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000018","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000019","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001b","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000121","0x01c0003f","0x0000003f","0x00000000"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x00000122","0x01c0003f","0x0000003f","0x00000000"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000143","0x01c0003f","0x000007ff","0x00000002"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000003","value":["0x00000163","0x03c0003f","0x00007fff","0x00000001"]},{"leaf":"0x8000001d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000004","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001e","mask":["0x00000000","0xffff0000","0xfffff800","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001f","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000020","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000021","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]}],"description":"AMD EPYC, fourth generation (Genoa), on every backend; NVX time ABI v1","generation":{"cpus":[{"family":25,"model":17,"steppings":[0,15]}],"name":"genoa"},"id":"amd.genoa.v2","msrs":[],"physical_address_width":48,"provenance":{"method":"derived by cpu_profile::derive under openvmm-cpu-profile-policy/v1: per-register consensus within each backend, then across backends, of the hosts' supported CPU surfaces","sources":[{"backend":"kvm","hosts":1,"surface_digests":["sha256:68c11e9ed42a2e64267876eca0d21ba1083d24f36d5b4f9d891a53523646c2aa"]},{"backend":"mshv","hosts":1,"surface_digests":["sha256:0d4f63812ed2feae52196f88a16733f54b3822389ef062c8a0c31cdb31083585"]}]},"schema":"openvmm-cpu-profile/v1","vendor":"AuthenticAMD","xcr0":"0x0000000000000007","xsave_components":[{"align64":false,"index":2,"offset":576,"size":256,"supervisor":false,"xfd":false}],"xss":"0x0000000000000000"}"#, description: "AMD EPYC, fourth generation (Genoa), on every backend; NVX time ABI v1", - generation: &KNOWN_GENERATIONS[5], + generation: &KNOWN_GENERATIONS[6], cpuid: &[ leaf( 0x0, @@ -2340,7 +2702,7 @@ pub(crate) const PINNED: [PinnedProfile; 8] = [ digest: digest("0d9d044922eae3f27442178249f0b60feb0db07efe446e6641a1fcbfbb3a04ff"), encoding: r#"{"cpuid":[{"leaf":"0x00000000","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x0000001c","0x68747541","0x444d4163","0x69746e65"]},{"leaf":"0x00000001","mask":["0xffffffff","0x0000ffff","0xf7dfffff","0xffffffff"],"subleaf":null,"value":["0x00b00f21","0x00000800","0xf6da3203","0x078bfbff"]},{"leaf":"0x00000002","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000003","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000004","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000005","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000006","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000004","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000007","mask":["0xffffffff","0xffffffff","0xffffffef","0xffffffff"],"subleaf":"0x00000000","value":["0x00000001","0xf1bf07a9","0x00405f46","0x00000110"]},{"leaf":"0x00000007","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x00000030","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000008","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000009","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0x00000000","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x000000e7","0x00000000","0x00000980","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0x00000000","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x0000000f","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000100","0x00000240","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000005","value":["0x00000040","0x00000340","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000006","value":["0x00000200","0x00000380","0x00000000","0x00000000"]},{"leaf":"0x0000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000007","value":["0x00000400","0x00000580","0x00000000","0x00000000"]},{"leaf":"0x0000000e","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000000f","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000010","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000011","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000012","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000013","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000014","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000015","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000016","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000017","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000018","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x00000019","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001b","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x0000001c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000000","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x80000021","0x68747541","0x444d4163","0x69746e65"]},{"leaf":"0x80000001","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00b00f21","0x00000000","0x004002f3","0x2fd3fbff"]},{"leaf":"0x80000002","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x20444d41","0x43595045","0x6f725020","0x73736563"]},{"leaf":"0x80000003","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x2820726f","0x69727554","0x0000296e","0x00000000"]},{"leaf":"0x80000004","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000005","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0xff60ff40","0xff60ff40","0x300c0140","0x20080140"]},{"leaf":"0x80000006","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x40802040","0x60804040","0x04008140","0x0c009140"]},{"leaf":"0x80000007","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000100"]},{"leaf":"0x80000008","mask":["0xffffffff","0xffffffff","0xffff0f00","0xffffffff"],"subleaf":null,"value":["0x00003030","0x40020005","0x00000000","0x00000000"]},{"leaf":"0x80000009","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000b","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000e","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000000f","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000010","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000011","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000012","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000013","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000014","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000015","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000016","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000017","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000018","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000019","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001a","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001b","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001c","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000000","value":["0x00000121","0x02c0003f","0x0000003f","0x00000000"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000001","value":["0x00000122","0x01c0003f","0x0000003f","0x00000000"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000002","value":["0x00000143","0x03c0003f","0x000003ff","0x00000002"]},{"leaf":"0x8000001d","mask":["0xfc003fff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000003","value":["0x00000163","0x03c0003f","0x00007fff","0x00000001"]},{"leaf":"0x8000001d","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":"0x00000004","value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001e","mask":["0x00000000","0xffff0000","0xfffff800","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x8000001f","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000020","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000000","0x00000000","0x00000000","0x00000000"]},{"leaf":"0x80000021","mask":["0xffffffff","0xffffffff","0xffffffff","0xffffffff"],"subleaf":null,"value":["0x00000204","0x00000000","0x00000006","0x00000000"]}],"description":"AMD EPYC, fifth generation (Turin), on every backend; NVX time ABI v1","generation":{"cpus":[{"family":26,"model":2,"steppings":[0,15]}],"name":"turin"},"id":"amd.turin.v1","msrs":[],"physical_address_width":48,"provenance":{"method":"derived by cpu_profile::derive under openvmm-cpu-profile-policy/v1: per-register consensus within each backend, then across backends, of the hosts' supported CPU surfaces","sources":[{"backend":"kvm","hosts":1,"surface_digests":["sha256:3977cef711857870a034a72b50a56d06d4f45f6e8751fcb32203a89c27e3d501"]}]},"schema":"openvmm-cpu-profile/v1","vendor":"AuthenticAMD","xcr0":"0x00000000000000e7","xsave_components":[{"align64":false,"index":2,"offset":576,"size":256,"supervisor":false,"xfd":false},{"align64":false,"index":5,"offset":832,"size":64,"supervisor":false,"xfd":false},{"align64":false,"index":6,"offset":896,"size":512,"supervisor":false,"xfd":false},{"align64":false,"index":7,"offset":1408,"size":1024,"supervisor":false,"xfd":false}],"xss":"0x0000000000000000"}"#, description: "AMD EPYC, fifth generation (Turin), on every backend; NVX time ABI v1", - generation: &KNOWN_GENERATIONS[6], + generation: &KNOWN_GENERATIONS[7], cpuid: &[ leaf( 0x0, diff --git a/vmm_core/cpu_profile/src/test_support.rs b/vmm_core/cpu_profile/src/test_support.rs index be9b3ce332e..232d6023d61 100644 --- a/vmm_core/cpu_profile/src/test_support.rs +++ b/vmm_core/cpu_profile/src/test_support.rs @@ -679,6 +679,205 @@ pub(crate) fn turin_kvm_entries() -> Vec { entries(&TURIN_KVM_CPUID) } +/// The CPUID of an Intel Xeon 6973P-C (Granite Rapids: family 6, model 0xad, +/// stepping 1) as WHP presents it in an Azure VM with nested virtualization, +/// a `Standard_D4s_v7` runner with Windows 25H2, which `--cpu-fingerprint` +/// recorded (microsoft/nvx#1055): each leaf, subleaf, and the registers of a +/// probe partition that enables every processor and XSAVE feature WHP offers +/// ([`GRANITE_RAPIDS_WHP_HOST`]). That WHP offers AMX's and CET's XSAVE +/// states, besides AVX-512's, AMX's features and tile leaves `0x1d` and +/// `0x1e`, and AVX10.1 with its leaf `0x24`. +pub(crate) const GRANITE_RAPIDS_WHP_CPUID: [(u32, Option, [u32; 4]); 69] = [ + (0x0, None, [0x24, 0x756e_6547, 0x6c65_746e, 0x4965_6e69]), + (0x1, None, [0x000a_06d1, 0x800, 0x76fa_3203, 0x0f8b_fbff]), + (0x2, None, [0x00fe_ff01, 0xf0, 0, 0]), + (0x3, None, [0; 4]), + (0x4, Some(0), [0x121, 0x02c0_003f, 0x3f, 0]), + (0x4, Some(1), [0x122, 0x03c0_003f, 0x3f, 0]), + (0x4, Some(2), [0x143, 0x03c0_003f, 0x7ff, 0]), + (0x4, Some(3), [0x163, 0x03c0_003f, 0x0007_7fff, 0]), + (0x4, Some(4), [0; 4]), + (0x5, None, [0; 4]), + (0x6, None, [0, 0, 0x1, 0]), + (0x7, Some(0), [0x2, 0xf1bf_2fb9, 0x1a41_5fe6, 0x23d1_4010]), + (0x7, Some(1), [0x0020_1c30, 0, 0, 0x0008_4000]), + (0x7, Some(2), [0, 0, 0, 0x1]), + (0x8, None, [0; 4]), + (0x9, None, [0; 4]), + (0xa, None, [0; 4]), + (0xb, Some(0), [0; 4]), + (0xc, None, [0; 4]), + (0xd, Some(0), [0x0006_00e7, 0x2b00, 0x2b00, 0]), + (0xd, Some(1), [0x1f, 0x2a00, 0x1800, 0]), + (0xd, Some(2), [0x100, 0x240, 0, 0]), + (0xd, Some(5), [0x40, 0x440, 0, 0]), + (0xd, Some(6), [0x200, 0x480, 0, 0]), + (0xd, Some(7), [0x400, 0x680, 0, 0]), + (0xd, Some(0xb), [0x10, 0, 0x1, 0]), + (0xd, Some(0xc), [0x18, 0, 0x1, 0]), + (0xd, Some(0x11), [0x40, 0xac0, 0x2, 0]), + (0xd, Some(0x12), [0x2000, 0xb00, 0x6, 0]), + (0xe, None, [0; 4]), + (0xf, Some(0), [0; 4]), + (0xf, Some(1), [0; 4]), + (0x10, Some(0), [0; 4]), + (0x10, Some(1), [0; 4]), + (0x10, Some(2), [0; 4]), + (0x10, Some(3), [0; 4]), + (0x11, None, [0; 4]), + (0x12, Some(0), [0; 4]), + (0x12, Some(1), [0; 4]), + (0x12, Some(2), [0; 4]), + (0x13, None, [0; 4]), + (0x14, Some(0), [0; 4]), + (0x15, None, [0; 4]), + (0x16, None, [0; 4]), + (0x17, Some(0), [0; 4]), + (0x18, Some(0), [0; 4]), + (0x19, None, [0; 4]), + (0x1a, None, [0; 4]), + (0x1b, None, [0; 4]), + (0x1c, None, [0; 4]), + (0x1d, Some(0), [0x1, 0, 0, 0]), + (0x1d, Some(1), [0x0400_2000, 0x0008_0040, 0x10, 0]), + (0x1e, Some(0), [0, 0x4010, 0, 0]), + (0x1f, Some(0), [0; 4]), + (0x20, None, [0; 4]), + (0x21, None, [0; 4]), + (0x22, None, [0; 4]), + (0x23, None, [0; 4]), + (0x24, Some(0), [0, 0x0007_0001, 0, 0]), + (0x4000_0000, None, [0; 4]), + (0x8000_0000, None, [0x8000_0008, 0, 0, 0]), + (0x8000_0001, None, [0, 0, 0x121, 0x2c10_0800]), + ( + 0x8000_0002, + None, + [0x6574_6e49, 0x2952_286c, 0x6f65_5820, 0x2952_286e], + ), + (0x8000_0003, None, [0x3739_3620, 0x432d_5033, 0, 0]), + (0x8000_0004, None, [0; 4]), + (0x8000_0005, None, [0; 4]), + (0x8000_0006, None, [0, 0, 0x0800_7040, 0]), + (0x8000_0007, None, [0; 4]), + (0x8000_0008, None, [0x3930, 0, 0, 0]), +]; + +/// The processor features that WHP offers the host of +/// [`GRANITE_RAPIDS_WHP_CPUID`], AMX's included. +pub(crate) const GRANITE_RAPIDS_WHP_HOST: HvFeatures = HvFeatures { + banks: [0x2e0a_8bff_e7f7_859f, 0x0001_200e_0ef9_f7f1], + xsave: 0x38_7eff_ffdf, +}; + +/// Returns [`GRANITE_RAPIDS_WHP_CPUID`] as fingerprint entries. +pub(crate) fn granite_rapids_whp_entries() -> Vec { + entries(&GRANITE_RAPIDS_WHP_CPUID) +} + +/// Returns the fingerprint of the WHP host of [`GRANITE_RAPIDS_WHP_CPUID`], +/// with its processor features, as `--cpu-fingerprint` recorded them. +pub(crate) fn granite_rapids_whp_fingerprint() -> CpuFingerprint { + let mut backend = BackendFingerprint::new("whp", "test", granite_rapids_whp_entries()); + let [bank0, bank1] = GRANITE_RAPIDS_WHP_HOST.banks; + backend.set_feature_bank("whp.capability.ProcessorFeatures", bank0); + backend.set_feature_bank("whp.capability.ProcessorFeaturesBanks.bank0", bank0); + backend.set_feature_bank("whp.capability.ProcessorFeaturesBanks.bank1", bank1); + backend.set_feature_bank( + "whp.capability.ProcessorXsaveFeatures", + GRANITE_RAPIDS_WHP_HOST.xsave, + ); + backend_host_fingerprint(backend) +} +/// The CPUID of an Intel Xeon 6973P-C (Granite Rapids: family 6, model 0xad, +/// stepping 1) as KVM reports it in an Azure VM with nested virtualization, a +/// GitHub-hosted Actions runner with Linux 7.0, which `--cpu-fingerprint` +/// recorded. That KVM offers AMX's features but not its tile states, which +/// need a permission that the fingerprint does not request, no CET state, +/// and AVX10.1 with its leaf `0x24`, as the WHP of +/// [`GRANITE_RAPIDS_WHP_CPUID`] does. +pub(crate) const GRANITE_RAPIDS_KVM_CPUID: [(u32, Option, [u32; 4]); 60] = [ + (0x0, None, [0x24, 0x756e_6547, 0x6c65_746e, 0x4965_6e69]), + ( + 0x1, + None, + [0x000a_06d1, 0x0004_0800, 0xf7fa_3223, 0x0f8b_fbff], + ), + (0x2, None, [0x00fe_ff01, 0xf0, 0, 0]), + (0x3, None, [0; 4]), + (0x4, Some(0), [0x0400_4121, 0x02c0_003f, 0x3f, 0]), + (0x4, Some(1), [0x0400_4122, 0x03c0_003f, 0x3f, 0]), + (0x4, Some(2), [0x0400_4143, 0x03c0_003f, 0x7ff, 0]), + (0x4, Some(3), [0x0400_c163, 0x03c0_003f, 0x0007_7fff, 0]), + (0x4, Some(4), [0; 4]), + (0x5, None, [0; 4]), + (0x6, None, [0x4, 0, 0, 0]), + (0x7, Some(0), [0x2, 0xf1bf_2fbb, 0x1a41_5f66, 0x23c1_4010]), + (0x7, Some(1), [0x0020_1c30, 0, 0, 0x0008_4000]), + (0x7, Some(2), [0, 0, 0, 0x1]), + (0x8, None, [0; 4]), + (0x9, None, [0; 4]), + (0xa, None, [0; 4]), + (0xb, Some(0), [0; 4]), + (0xc, None, [0; 4]), + (0xd, Some(0), [0xe7, 0xa80, 0xa80, 0]), + (0xd, Some(1), [0x1f, 0x980, 0, 0]), + (0xd, Some(2), [0x100, 0x240, 0, 0]), + (0xd, Some(5), [0x40, 0x440, 0, 0]), + (0xd, Some(6), [0x200, 0x480, 0, 0]), + (0xd, Some(7), [0x400, 0x680, 0, 0]), + (0xe, None, [0; 4]), + (0xf, Some(0), [0; 4]), + (0x10, Some(0), [0; 4]), + (0x11, None, [0; 4]), + (0x12, Some(0), [0; 4]), + (0x13, None, [0; 4]), + (0x14, Some(0), [0; 4]), + (0x15, None, [0; 4]), + (0x16, None, [0; 4]), + (0x17, Some(0), [0; 4]), + (0x18, Some(0), [0; 4]), + (0x19, None, [0; 4]), + (0x1a, None, [0; 4]), + (0x1b, None, [0; 4]), + (0x1c, None, [0; 4]), + (0x1d, Some(0), [0x1, 0, 0, 0]), + (0x1d, Some(1), [0x0400_2000, 0x0008_0040, 0x10, 0]), + (0x1e, Some(0), [0, 0x4010, 0, 0]), + (0x1f, Some(0), [0; 4]), + (0x20, None, [0; 4]), + (0x21, None, [0; 4]), + (0x22, None, [0; 4]), + (0x23, None, [0; 4]), + (0x24, Some(0), [0, 0x0007_0001, 0, 0]), + ( + 0x4000_0000, + None, + [0x4000_0001, 0x4b4d_564b, 0x564b_4d56, 0x4d], + ), + (0x4000_0001, None, [0x0100_7efb, 0, 0, 0]), + (0x8000_0000, None, [0x8000_0008, 0, 0, 0]), + (0x8000_0001, None, [0, 0, 0x121, 0x2c10_0800]), + (0x8000_0002, None, [0; 4]), + (0x8000_0003, None, [0; 4]), + (0x8000_0004, None, [0; 4]), + (0x8000_0005, None, [0; 4]), + (0x8000_0006, None, [0, 0, 0x0800_7040, 0]), + (0x8000_0007, None, [0, 0, 0, 0x100]), + (0x8000_0008, None, [0x0030_3930, 0, 0, 0]), +]; + +/// The `IA32_ARCH_CAPABILITIES` value that the KVM of +/// [`GRANITE_RAPIDS_KVM_CPUID`]'s host reports for guests. +pub(crate) const GRANITE_RAPIDS_KVM_ARCH_CAPABILITIES: u64 = 0x0c00_e16d; + +/// Returns the fingerprint of the KVM host of [`GRANITE_RAPIDS_KVM_CPUID`], +/// with its `IA32_ARCH_CAPABILITIES` value. +pub(crate) fn granite_rapids_kvm_fingerprint() -> CpuFingerprint { + let mut backend = BackendFingerprint::new("kvm", "test", entries(&GRANITE_RAPIDS_KVM_CPUID)); + backend.set_feature_msrs([(IA32_ARCH_CAPABILITIES, GRANITE_RAPIDS_KVM_ARCH_CAPABILITIES)]); + backend_host_fingerprint(backend) +} /// Returns a recorded CPUID `table` as fingerprint entries. fn entries(table: &[(u32, Option, [u32; 4])]) -> Vec { table diff --git a/vmm_core/virt_whp/src/time_abi.rs b/vmm_core/virt_whp/src/time_abi.rs index 8fdc7656af4..21436bc0b59 100644 --- a/vmm_core/virt_whp/src/time_abi.rs +++ b/vmm_core/virt_whp/src/time_abi.rs @@ -1315,11 +1315,13 @@ pub(crate) mod test_cpuid { use vm_topology::processor::x86::ApicMode; use vm_topology::processor::x86::X2ApicState; - /// Pinned CPU profiles of each vendor. - pub const PROFILES: [&str; 7] = [ + /// Pinned CPU profiles of each vendor, and Granite Rapids', the first to + /// reach the V2 extended topology leaf `0x1F`. + pub const PROFILES: [&str; 8] = [ "intel.skylake-sp.v1", "intel.icelake-sp.v1", "intel.emeraldrapids.v1", + "intel.graniterapids.v1", "amd.milan.v1", "amd.genoa.v1", "amd.genoa.v2",