[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] [IA64] xencomm: support several domctls for VT-d.
# HG changeset patch # User Isaku Yamahata <yamahata@xxxxxxxxxxxxx> # Date 1224814922 -32400 # Node ID 45c3a3dfa5b54619676d9de026452ee062a7e8af # Parent c87adc9760134abb7275728718e44af3dacc515b [IA64] xencomm: support several domctls for VT-d. This patch adds xencomm support of several domctl hypercalls for VT-d. Signed-off-by: Anthony Xu <anthony.xu@xxxxxxxxx> Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- arch/ia64/xen/xcom_privcmd.c | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+) diff -r c87adc976013 -r 45c3a3dfa5b5 arch/ia64/xen/xcom_privcmd.c --- a/arch/ia64/xen/xcom_privcmd.c Mon Oct 20 15:29:07 2008 +0100 +++ b/arch/ia64/xen/xcom_privcmd.c Fri Oct 24 11:22:02 2008 +0900 @@ -340,6 +340,20 @@ xencomm_privcmd_domctl(privcmd_hypercall return -ENOMEM; set_xen_guest_handle(kern_op.u.hvmcontext.buffer, (void*)desc); break; + case XEN_DOMCTL_get_device_group: + { + struct xen_domctl_get_device_group *get_device_group = + &kern_op.u.get_device_group; + desc = xencomm_map( + xen_guest_handle(get_device_group->sdev_array), + get_device_group->max_sdevs * sizeof(uint32_t)); + if (xen_guest_handle(get_device_group->sdev_array) != NULL && + get_device_group->max_sdevs > 0 && desc == NULL) + return -ENOMEM; + set_xen_guest_handle(kern_op.u.get_device_group.sdev_array, + (void*)desc); + break; + } case XEN_DOMCTL_max_vcpus: case XEN_DOMCTL_scheduler_op: case XEN_DOMCTL_setdomainhandle: @@ -354,6 +368,12 @@ xencomm_privcmd_domctl(privcmd_hypercall case XEN_DOMCTL_set_opt_feature: case XEN_DOMCTL_assign_device: case XEN_DOMCTL_subscribe: + case XEN_DOMCTL_test_assign_device: + case XEN_DOMCTL_deassign_device: + case XEN_DOMCTL_bind_pt_irq: + case XEN_DOMCTL_unbind_pt_irq: + case XEN_DOMCTL_memory_mapping: + case XEN_DOMCTL_ioport_mapping: break; case XEN_DOMCTL_pin_mem_cacheattr: return -ENOSYS; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |