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] x86: Enhance guest's interrupt affinity setting.

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] x86: Enhance guest's interrupt affinity setting.
From: "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
Date: Fri, 25 Dec 2009 23:34:32 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 25 Dec 2009 07:35:00 -0800
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: AcqFd8F6pd+Cpl4vR4S3hs2EIBOa2Q==
Thread-topic: x86: Enhance guest's interrupt affinity setting.
# HG changeset patch
# User root@vt-dp6
# Date 1261754905 -28800
# Node ID 3af667cf9a5814268aabb212f5b6892ed1da31cf
# Parent  8f304c003af49d3b20aff5a6c2c963a7af696378
x86: Enhance guest's interrupt affinity setting.
 
When guest uses logical flat destionation mode
for interrupt delivery, vector doesn't change
but destionation also can change, so should
enhance the check condition.
 
Signed-off-by: Xiantao Zhang <xiantao.zhang@xxxxxxxxx>
 
diff -r 8f304c003af4 -r 3af667cf9a58 xen/drivers/passthrough/io.c
--- a/xen/drivers/passthrough/io.c Wed Dec 09 10:59:31 2009 +0000
+++ b/xen/drivers/passthrough/io.c Fri Dec 25 23:28:25 2009 +0800
@@ -199,7 +199,8 @@ int pt_irq_create_bind_vtd(
             }
  
             /* if pirq is already mapped as vmsi, update the guest data/addr */
-            if ( hvm_irq_dpci->mirq[pirq].gmsi.gvec != pt_irq_bind->u.msi.gvec 
) {
+            if ( hvm_irq_dpci->mirq[pirq].gmsi.gvec != pt_irq_bind->u.msi.gvec 
||
+                hvm_irq_dpci->mirq[pirq].gmsi.gflags != 
pt_irq_bind->u.msi.gflags) {
                 hvm_irq_dpci->mirq[pirq].gmsi.old_gvec =
                                     hvm_irq_dpci->mirq[pirq].gmsi.gvec;
                 hvm_irq_dpci->mirq[pirq].gmsi.old_gflags =

Attachment: enhance-guest-intr-affinity-setting.patch
Description: enhance-guest-intr-affinity-setting.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] x86: Enhance guest's interrupt affinity setting., Zhang, Xiantao <=