# HG changeset patch
# User yamahata@xxxxxxxxxxxxx
# Date 1189066743 -32400
# Node ID 781397ad18973f5f71955dbd4fe1fa1b0b4c422c
# Parent 3165e43ce73421bf6308844a3d0d4f27dab47639
remove duplicated xc_get/set_hvm_param definition in xc_ia64_hvm_build.c
They are also defined in xc_domain.c.
PATCHNAME: remove_duplicated_xc_get_set_hvm_param
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
diff -r 3165e43ce734 -r 781397ad1897 tools/libxc/ia64/xc_ia64_hvm_build.c
--- a/tools/libxc/ia64/xc_ia64_hvm_build.c Tue Oct 02 11:31:55 2007 -0600
+++ b/tools/libxc/ia64/xc_ia64_hvm_build.c Thu Sep 06 17:19:03 2007 +0900
@@ -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"
16051_781397ad1897_remove_duplicated_xc_get_set_hvm_param.patch
Description: Text Data
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|