WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [PATCH 1/23] remove duplicate xc_get/set_hvm_param() de

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH 1/23] remove duplicate xc_get/set_hvm_param() definitions
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Fri, 12 Oct 2007 12:51:35 +0900
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Delivery-date: Thu, 11 Oct 2007 20:52:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
# 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"

Attachment: 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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH 1/23] remove duplicate xc_get/set_hvm_param() definitions, Isaku Yamahata <=