diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2008-08-08 11:38:08 +0900 |
---|---|---|
committer | Isaku Yamahata <yamahata@valinux.co.jp> | 2008-08-08 11:38:08 +0900 |
commit | 283fe01effc343e25125b10902525a2f2ef87711 (patch) | |
tree | 1e47e5ecec0c75d8c3de883ad9990326cdd96284 | |
parent | be119bba8e85b2f7ebec4923c349fb7e7007f759 (diff) | |
download | xen-283fe01effc343e25125b10902525a2f2ef87711.tar.gz xen-283fe01effc343e25125b10902525a2f2ef87711.tar.bz2 xen-283fe01effc343e25125b10902525a2f2ef87711.zip |
[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 <alex.williamson@hp.com>
-rw-r--r-- | xen/arch/ia64/xen/dom0_ops.c | 4 | ||||
-rw-r--r-- | xen/arch/ia64/xen/hypercall.c | 10 |
2 files changed, 14 insertions, 0 deletions
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; |