[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] Remove duplicate xc_get/set_hvm_param() definitions
# HG changeset patch # User Alex Williamson <alex.williamson@xxxxxx> # Date 1192218609 21600 # Node ID 5c13433f88422c55eb600429e975718d535e0a3d # Parent 4746c8c9372fd1b2c9db48210a9be2c3eb0bdb77 [IA64] Remove duplicate xc_get/set_hvm_param() definitions Remove duplicated xc_get/set_hvm_param definition in xc_ia64_hvm_build.c They are also defined in xc_domain.c. Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- tools/libxc/ia64/xc_ia64_hvm_build.c | 48 ----------------------------------- 1 files changed, 48 deletions(-) diff -r 4746c8c9372f -r 5c13433f8842 tools/libxc/ia64/xc_ia64_hvm_build.c --- a/tools/libxc/ia64/xc_ia64_hvm_build.c Fri Oct 12 10:19:55 2007 +0100 +++ b/tools/libxc/ia64/xc_ia64_hvm_build.c Fri Oct 12 13:50:09 2007 -0600 @@ -26,54 +26,6 @@ xc_ia64_copy_to_domain_pages(int xc_hand } return 0; -} - -int -xc_set_hvm_param(int handle, domid_t dom, int param, unsigned long value) -{ - DECLARE_HYPERCALL; - xen_hvm_param_t arg; - int rc; - - hypercall.op = __HYPERVISOR_hvm_op; - hypercall.arg[0] = HVMOP_set_param; - hypercall.arg[1] = (unsigned long)&arg; - - arg.domid = dom; - arg.index = param; - arg.value = value; - - if (lock_pages(&arg, sizeof(arg)) != 0) - return -1; - - rc = do_xen_hypercall(handle, &hypercall); - unlock_pages(&arg, sizeof(arg)); - - return rc; -} - -int -xc_get_hvm_param(int handle, domid_t dom, int param, unsigned long *value) -{ - DECLARE_HYPERCALL; - xen_hvm_param_t arg; - int rc; - - hypercall.op = __HYPERVISOR_hvm_op; - hypercall.arg[0] = HVMOP_get_param; - hypercall.arg[1] = (unsigned long)&arg; - - arg.domid = dom; - arg.index = param; - - if (lock_pages(&arg, sizeof(arg)) != 0) - return -1; - - rc = do_xen_hypercall(handle, &hypercall); - unlock_pages(&arg, sizeof(arg)); - - *value = arg.value; - return rc; } #define HOB_SIGNATURE 0x3436474953424f48 // "HOBSIG64" _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |