From 8c580e172b714585a81b47151867a06a20d92321 Mon Sep 17 00:00:00 2001 From: Alex Williamson Date: Fri, 12 Oct 2007 13:50:09 -0600 Subject: [PATCH] [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 --- tools/libxc/ia64/xc_ia64_hvm_build.c | 48 ---------------------------- 1 file changed, 48 deletions(-) diff --git a/tools/libxc/ia64/xc_ia64_hvm_build.c b/tools/libxc/ia64/xc_ia64_hvm_build.c index a5a7cc8aa3..b828696248 100644 --- a/tools/libxc/ia64/xc_ia64_hvm_build.c +++ b/tools/libxc/ia64/xc_ia64_hvm_build.c @@ -28,54 +28,6 @@ xc_ia64_copy_to_domain_pages(int xc_handle, uint32_t domid, void* src_page, 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" #define GFW_HOB_START ((4UL<<30)-(14UL<<20)) // 4G - 14M #define GFW_HOB_SIZE (1UL<<20) // 1M -- 2.39.5