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-changelog

[Xen-changelog] [xen-unstable] libxc: Fix xc_domain_bind_pt_irq().

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxc: Fix xc_domain_bind_pt_irq().
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Dec 2007 12:00:13 -0800
Delivery-date: Thu, 27 Dec 2007 12:00:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1198758644 0
# Node ID d24f457fa1afd40112b66e64c180c4f8c5bda46b
# Parent  003542d9ab7713ffcecb7a91a2639083b7da4af5
libxc: Fix xc_domain_bind_pt_irq().
Signed-off-by: Guy Zana <guy@xxxxxxxxxxxx>
---
 tools/libxc/xc_domain.c |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff -r 003542d9ab77 -r d24f457fa1af tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c   Thu Dec 27 12:28:58 2007 +0000
+++ b/tools/libxc/xc_domain.c   Thu Dec 27 12:30:44 2007 +0000
@@ -786,7 +786,7 @@ int xc_domain_bind_pt_irq(
     uint8_t bus,
     uint8_t device,
     uint8_t intx,
-                                                 uint8_t isa_irq)
+    uint8_t isa_irq)
 {
     int rc;
     xen_domctl_bind_pt_irq_t * bind;
@@ -799,10 +799,14 @@ int xc_domain_bind_pt_irq(
     bind->hvm_domid = domid;
     bind->irq_type = irq_type;
     bind->machine_irq = machine_irq;
-    bind->u.pci.bus = bus;
-    bind->u.pci.device = device;    
-    bind->u.pci.intx = intx;
-    bind->u.isa.isa_irq = isa_irq;
+    if ( irq_type == PT_IRQ_TYPE_PCI )
+    {
+        bind->u.pci.bus = bus;
+        bind->u.pci.device = device;    
+        bind->u.pci.intx = intx;
+    } 
+    else if ( irq_type == PT_IRQ_TYPE_ISA )
+        bind->u.isa.isa_irq = isa_irq;
     
     rc = do_domctl(xc_handle, &domctl);
     return rc;

_______________________________________________
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] libxc: Fix xc_domain_bind_pt_irq()., Xen patchbot-unstable <=