[IA64] Fix PV driver domains - xen stubs
authorIsaku Yamahata <yamahata@valinux.co.jp>
Fri, 8 Aug 2008 02:38:08 +0000 (11:38 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Fri, 8 Aug 2008 02:38:08 +0000 (11:38 +0900)
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@hp.com>
xen/arch/ia64/xen/dom0_ops.c
xen/arch/ia64/xen/hypercall.c

index ee2c31109d5c1da898cf81e721f69a4b85648be5..44106172324d14762637ddf52640978c41ed1241 100644 (file)
@@ -388,6 +388,10 @@ long arch_do_domctl(xen_domctl_t *op, XEN_GUEST_HANDLE(xen_domctl_t) u_domctl)
     }
     break;
 
+    case XEN_DOMCTL_assign_device:
+        ret = -ENOSYS;
+        break;
+
     default:
         printk("arch_do_domctl: unrecognized domctl: %d!!!\n",op->cmd);
         ret = -ENOSYS;
index 29268ab1285c5458038614f5c098166606cf4a62..743e10386a6baf847e76079b8beeec0c45484ae4 100644 (file)
@@ -426,6 +426,16 @@ long do_physdev_op(int cmd, XEN_GUEST_HANDLE(void) arg)
         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;