mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
VT-d: should not disable VT-d when find unknown DMAR structure type
Now 4 DMAR structure types are supported (type value 0 ~ 3). Type values > 3 are reserved for future use. Current implementation disables VT-d when find unknown DMAR structure type, this may lead to VT-d disabling on future platforms before supporting new types on Xen. For forward compatibility, just skip unknown structures by skipping the appropriate number of bytes indicated by the Length field, and then VT-d still can be used. Signed-off-by: Weidong Han <weidong.han@intel.com>
This commit is contained in:
1 parent
f81bf6953c
commit
024ce79aea
1 file changed
-1
@@ -713,7 +713,6 @@ static int __init acpi_parse_dmar(struct acpi_table_header *table)
|
||||
dprintk(XENLOG_WARNING VTDPREFIX,
|
||||
"Unknown DMAR structure type %x\n",
|
||||
entry_header->type);
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
}
|
||||
if ( ret )
|
||||
|
||||