[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Remove the bindings for VM.get_VCPUs_{number, utilisation} -- these have moved



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1172440932 0
# Node ID 8c8d91a006baa51977d69055287bb0b1467c8a3d
# Parent  d81c0b55e2480c6a4189b91226076dfb705a62cc
Remove the bindings for VM.get_VCPUs_{number,utilisation} -- these have moved
onto the metrics class.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/libxen/include/xen_vm.h |   19 ------------------
 tools/libxen/src/xen_vm.c     |   43 ------------------------------------------
 2 files changed, 2 insertions(+), 60 deletions(-)

diff -r d81c0b55e248 -r 8c8d91a006ba tools/libxen/include/xen_vm.h
--- a/tools/libxen/include/xen_vm.h     Sun Feb 25 21:53:39 2007 +0000
+++ b/tools/libxen/include/xen_vm.h     Sun Feb 25 22:02:12 2007 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006, XenSource Inc.
+ * Copyright (c) 2006-2007, XenSource Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -23,7 +23,6 @@
 #include "xen_console_decl.h"
 #include "xen_crashdump_decl.h"
 #include "xen_host_decl.h"
-#include "xen_int_float_map.h"
 #include "xen_on_crash_behaviour.h"
 #include "xen_on_normal_exit.h"
 #include "xen_string_string_map.h"
@@ -124,8 +123,6 @@ typedef struct xen_vm_record
     xen_string_string_map *vcpus_params;
     int64_t vcpus_max;
     int64_t vcpus_at_startup;
-    int64_t vcpus_number;
-    xen_int_float_map *vcpus_utilisation;
     enum xen_on_normal_exit actions_after_shutdown;
     enum xen_on_normal_exit actions_after_reboot;
     enum xen_on_crash_behaviour actions_after_crash;
@@ -389,20 +386,6 @@ xen_vm_get_vcpus_at_startup(xen_session 
 
 
 /**
- * Get the VCPUs/number field of the given VM.
- */
-extern bool
-xen_vm_get_vcpus_number(xen_session *session, int64_t *result, xen_vm vm);
-
-
-/**
- * Get the VCPUs/utilisation field of the given VM.
- */
-extern bool
-xen_vm_get_vcpus_utilisation(xen_session *session, xen_int_float_map **result, 
xen_vm vm);
-
-
-/**
  * Get the actions/after_shutdown field of the given VM.
  */
 extern bool
diff -r d81c0b55e248 -r 8c8d91a006ba tools/libxen/src/xen_vm.c
--- a/tools/libxen/src/xen_vm.c Sun Feb 25 21:53:39 2007 +0000
+++ b/tools/libxen/src/xen_vm.c Sun Feb 25 22:02:12 2007 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006, XenSource Inc.
+ * Copyright (c) 2006-2007, XenSource Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -24,7 +24,6 @@
 #include "xen_console.h"
 #include "xen_crashdump.h"
 #include "xen_host.h"
-#include "xen_int_float_map.h"
 #include "xen_internal.h"
 #include "xen_on_crash_behaviour_internal.h"
 #include "xen_on_normal_exit_internal.h"
@@ -100,12 +99,6 @@ static const struct_member xen_vm_record
         { .key = "VCPUs_at_startup",
           .type = &abstract_type_int,
           .offset = offsetof(xen_vm_record, vcpus_at_startup) },
-        { .key = "VCPUs_number",
-          .type = &abstract_type_int,
-          .offset = offsetof(xen_vm_record, vcpus_number) },
-        { .key = "VCPUs_utilisation",
-          .type = &abstract_type_int_float_map,
-          .offset = offsetof(xen_vm_record, vcpus_utilisation) },
         { .key = "actions_after_shutdown",
           .type = &xen_on_normal_exit_abstract_type_,
           .offset = offsetof(xen_vm_record, actions_after_shutdown) },
@@ -208,7 +201,6 @@ xen_vm_record_free(xen_vm_record *record
     xen_host_record_opt_free(record->resident_on);
     free(record->vcpus_policy);
     xen_string_string_map_free(record->vcpus_params);
-    xen_int_float_map_free(record->vcpus_utilisation);
     xen_console_record_opt_set_free(record->consoles);
     xen_vif_record_opt_set_free(record->vifs);
     xen_vbd_record_opt_set_free(record->vbds);
@@ -580,39 +572,6 @@ xen_vm_get_vcpus_at_startup(xen_session 
 
 
 bool
-xen_vm_get_vcpus_number(xen_session *session, int64_t *result, xen_vm vm)
-{
-    abstract_value param_values[] =
-        {
-            { .type = &abstract_type_string,
-              .u.string_val = vm }
-        };
-
-    abstract_type result_type = abstract_type_int;
-
-    XEN_CALL_("VM.get_VCPUs_number");
-    return session->ok;
-}
-
-
-bool
-xen_vm_get_vcpus_utilisation(xen_session *session, xen_int_float_map **result, 
xen_vm vm)
-{
-    abstract_value param_values[] =
-        {
-            { .type = &abstract_type_string,
-              .u.string_val = vm }
-        };
-
-    abstract_type result_type = abstract_type_int_float_map;
-
-    *result = NULL;
-    XEN_CALL_("VM.get_VCPUs_utilisation");
-    return session->ok;
-}
-
-
-bool
 xen_vm_get_actions_after_shutdown(xen_session *session, enum 
xen_on_normal_exit *result, xen_vm vm)
 {
     abstract_value param_values[] =

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.