Page MenuHomeFreeBSD

D29521.diff
No OneTemporary

D29521.diff

diff --git a/sys/amd64/vmm/amd/ivrs_drv.c b/sys/amd64/vmm/amd/ivrs_drv.c
--- a/sys/amd64/vmm/amd/ivrs_drv.c
+++ b/sys/amd64/vmm/amd/ivrs_drv.c
@@ -312,14 +312,22 @@
static bool
ivhd_is_newer(ACPI_IVRS_HEADER *old, ACPI_IVRS_HEADER *new)
{
- /*
- * Newer IVRS header type take precedence.
- */
- if ((old->DeviceId == new->DeviceId) &&
- (old->Type == IVRS_TYPE_HARDWARE_LEGACY) &&
- ((new->Type == IVRS_TYPE_HARDWARE_EFR) ||
- (new->Type == IVRS_TYPE_HARDWARE_MIXED))) {
- return (true);
+ if (old->DeviceId == new->DeviceId) {
+ /*
+ * Newer IVRS header type take precedence.
+ */
+ if (old->Type == IVRS_TYPE_HARDWARE_LEGACY &&
+ ((new->Type == IVRS_TYPE_HARDWARE_EFR) ||
+ (new->Type == IVRS_TYPE_HARDWARE_MIXED)))
+ return (true);
+
+ /*
+ * Mixed format IVHD header type take precedence
+ * over fixed format IVHD header types.
+ */
+ if (old->Type == IVRS_TYPE_HARDWARE_EFR &&
+ new->Type == IVRS_TYPE_HARDWARE_MIXED)
+ return (true);
}
return (false);

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 14, 6:03 AM (21 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15791645
Default Alt Text
D29521.diff (1009 B)

Event Timeline