|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
[Xen-devel] [PATCH] VT-d: should not disable VT-d when find unknown	DMAR
 
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@xxxxxxxxx>
diff -r 298794763a75 xen/drivers/passthrough/vtd/dmar.c
--- a/xen/drivers/passthrough/vtd/dmar.c        Fri Mar 26 02:04:06 2010 +0800
+++ b/xen/drivers/passthrough/vtd/dmar.c        Fri Mar 26 02:08:45 2010 +0800
@@ -730,7 +730,6 @@ static int __init acpi_parse_dmar(struct
             dprintk(XENLOG_WARNING VTDPREFIX,
                     "Unknown DMAR structure type %x\n",
                     entry_header->type);
-            ret = -EINVAL;
             break;
         }
         if ( ret )
 
forward-compatibility.patch 
Description: forward-compatibility.patch 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread>
 |  
- [Xen-devel] [PATCH] VT-d: should not disable VT-d when find unknown	DMAR structure type,
Han, Weidong <=
 
 
 |  
  
 | 
    | 
  
  
    |   | 
    |