|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] vtd: build fix.
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1212397398 -3600
# Node ID 73a1daa9715f0a530ad76ab022e53df27f6856a6
# Parent f1508348ffabedf2eab0b666a5b8e2c9515e52d7
vtd: build fix.
Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
---
xen/drivers/passthrough/vtd/intremap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff -r f1508348ffab -r 73a1daa9715f xen/drivers/passthrough/vtd/intremap.c
--- a/xen/drivers/passthrough/vtd/intremap.c Mon Jun 02 11:35:39 2008 +0900
+++ b/xen/drivers/passthrough/vtd/intremap.c Mon Jun 02 10:03:18 2008 +0100
@@ -60,7 +60,7 @@ static void remap_entry_to_ioapic_rte(
}
remap_rte = (struct IO_APIC_route_remap_entry *) old_rte;
- index = (remap_rte->index_15 << 15) + remap_rte->index_0_14;
+ index = (remap_rte->index_15 << 15) | remap_rte->index_0_14;
if ( index > ir_ctrl->iremap_index )
panic("%s: index (%d) is larger than remap table entry size (%d)!\n",
@@ -140,7 +140,7 @@ static void ioapic_rte_to_remap_entry(st
/* now construct new ioapic rte entry */
remap_rte->vector = new_rte.vector;
remap_rte->delivery_mode = 0; /* has to be 0 for remap format */
- remap_rte->index_15 = index & 0x8000;
+ remap_rte->index_15 = (index >> 15) & 0x1;
remap_rte->index_0_14 = index & 0x7fff;
remap_rte->delivery_status = new_rte.delivery_status;
@@ -269,7 +269,7 @@ static void remap_entry_to_msi_msg(
remap_rte = (struct msi_msg_remap_entry *) msg;
index = (remap_rte->address_lo.index_15 << 15) |
- remap_rte->address_lo.index_0_14;
+ remap_rte->address_lo.index_0_14;
if ( index > ir_ctrl->iremap_index )
panic("%s: index (%d) is larger than remap table entry size (%d)\n",
@@ -368,7 +368,7 @@ static void msi_msg_to_remap_entry(
/* now construct new MSI/MSI-X rte entry */
remap_rte->address_lo.dontcare = 0;
- remap_rte->address_lo.index_15 = index & 0x8000;
+ remap_rte->address_lo.index_15 = (index >> 15) & 0x1;
remap_rte->address_lo.index_0_14 = index & 0x7fff;
remap_rte->address_lo.SHV = 1;
remap_rte->address_lo.format = 1;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] vtd: build fix.,
Xen patchbot-unstable <=
|
|
|
|
|