ia64/xen-unstable

changeset 16100:5c13433f8842

[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@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Fri Oct 12 13:50:09 2007 -0600 (2007-10-12)
parents 4746c8c9372f
children e71c7789c2f5
files tools/libxc/ia64/xc_ia64_hvm_build.c
line diff
     1.1 --- a/tools/libxc/ia64/xc_ia64_hvm_build.c	Fri Oct 12 10:19:55 2007 +0100
     1.2 +++ b/tools/libxc/ia64/xc_ia64_hvm_build.c	Fri Oct 12 13:50:09 2007 -0600
     1.3 @@ -28,54 +28,6 @@ xc_ia64_copy_to_domain_pages(int xc_hand
     1.4      return 0;
     1.5  }
     1.6  
     1.7 -int 
     1.8 -xc_set_hvm_param(int handle, domid_t dom, int param, unsigned long value)
     1.9 -{
    1.10 -    DECLARE_HYPERCALL;
    1.11 -    xen_hvm_param_t arg;
    1.12 -    int rc;
    1.13 -
    1.14 -    hypercall.op = __HYPERVISOR_hvm_op;
    1.15 -    hypercall.arg[0] = HVMOP_set_param;
    1.16 -    hypercall.arg[1] = (unsigned long)&arg;
    1.17 -
    1.18 -    arg.domid = dom;
    1.19 -    arg.index = param;
    1.20 -    arg.value = value;
    1.21 -
    1.22 -    if (lock_pages(&arg, sizeof(arg)) != 0)
    1.23 -        return -1;
    1.24 -
    1.25 -    rc = do_xen_hypercall(handle, &hypercall);
    1.26 -    unlock_pages(&arg, sizeof(arg));
    1.27 -
    1.28 -    return rc;
    1.29 -}
    1.30 -
    1.31 -int 
    1.32 -xc_get_hvm_param(int handle, domid_t dom, int param, unsigned long *value)
    1.33 -{
    1.34 -    DECLARE_HYPERCALL;
    1.35 -    xen_hvm_param_t arg;
    1.36 -    int rc;
    1.37 -
    1.38 -    hypercall.op = __HYPERVISOR_hvm_op;
    1.39 -    hypercall.arg[0] = HVMOP_get_param;
    1.40 -    hypercall.arg[1] = (unsigned long)&arg;
    1.41 -
    1.42 -    arg.domid = dom;
    1.43 -    arg.index = param;
    1.44 -
    1.45 -    if (lock_pages(&arg, sizeof(arg)) != 0)
    1.46 -        return -1;
    1.47 -
    1.48 -    rc = do_xen_hypercall(handle, &hypercall);
    1.49 -    unlock_pages(&arg, sizeof(arg));
    1.50 -
    1.51 -    *value = arg.value;
    1.52 -    return rc;
    1.53 -}
    1.54 -
    1.55  #define HOB_SIGNATURE         0x3436474953424f48        // "HOBSIG64"
    1.56  #define GFW_HOB_START         ((4UL<<30)-(14UL<<20))    // 4G - 14M
    1.57  #define GFW_HOB_SIZE          (1UL<<20)                 // 1M