From: Isaku Yamahata Date: Fri, 8 Aug 2008 02:38:08 +0000 (+0900) Subject: [IA64] Fix PV driver domains - xen stubs X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14164 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=283fe01effc343e25125b10902525a2f2ef87711;p=xen.git [IA64] Fix PV driver domains - xen stubs 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 --- diff --git a/xen/arch/ia64/xen/dom0_ops.c b/xen/arch/ia64/xen/dom0_ops.c index ee2c31109d..4410617232 100644 --- a/xen/arch/ia64/xen/dom0_ops.c +++ b/xen/arch/ia64/xen/dom0_ops.c @@ -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; diff --git a/xen/arch/ia64/xen/hypercall.c b/xen/arch/ia64/xen/hypercall.c index 29268ab128..743e10386a 100644 --- a/xen/arch/ia64/xen/hypercall.c +++ b/xen/arch/ia64/xen/hypercall.c @@ -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;