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-ia64-devel

[Xen-ia64-devel] [PATCH] 2/3 Fix PV driver domains - xen stubs

To: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-ia64-devel] [PATCH] 2/3 Fix PV driver domains - xen stubs
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Thu, 07 Aug 2008 14:20:30 -0600
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Delivery-date: Thu, 07 Aug 2008 13:20:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: OSLO R&D
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Stub out new hypercalls in the hypervisor.  The only odd one here is
map/unmap_pirq.  This seems to be for MSI support, which I don't believe
we currently support for driver domains, so this is actually similar to
the x86 code path.  The tools code doesn't allow us to return -ENOSYS
here :(

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
--

diff -r eff5fcfa69bc xen/arch/ia64/xen/dom0_ops.c
--- a/xen/arch/ia64/xen/dom0_ops.c      Wed Aug 06 15:19:13 2008 +0100
+++ b/xen/arch/ia64/xen/dom0_ops.c      Thu Aug 07 13:50:26 2008 -0600
@@ -388,6 +388,10 @@ long arch_do_domctl(xen_domctl_t *op, XE
     }
     break;
 
+    case XEN_DOMCTL_assign_device:
+        ret = -ENOSYS;
+        break;
+
     default:
         printk("arch_do_domctl: unrecognized domctl: %d!!!\n",op->cmd);
         ret = -ENOSYS;
diff -r eff5fcfa69bc xen/arch/ia64/xen/hypercall.c
--- a/xen/arch/ia64/xen/hypercall.c     Wed Aug 06 15:19:13 2008 +0100
+++ b/xen/arch/ia64/xen/hypercall.c     Thu Aug 07 13:50:26 2008 -0600
@@ -426,6 +426,16 @@ long do_physdev_op(int cmd, XEN_GUEST_HA
         break;
     }
 
+    /*
+     * XXX We don't support MSI for PCI passthrough, so just return success
+     */
+    case PHYSDEVOP_map_pirq:
+    case PHYSDEVOP_unmap_pirq:
+        ret = 0;
+        break;
+
+    case PHYSDEVOP_manage_pci_add:
+    case PHYSDEVOP_manage_pci_remove:
     default:
         ret = -ENOSYS;
         break;



_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH] 2/3 Fix PV driver domains - xen stubs, Alex Williamson <=