From: "KUWAMURA Shin'ya" Subject: [PATCH] VT-d: fix ia64 build Date: Thu, 02 Sep 2010 13:36:48 +0900 (JST) Message-ID: <20100902.133648.57452091.kuwa@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Sep__2_13_36_48_2010_359)--" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ----Next_Part(Thu_Sep__2_13_36_48_2010_359)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, The identifier `dest_LowestPrio' is defined on only x86. Signed-off-by: KUWAMURA Shin'ya -- KUWAMURA Shin'ya ----Next_Part(Thu_Sep__2_13_36_48_2010_359)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-vtd-rh-bit.patch" # HG changeset patch # User KUWAMURA Shin'ya # Date 1283391122 -32400 # Node ID 62d5979a380e0e444d6bab1d774e1bf683dcf053 # Parent 3b39a76b3253d7b761ab1572bdd6e71cbaee9510 VT-d: fix ia64 build The identifier `dest_LowestPrio' is defined on only x86. Signed-off-by: KUWAMURA Shin'ya diff -r 3b39a76b3253 -r 62d5979a380e xen/drivers/passthrough/vtd/intremap.c --- a/xen/drivers/passthrough/vtd/intremap.c Thu Sep 02 10:27:12 2010 +0900 +++ b/xen/drivers/passthrough/vtd/intremap.c Thu Sep 02 10:32:02 2010 +0900 @@ -322,8 +322,12 @@ static int ioapic_rte_to_remap_entry(str 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; @@ -635,8 +639,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) & ----Next_Part(Thu_Sep__2_13_36_48_2010_359)-- Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ----Next_Part(Thu_Sep__2_13_36_48_2010_359)----