WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] [PATCH] VT-d: should not disable VT-d when find unknown

To: "Han, Weidong" <weidong.han@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] VT-d: should not disable VT-d when find unknown DMAR structure type
From: "Nadolski, Ed" <Ed.Nadolski@xxxxxxx>
Date: Thu, 25 Mar 2010 08:35:23 -0600
Accept-language: en-US
Acceptlanguage: en-US
Cc: "Kay, Allen M" <allen.m.kay@xxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Thu, 25 Mar 2010 07:36:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1A42CE6F5F474C41B63392A5F80372B21D684CE8@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1A42CE6F5F474C41B63392A5F80372B21D684CE8@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcrL/0SXrdA+i9oeT/m6Cna3WAUhgwAJ+tww
Thread-topic: [Xen-devel] [PATCH] VT-d: should not disable VT-d when find unknown DMAR structure type
> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-
> bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Han, Weidong
> Sent: Thursday, March 25, 2010 3:41 AM
> To: xen-devel@xxxxxxxxxxxxxxxxxxx
> Cc: Kay, Allen M; Keir Fraser
> Subject: [Xen-devel] [PATCH] 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@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 )

Just a suggestion: Since this completely changes the meaning of the dprintk 
message, the message should state that the unknown DMAR is being ignored. 
Otherwise an end user might think that it means some kind of serious problem.

Ed

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>