diff options
author | Keir Fraser <keir@xen.org> | 2011-01-14 08:13:09 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2011-01-14 08:13:09 +0000 |
commit | ebafe597e9395f5a06d8209d4c21dbe4bf05ccb6 (patch) | |
tree | d2b2b17930e8827635946d4efede3f485b54269a | |
parent | 23893ac158565900fba322f3279b57e3383bd0b4 (diff) | |
download | xen-ebafe597e9395f5a06d8209d4c21dbe4bf05ccb6.tar.gz xen-ebafe597e9395f5a06d8209d4c21dbe4bf05ccb6.tar.bz2 xen-ebafe597e9395f5a06d8209d4c21dbe4bf05ccb6.zip |
VT-d: fix ia64 build
The identifier `dest_LowestPrio' is defined on only x86.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
xen-unstable changeset: 22092:e0ec7b10f8ce
xen-unstable date: Thu Sep 02 13:36:23 2010 +0100
-rw-r--r-- | xen/drivers/passthrough/vtd/intremap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xen/drivers/passthrough/vtd/intremap.c b/xen/drivers/passthrough/vtd/intremap.c index f3c56f1732..b9d2424d1d 100644 --- a/xen/drivers/passthrough/vtd/intremap.c +++ b/xen/drivers/passthrough/vtd/intremap.c @@ -320,8 +320,12 @@ static int ioapic_rte_to_remap_entry(struct iommu *iommu, new_ire.lo.dm = new_rte.dest_mode; new_ire.lo.tm = new_rte.trigger; new_ire.lo.dlm = new_rte.delivery_mode; +#ifdef CONFIG_X86 /* Hardware require RH = 1 for LPR delivery mode */ new_ire.lo.rh = (new_ire.lo.dlm == dest_LowestPrio); +#else + new_ire.lo.rh = 0; +#endif new_ire.lo.avail = 0; new_ire.lo.res_1 = 0; new_ire.lo.vector = new_rte.vector; @@ -633,8 +637,12 @@ static int msi_msg_to_remap_entry( new_ire.lo.dm = (msg->address_lo >> MSI_ADDR_DESTMODE_SHIFT) & 0x1; new_ire.lo.tm = (msg->data >> MSI_DATA_TRIGGER_SHIFT) & 0x1; new_ire.lo.dlm = (msg->data >> MSI_DATA_DELIVERY_MODE_SHIFT) & 0x1; +#ifdef CONFIG_X86 /* Hardware require RH = 1 for LPR delivery mode */ new_ire.lo.rh = (new_ire.lo.dlm == dest_LowestPrio); +#else + new_ire.lo.rh = 0; +#endif new_ire.lo.avail = 0; new_ire.lo.res_1 = 0; new_ire.lo.vector = (msg->data >> MSI_DATA_VECTOR_SHIFT) & |