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

[Xen-devel] [PATCH] VT-d: change RHSA structure to be consistent with sp

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] VT-d: change RHSA structure to be consistent with spec
From: "Han, Weidong" <weidong.han@xxxxxxxxx>
Date: Thu, 25 Mar 2010 09:48:24 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "Kay, Allen M" <allen.m.kay@xxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Wed, 24 Mar 2010 18:50:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcrLvUHTTbnsLnxwSGmLis/1xZOHPg==
Thread-topic: [Xen-devel] [PATCH] VT-d: change RHSA structure to be consistent with spec
'Reserved' field is missed in current RHSA structure, and move the 'proximity 
domain' field to the bottom. In addition, fix some indent issues.

Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>

diff -r 8a9976f147c8 xen/include/xen/acpi.h
--- a/xen/include/xen/acpi.h    Thu Mar 25 17:55:59 2010 +0800
+++ b/xen/include/xen/acpi.h    Thu Mar 25 18:02:46 2010 +0800
@@ -213,22 +213,23 @@ struct acpi_table_rmrr {
 struct acpi_table_rmrr {
        struct  acpi_dmar_entry_header header;
        u16     reserved;
-       u16     segment;
+    u16 segment;
        u64     base_address;
        u64     end_address;
 } __attribute__ ((packed));
 
 struct acpi_table_atsr {
-        struct  acpi_dmar_entry_header header;
-        u8      flags;
-        u8      reserved;
-        u16     segment;
+    struct  acpi_dmar_entry_header header;
+    u8      flags;
+    u8      reserved;
+    u16     segment;
 } __attribute__ ((packed));
 
 struct acpi_table_rhsa {
-        struct  acpi_dmar_entry_header header;
-        u32     proximity_domain;
-        u64     address; /* register base address for this drhd */
+    struct  acpi_dmar_entry_header header;
+    u32     reserved;
+    u64     address; /* register base address for this drhd */
+    u32     proximity_domain;
 } __attribute__ ((packed));
 
 enum acpi_dev_scope_type {

Attachment: rhsa.patch
Description: rhsa.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>