|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86/vtd: Switch model check to VFM
commit 8b8b361a426102fb75d08b8c822d70378c384408
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Tue Jul 15 20:36:55 2025 +0100
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Thu Jul 17 18:54:49 2025 +0100
x86/vtd: Switch model check to VFM
This form is shorer and more legible.
No functional change.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
---
xen/drivers/passthrough/vtd/quirks.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/xen/drivers/passthrough/vtd/quirks.c
b/xen/drivers/passthrough/vtd/quirks.c
index dc3dac749c..0a10a46d90 100644
--- a/xen/drivers/passthrough/vtd/quirks.c
+++ b/xen/drivers/passthrough/vtd/quirks.c
@@ -30,6 +30,7 @@
#include <xen/pci_regs.h>
#include <xen/keyhandler.h>
#include <asm/msi.h>
+#include <asm/intel-family.h>
#include <asm/irq.h>
#include <asm/pci.h>
@@ -630,9 +631,7 @@ void __init quirk_iommu_caps(struct vtd_iommu *iommu)
* model because the client parts don't expose their IOMMUs as PCI devices
* we could match with a Device ID.
*/
- if ( boot_cpu_data.x86_vendor == X86_VENDOR_INTEL &&
- boot_cpu_data.x86 == 6 &&
- (boot_cpu_data.x86_model == 0x2a ||
- boot_cpu_data.x86_model == 0x2d) )
+ if ( boot_cpu_data.vfm == INTEL_SANDYBRIDGE ||
+ boot_cpu_data.vfm == INTEL_SANDYBRIDGE_X )
iommu->cap &= ~(0xful << 34);
}
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |