Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xen for openSUSE:Factory checked in at 2026-11-21 21:45:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xen (Old) and /work/SRC/openSUSE:Factory/.xen.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xen" Sat Nov 21 21:45:08 2026 rev:381 rq:1398712 version:4.22.0_10 Changes: -------- --- /work/SRC/openSUSE:Factory/xen/xen.changes 2026-11-04 19:43:18.987028024 +0100 +++ /work/SRC/openSUSE:Factory/.xen.new.1340718/xen.changes 2026-11-21 21:45:40.717288397 +0100 @@ -1,0 +2,13 @@ +Wed Nov 18 15:21:23 MST 2026 - [email protected] + +- bsc#1290016 - VUL-0: CVE-2024-21963: xen: AMD IOMMU Out-of-Bounds + Device Table Read (XSA-524) + 6af35c5a-AMD-IOMMU-allocate-at-least-one-spare-device-table-entry.patch + 6afc7aa7-AMD-IOMMU-correct-devtab-size-writing.patch +- bsc#1290020 - VUL-0: CVE-2024-36350,CVE-2024-36357,CVE-2026-0004: + xen: x86: Transient Scheduler Attacks (XSA-525) + 6af35c5a-spec-ctrl-Rename-tsa_calculations.patch + 6af35c5a-spec-ctrl-Extend-TSA-SQ-L1-mitigations-to-Zen5-CPUs.patch + 6af35c5a-spec-ctrl-Mitigate-the-new-TSA-Fill-variant.patch + +------------------------------------------------------------------- New: ---- 6af35c5a-AMD-IOMMU-allocate-at-least-one-spare-device-table-entry.patch 6af35c5a-spec-ctrl-Extend-TSA-SQ-L1-mitigations-to-Zen5-CPUs.patch 6af35c5a-spec-ctrl-Mitigate-the-new-TSA-Fill-variant.patch 6af35c5a-spec-ctrl-Rename-tsa_calculations.patch 6afc7aa7-AMD-IOMMU-correct-devtab-size-writing.patch ----------(New B)---------- New: Device Table Read (XSA-524) 6af35c5a-AMD-IOMMU-allocate-at-least-one-spare-device-table-entry.patch 6afc7aa7-AMD-IOMMU-correct-devtab-size-writing.patch New: 6af35c5a-spec-ctrl-Rename-tsa_calculations.patch 6af35c5a-spec-ctrl-Extend-TSA-SQ-L1-mitigations-to-Zen5-CPUs.patch 6af35c5a-spec-ctrl-Mitigate-the-new-TSA-Fill-variant.patch New: 6af35c5a-spec-ctrl-Extend-TSA-SQ-L1-mitigations-to-Zen5-CPUs.patch 6af35c5a-spec-ctrl-Mitigate-the-new-TSA-Fill-variant.patch New: xen: x86: Transient Scheduler Attacks (XSA-525) 6af35c5a-spec-ctrl-Rename-tsa_calculations.patch 6af35c5a-spec-ctrl-Extend-TSA-SQ-L1-mitigations-to-Zen5-CPUs.patch New: 6af35c5a-AMD-IOMMU-allocate-at-least-one-spare-device-table-entry.patch 6afc7aa7-AMD-IOMMU-correct-devtab-size-writing.patch - bsc#1290020 - VUL-0: CVE-2024-36350,CVE-2024-36357,CVE-2026-0004: ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xen.spec ++++++ --- /var/tmp/diff_new_pack.4jeQgW/_old 2026-11-21 21:45:43.637411335 +0100 +++ /var/tmp/diff_new_pack.4jeQgW/_new 2026-11-21 21:45:43.646411714 +0100 @@ -126,7 +126,7 @@ BuildRequires: python-rpm-macros Provides: installhint(reboot-needed) -Version: 4.22.0_08 +Version: 4.22.0_10 Release: 0 Summary: Xen Virtualization: Hypervisor (aka VMM aka Microkernel) License: GPL-2.0-only @@ -175,6 +175,11 @@ Patch12: 6abbe28e-vmx-Rework-#DB-intercept-logic-to-fix-VMEntry-failure-with-BTF.patch Patch13: 6ae9cd89-gnttab-complete-checking-in-gnttab_copy_buf_valid.patch Patch14: 6ae9cd89-gnttab-move-only-local-domain-may-copy-by-frame-check.patch +Patch15: 6af35c5a-AMD-IOMMU-allocate-at-least-one-spare-device-table-entry.patch +Patch16: 6af35c5a-spec-ctrl-Rename-tsa_calculations.patch +Patch17: 6af35c5a-spec-ctrl-Extend-TSA-SQ-L1-mitigations-to-Zen5-CPUs.patch +Patch18: 6af35c5a-spec-ctrl-Mitigate-the-new-TSA-Fill-variant.patch +Patch19: 6afc7aa7-AMD-IOMMU-correct-devtab-size-writing.patch # Our platform specific patches Patch400: xen-destdir.patch Patch401: vif-bridge-no-iptables.patch ++++++ 6af35c5a-AMD-IOMMU-allocate-at-least-one-spare-device-table-entry.patch ++++++ Subject: AMD/IOMMU: allocate (at least) one spare device table entry From: Jan Beulich [email protected] Wed Nov 4 17:41:37 2026 +0000 Date: Tue Nov 10 18:03:06 2026 +0000: Git: d7378932b1fcee6ef3f3698efae03ffa003672b8 Certain IOMMUs have an off-by-one in the upper bounds check of device table accesses. Therefore an extra entry is needed, to avoid the IOMMU accessing random unrelated memory. Since the size is reported to the IOMMU in 4k granularity, an extra page may need allocating. To keep things simple (as before: full order-N allocations), arrange to allocate the next higher order of pages if/as necessary. At the same time avoid using / reporting the extra entries. As struct table_struct's alloc_size field is now only ever written, drop the field right away (if for nothing else than to avoid possible Misra concerns). This is CVE-2024-21963 / XSA-524. Signed-off-by: Jan Beulich <[email protected]> Acked-by: Andrew Cooper <[email protected]> diff --git a/xen/drivers/passthrough/amd/iommu-defs.h b/xen/drivers/passthrough/amd/iommu-defs.h index 30b094f187..72c7579185 100644 --- a/xen/drivers/passthrough/amd/iommu-defs.h +++ b/xen/drivers/passthrough/amd/iommu-defs.h @@ -104,7 +104,7 @@ struct amd_iommu_dte { /* 0 - 63 */ bool v:1; bool tv:1; - unsigned int :5; + unsigned int rsvd:5; unsigned int had:2; #define IOMMU_MAX_PT_LEVELS 6 unsigned int paging_mode:3; diff --git a/xen/drivers/passthrough/amd/iommu.h b/xen/drivers/passthrough/amd/iommu.h index 52f748310b..042c6eed59 100644 --- a/xen/drivers/passthrough/amd/iommu.h +++ b/xen/drivers/passthrough/amd/iommu.h @@ -54,7 +54,6 @@ typedef struct cmd_entry struct table_struct { void *buffer; unsigned long entries; - unsigned long alloc_size; }; struct ring_buffer { diff --git a/xen/drivers/passthrough/amd/iommu_init.c b/xen/drivers/passthrough/amd/iommu_init.c index e0c8925c33..9376ca6120 100644 --- a/xen/drivers/passthrough/amd/iommu_init.c +++ b/xen/drivers/passthrough/amd/iommu_init.c @@ -80,7 +80,9 @@ static void register_iommu_dev_table_in_mmio_space(struct amd_iommu *iommu) entry = 0; iommu_set_addr_lo_to_reg(&entry, addr_lo >> PAGE_SHIFT); - set_field_in_reg_u32((iommu->dev_table.alloc_size / PAGE_SIZE) - 1, + set_field_in_reg_u32(ROUNDUP(iommu->dev_table.entries * + IOMMU_DEV_TABLE_ENTRY_SIZE, + PAGE_SIZE) - 1, entry, IOMMU_DEV_TABLE_SIZE_MASK, IOMMU_DEV_TABLE_SIZE_SHIFT, &entry); writel(entry, iommu->mmio_base + IOMMU_DEV_TABLE_BASE_LOW_OFFSET); @@ -948,8 +950,21 @@ static void disable_iommu(struct amd_iommu *iommu) static unsigned int __init dt_alloc_size(void) { - return PAGE_SIZE << get_order_from_bytes(ivrs_bdf_entries * - IOMMU_DEV_TABLE_ENTRY_SIZE); + unsigned int nr = ROUNDUP(ivrs_bdf_entries, + PAGE_SIZE / IOMMU_DEV_TABLE_ENTRY_SIZE); + + /* + * AMD SN-3060 / CVE-2024-21963 + * + * Some IOMMUs read beyond the programmed Device Table limit. When the + * total size of the Device Table is less than 2M (covering all 2^16 BDFs + * in a single PCI Segment), we must allocate one extra entry to avoid the + * IOMMU reading unrelated memory and treating it as a valid entry. + */ + if ( nr < (1U << 16) ) + ++nr; + + return PAGE_SIZE << get_order_from_bytes(nr * IOMMU_DEV_TABLE_ENTRY_SIZE); } static void __init deallocate_buffer(void *buf, unsigned long sz) @@ -1089,9 +1104,8 @@ static int __init amd_iommu_init_one(struct amd_iommu *iommu, bool intr) if ( !IVRS_MAPPINGS_DEVTAB(ivrs_mappings) ) goto error_out; - iommu->dev_table.alloc_size = dt_alloc_size(); - iommu->dev_table.entries = iommu->dev_table.alloc_size / - IOMMU_DEV_TABLE_ENTRY_SIZE; + /* There may be trailing "scratch" entries, which should not be used. */ + iommu->dev_table.entries = ivrs_bdf_entries; iommu->dev_table.buffer = IVRS_MAPPINGS_DEVTAB(ivrs_mappings); enable_iommu(iommu); @@ -1255,11 +1269,21 @@ static int __init cf_check amd_iommu_setup_device_table( * IOMMU_DEV_TABLE_INT_CONTROL_ABORTED all being zero, and us also * wanting at least TV, GV, I, and EX set to false. */ - for ( bdf = 0, size /= sizeof(*dt); bdf < size; ++bdf ) + for ( bdf = 0; bdf < ivrs_bdf_entries; ++bdf ) dt[bdf] = (struct amd_iommu_dte){ .v = true, .iv = iommu_intremap, }; + + /* + * Prefill extra DTEs such that their use will raise an + * ILLEGAL_DEV_TABLE_ENTRY event. + */ + for ( size /= sizeof(*dt); bdf < size; ++bdf ) + dt[bdf] = (struct amd_iommu_dte){ + .v = true, + .rsvd = 3, /* As per AMD recommendation. */ + }; } /* Add device table entries */ ++++++ 6af35c5a-spec-ctrl-Extend-TSA-SQ-L1-mitigations-to-Zen5-CPUs.patch ++++++ Subject: x86/spec-ctrl: Extend TSA-SQ/L1 mitigations to Zen5 CPUs From: Andrew Cooper [email protected] Fri Oct 16 18:18:56 2026 +0100 Date: Tue Nov 10 18:09:57 2026 +0000: Git: 319f1dadeedeeeaa4c3591eed97c054cd199a914 AMD previously said that Zen5 was not affected by TSA. This statement has been retracted, along with the recommendation to synthesise the TSA_SQ/L1_NO bits on Zen5 CPUs. Simply removing the synthesis of TSA_SQ/L1_NO creates a migration/resume problem; VMs which had booted between July 2025 and Nov 2026 on Zen5 would no longer be eligible to run on the same system as before. Tolerate VMs which have seen TSA_SQ/L1_NO, despite knowing this to be an unsafe configuration. The VM is in no worse a position than before. This is CVE-2024-36350 and CVE-2024-36357, part of XSA-525. Signed-off-by: Andrew Cooper <[email protected]> Acked-by: Roger Pau Monné <[email protected]> (cherry picked from commit c8cb3beaa78952913b3eef062650f752118e910f) diff --git a/xen/arch/x86/cpu-policy.c b/xen/arch/x86/cpu-policy.c index eddcd9778f..789f29ee2e 100644 --- a/xen/arch/x86/cpu-policy.c +++ b/xen/arch/x86/cpu-policy.c @@ -499,6 +499,23 @@ static void __init guest_common_max_feature_adjustments(uint32_t *fs) * has been around since the 286. */ __set_bit(X86_FEATURE_VERW_CLEAR, fs); + + /* + * Between July 2025 and Nov 2026, AMD had said that Zen5 was not + * vulnerable to TSA and to synthesise the TSA_SQ/L1_NO bits, but this + * statement has been retracted. + * + * VM's booted during that period on Zen5 CPUs will have seen the + * bits. Tolerate such VMs; they'll be in no worse a position than + * prior to Nov 2026. + * + * Zen6 enumerates TSA_SQ/L1_NO, so there's no change from this logic. + */ + if ( boot_cpu_data.family == 0x1a ) + { + __set_bit(X86_FEATURE_TSA_SQ_NO, fs); + __set_bit(X86_FEATURE_TSA_L1_NO, fs); + } break; } @@ -592,6 +609,20 @@ static void __init guest_common_default_feature_adjustments(uint32_t *fs) */ if ( !cpu_has_verw_clear ) __clear_bit(X86_FEATURE_VERW_CLEAR, fs); + + /* + * Between July 2025 and Nov 2026, AMD had said that Zen5 was not + * vulnerable to TSA and to synthesise the TSA_SQ/L1_NO bits, but this + * statement has been retracted. + * + * The max policy has these set for migration compatibility, but a VM + * should not see them by default if the hardware is affected. + */ + if ( !cpu_has_tsa_sq_no ) + __clear_bit(X86_FEATURE_TSA_SQ_NO, fs); + + if ( !cpu_has_tsa_l1_no ) + __clear_bit(X86_FEATURE_TSA_L1_NO, fs); break; } diff --git a/xen/arch/x86/spec_ctrl.c b/xen/arch/x86/spec_ctrl.c index 8f77fe4cdb..3132752090 100644 --- a/xen/arch/x86/spec_ctrl.c +++ b/xen/arch/x86/spec_ctrl.c @@ -1467,18 +1467,22 @@ static void __init tsa_sq_l1_calculations(void) return; /* - * According to the whitepaper, some Fam1A CPUs (Models 0x00...0x4f, - * 0x60...0x7f) are not vulnerable but don't enumerate TSA_{SQ,L1}_NO. If - * we see either enumerated, assume both are correct ... + * Zen6 and later are stated not to be vulnerable to the 3 known TSA + * variants, and enumerate all TSA_*_NO bits. + * + * Zen5 is vulnerable to all 3. It gets VERW_CLEAR with new enough + * microcode, which is enumerated in CPUID. + * + * No synthesis should be performed. */ - if ( cpu_has_tsa_sq_no || cpu_has_tsa_l1_no ) + if ( boot_cpu_data.family > 0x19 ) return; /* - * ... otherwise, synthesise them. CPUs other than Fam19 (Zen3/4) are - * stated to be not vulnerable. + * Zen2 and older are stated not to be vulnerable, and need to synthesise + * TSA_SQ/L1_NO. */ - if ( boot_cpu_data.family != 0x19 ) + if ( boot_cpu_data.family < 0x19 ) { setup_force_cpu_cap(X86_FEATURE_TSA_SQ_NO); setup_force_cpu_cap(X86_FEATURE_TSA_L1_NO); @@ -1486,7 +1490,7 @@ static void __init tsa_sq_l1_calculations(void) } /* - * Fam19 CPUs get VERW_CLEAR with new enough microcode, but must + * Zen3 and Zen4 get VERW_CLEAR with new enough microcode, but must * synthesise the CPUID bit. */ curr_rev = this_cpu(cpu_sig).rev; @@ -2254,6 +2258,9 @@ void __init init_speculation_mitigations(void) * Note, these microcode updates were produced before the remediation of * the microcode signature issues, and are included in the firwmare * updates fixing the entrysign vulnerability from ~December 2024. + * + * - September 2026, for TSA-L1/SQ/Fill. Introduces VERW side effects on + * Zen5, and enumerates VERW_CLEAR. */ mds_calculations(); rfds_calculations(); diff --git a/xen/include/public/arch-x86/cpufeatureset.h b/xen/include/public/arch-x86/cpufeatureset.h index ce4a7982a5..24e397eefd 100644 --- a/xen/include/public/arch-x86/cpufeatureset.h +++ b/xen/include/public/arch-x86/cpufeatureset.h @@ -401,8 +401,8 @@ XEN_CPUFEATURE(PB_OPT_CTRL, 16*32+32) /* MSR_PB_OPT_CTRL.IBPB_ALT */ XEN_CPUFEATURE(ITS_NO, 16*32+62) /*!A No Indirect Target Selection */ /* AMD-defined CPU features, CPUID level 0x80000021.ecx, word 18 */ -XEN_CPUFEATURE(TSA_SQ_NO, 18*32+ 1) /*A No Store Queue Transitive Scheduler Attacks */ -XEN_CPUFEATURE(TSA_L1_NO, 18*32+ 2) /*A No L1D Transitive Scheduler Attacks */ +XEN_CPUFEATURE(TSA_SQ_NO, 18*32+ 1) /*!A No Store Queue Transitive Scheduler Attacks */ +XEN_CPUFEATURE(TSA_L1_NO, 18*32+ 2) /*!A No L1D Transitive Scheduler Attacks */ #endif /* XEN_CPUFEATURE */ ++++++ 6af35c5a-spec-ctrl-Mitigate-the-new-TSA-Fill-variant.patch ++++++ Subject: x86/spec-ctrl: Mitigate the new TSA-Fill variant From: Andrew Cooper [email protected] Fri Nov 7 15:00:32 2025 +0000 Date: Tue Nov 10 18:09:57 2026 +0000: Git: 28ffae9d8c51cca58afb4a32bdb619cda133f218 A new variant of TSA has been found, affecting only Zen5 CPUs. Updated microcode has been issued. Unlike the original TSA, this microcode does enumerate VERW_CLEAR, so Xen does not need a table of microcode revisions. The handling of VERW_CLEAR for guests is the same as before. A new CPUID bit, TSA_FILL_NO, indicates that the system is unaffected. It is expected to be set on all Zen6 and later systems. Zen4 and older are believed to be unaffected, and need to synthesise the bit for guests. This is CVE-2026-0004, part of XSA-525. Signed-off-by: Andrew Cooper <[email protected]> Reviewed-by: Roger Pau Monné <[email protected]> (cherry picked from commit d44b131ce954905205a478e19c8422aa2ec9e399) diff --git a/xen/arch/x86/include/asm/cpufeature.h b/xen/arch/x86/include/asm/cpufeature.h index dcd223d84f..d3cb372bfd 100644 --- a/xen/arch/x86/include/asm/cpufeature.h +++ b/xen/arch/x86/include/asm/cpufeature.h @@ -296,6 +296,7 @@ static inline bool boot_cpu_has(unsigned int feat) /* CPUID level 0x80000021.ecx */ #define cpu_has_tsa_sq_no boot_cpu_has(X86_FEATURE_TSA_SQ_NO) #define cpu_has_tsa_l1_no boot_cpu_has(X86_FEATURE_TSA_L1_NO) +#define cpu_has_tsa_fill_no boot_cpu_has(X86_FEATURE_TSA_FILL_NO) /* Synthesized. */ #define cpu_has_arch_perfmon boot_cpu_has(X86_FEATURE_ARCH_PERFMON) diff --git a/xen/arch/x86/spec_ctrl.c b/xen/arch/x86/spec_ctrl.c index 3132752090..fb015cac5e 100644 --- a/xen/arch/x86/spec_ctrl.c +++ b/xen/arch/x86/spec_ctrl.c @@ -510,7 +510,7 @@ static void __init print_details(enum ind_thunk thunk) * Hardware read-only information, stating immunity to certain issues, or * suggestions of which mitigation to use. */ - printk(" Hardware hints:%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n", + printk(" Hardware hints:%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n", (caps & ARCH_CAPS_RDCL_NO) ? " RDCL_NO" : "", (caps & ARCH_CAPS_EIBRS) ? " EIBRS" : "", (caps & ARCH_CAPS_RSBA) ? " RSBA" : "", @@ -537,7 +537,8 @@ static void __init print_details(enum ind_thunk thunk) (e21a & cpufeat_mask(X86_FEATURE_SRSO_NO)) ? " SRSO_NO" : "", (e21a & cpufeat_mask(X86_FEATURE_SRSO_US_NO)) ? " SRSO_US_NO" : "", (e21c & cpufeat_mask(X86_FEATURE_TSA_SQ_NO)) ? " TSA_SQ_NO" : "", - (e21c & cpufeat_mask(X86_FEATURE_TSA_L1_NO)) ? " TSA_L1_NO" : ""); + (e21c & cpufeat_mask(X86_FEATURE_TSA_L1_NO)) ? " TSA_L1_NO" : "", + (e21c & cpufeat_mask(X86_FEATURE_TSA_FILL_NO)) ? " TSA_FILL_NO" : ""); /* Hardware features which need driving to mitigate issues. */ printk(" Hardware features:%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n", @@ -1524,6 +1525,33 @@ static void __init tsa_sq_l1_calculations(void) setup_force_cpu_cap(X86_FEATURE_VERW_CLEAR); } +/* + * Transient Scheduler Attacks (L1-Fill) + * + * https://www.amd.com/content/dam/amd/en/documents/resources/bulletin/technical-guidance-for-mitigating-transient-scheduler-attacks.pdf + */ +static void __init tsa_fill_calculations(void) +{ + /* TSA is only known to affect AMD processors at this time. */ + if ( boot_cpu_data.vendor != X86_VENDOR_AMD ) + return; + + /* If we're virtualised, don't attempt to synthesise anything. */ + if ( cpu_has_hypervisor ) + return; + + /* + * Zen6 and later CPUs are expected to enumerate TSA_FILL_NO. + * + * Zen5 CPUs are vulnerable and get VERW_CLEAR in microcode. + * + * Zen4 and earlier are not believed to be affected, but do not enumerate + * TSA_FILL_NO. Synthesise it. + */ + if ( boot_cpu_data.family < 0x1a ) + setup_force_cpu_cap(X86_FEATURE_TSA_FILL_NO); +} + static bool __init cpu_has_gds(void) { /* @@ -2265,6 +2293,7 @@ void __init init_speculation_mitigations(void) mds_calculations(); rfds_calculations(); tsa_sq_l1_calculations(); + tsa_fill_calculations(); /* * Parts which enumerate FB_CLEAR are those with now-updated microcode diff --git a/xen/include/public/arch-x86/cpufeatureset.h b/xen/include/public/arch-x86/cpufeatureset.h index 24e397eefd..50dc1c31c0 100644 --- a/xen/include/public/arch-x86/cpufeatureset.h +++ b/xen/include/public/arch-x86/cpufeatureset.h @@ -403,6 +403,7 @@ XEN_CPUFEATURE(ITS_NO, 16*32+62) /*!A No Indirect Target Selection * /* AMD-defined CPU features, CPUID level 0x80000021.ecx, word 18 */ XEN_CPUFEATURE(TSA_SQ_NO, 18*32+ 1) /*!A No Store Queue Transitive Scheduler Attacks */ XEN_CPUFEATURE(TSA_L1_NO, 18*32+ 2) /*!A No L1D Transitive Scheduler Attacks */ +XEN_CPUFEATURE(TSA_FILL_NO, 18*32+ 7) /*A No L1D-Fill Transitive Scheduler Attacks */ #endif /* XEN_CPUFEATURE */ ++++++ 6af35c5a-spec-ctrl-Rename-tsa_calculations.patch ++++++ Subject: x86/spec-ctrl: Rename tsa_calculations() From: Andrew Cooper [email protected] Fri Nov 7 15:00:32 2025 +0000 Date: Tue Nov 10 18:09:57 2026 +0000: Git: de7673b5a13dd92dfd65a86c723f192efbbc4246 ... and adjust some comments in preparation to cope with the second TSA variant. No functional change. This is part of XSA-525. Signed-off-by: Andrew Cooper <[email protected]> Acked-by: Roger Pau Monné <[email protected]> (cherry picked from commit 85b6ec84e7276c2ed01815cd11b96fe73d98e14b) diff --git a/xen/arch/x86/spec_ctrl.c b/xen/arch/x86/spec_ctrl.c index bc8538a56f..8f77fe4cdb 100644 --- a/xen/arch/x86/spec_ctrl.c +++ b/xen/arch/x86/spec_ctrl.c @@ -1450,11 +1450,11 @@ static void __init rfds_calculations(void) } /* - * Transient Scheduler Attacks + * Transient Scheduler Attacks (Store Queue and L1) * * https://www.amd.com/content/dam/amd/en/documents/resources/bulletin/technical-guidance-for-mitigating-transient-scheduler-attacks.pdf */ -static void __init tsa_calculations(void) +static void __init tsa_sq_l1_calculations(void) { unsigned int curr_rev, min_rev; @@ -2247,9 +2247,9 @@ void __init init_speculation_mitigations(void) * - March 2023, for RFDS. Enumerate RFDS_CLEAR to mean that VERW now * scrubs non-architectural entries from certain register files. * - * - July 2025, for TSA. Introduces VERW side effects to mitigate - * TSA_{SQ/L1}. Xen must synthesise the VERW_CLEAR feature based on - * microcode version. + * - July 2025, for TSA-L1/SQ. Introduces VERW side effects on Zen3/4. + * Xen must synthesise the VERW_CLEAR feature based on microcode + * version. * * Note, these microcode updates were produced before the remediation of * the microcode signature issues, and are included in the firwmare @@ -2257,7 +2257,7 @@ void __init init_speculation_mitigations(void) */ mds_calculations(); rfds_calculations(); - tsa_calculations(); + tsa_sq_l1_calculations(); /* * Parts which enumerate FB_CLEAR are those with now-updated microcode ++++++ 6afc7aa7-AMD-IOMMU-correct-devtab-size-writing.patch ++++++ Subject: AMD/IOMMU: correct devtab size writing From: Jan Beulich [email protected] Tue Nov 17 17:28:34 2026 +0100 Date: Tue Nov 17 17:28:34 2026 +0100: Git: fe0fee1d15cf3e63d03d688c18833b348b29ae5d The fix for XSA-524 inadvertently converted a page-granular value to a byte-granular one, thus always setting maximum size (2Mb) without the table always being that size. Fixes: d7378932b1fc ("AMD/IOMMU: allocate (at least) one spare device table entry") Reported-by: Roger Pau Monné <[email protected]> Signed-off-by: Jan Beulich <[email protected]> Reviewed-by: Roger Pau Monné <[email protected]> master commit: ab77da87e9b38022341eb6a54593e681485d203a master date: 2026-11-17 17:02:47 +0100 diff --git a/xen/drivers/passthrough/amd/iommu_init.c b/xen/drivers/passthrough/amd/iommu_init.c index 9376ca6120..2be7534c70 100644 --- a/xen/drivers/passthrough/amd/iommu_init.c +++ b/xen/drivers/passthrough/amd/iommu_init.c @@ -80,9 +80,8 @@ static void register_iommu_dev_table_in_mmio_space(struct amd_iommu *iommu) entry = 0; iommu_set_addr_lo_to_reg(&entry, addr_lo >> PAGE_SHIFT); - set_field_in_reg_u32(ROUNDUP(iommu->dev_table.entries * - IOMMU_DEV_TABLE_ENTRY_SIZE, - PAGE_SIZE) - 1, + set_field_in_reg_u32(PFN_UP(iommu->dev_table.entries * + IOMMU_DEV_TABLE_ENTRY_SIZE) - 1, entry, IOMMU_DEV_TABLE_SIZE_MASK, IOMMU_DEV_TABLE_SIZE_SHIFT, &entry); writel(entry, iommu->mmio_base + IOMMU_DEV_TABLE_BASE_LOW_OFFSET);
