ia64/xen-unstable

changeset 18283:36c274bbc5df

[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>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Fri Aug 08 11:38:08 2008 +0900 (2008-08-08)
parents a39913db6e51
children 853476b12f56
files xen/arch/ia64/xen/dom0_ops.c xen/arch/ia64/xen/hypercall.c
line diff
     1.1 --- a/xen/arch/ia64/xen/dom0_ops.c	Thu Aug 07 11:57:34 2008 +0900
     1.2 +++ b/xen/arch/ia64/xen/dom0_ops.c	Fri Aug 08 11:38:08 2008 +0900
     1.3 @@ -388,6 +388,10 @@ long arch_do_domctl(xen_domctl_t *op, XE
     1.4      }
     1.5      break;
     1.6  
     1.7 +    case XEN_DOMCTL_assign_device:
     1.8 +        ret = -ENOSYS;
     1.9 +        break;
    1.10 +
    1.11      default:
    1.12          printk("arch_do_domctl: unrecognized domctl: %d!!!\n",op->cmd);
    1.13          ret = -ENOSYS;
     2.1 --- a/xen/arch/ia64/xen/hypercall.c	Thu Aug 07 11:57:34 2008 +0900
     2.2 +++ b/xen/arch/ia64/xen/hypercall.c	Fri Aug 08 11:38:08 2008 +0900
     2.3 @@ -426,6 +426,16 @@ long do_physdev_op(int cmd, XEN_GUEST_HA
     2.4          break;
     2.5      }
     2.6  
     2.7 +    /*
     2.8 +     * XXX We don't support MSI for PCI passthrough, so just return success
     2.9 +     */
    2.10 +    case PHYSDEVOP_map_pirq:
    2.11 +    case PHYSDEVOP_unmap_pirq:
    2.12 +        ret = 0;
    2.13 +        break;
    2.14 +
    2.15 +    case PHYSDEVOP_manage_pci_add:
    2.16 +    case PHYSDEVOP_manage_pci_remove:
    2.17      default:
    2.18          ret = -ENOSYS;
    2.19          break;