direct-io.hg

changeset 14110:8c8d91a006ba

Remove the bindings for VM.get_VCPUs_{number,utilisation} -- these have moved
onto the metrics class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sun Feb 25 22:02:12 2007 +0000 (2007-02-25)
parents d81c0b55e248
children 532a25342a30
files tools/libxen/include/xen_vm.h tools/libxen/src/xen_vm.c
line diff
     1.1 --- a/tools/libxen/include/xen_vm.h	Sun Feb 25 21:53:39 2007 +0000
     1.2 +++ b/tools/libxen/include/xen_vm.h	Sun Feb 25 22:02:12 2007 +0000
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2006, XenSource Inc.
     1.6 + * Copyright (c) 2006-2007, XenSource Inc.
     1.7   *
     1.8   * This library is free software; you can redistribute it and/or
     1.9   * modify it under the terms of the GNU Lesser General Public
    1.10 @@ -23,7 +23,6 @@
    1.11  #include "xen_console_decl.h"
    1.12  #include "xen_crashdump_decl.h"
    1.13  #include "xen_host_decl.h"
    1.14 -#include "xen_int_float_map.h"
    1.15  #include "xen_on_crash_behaviour.h"
    1.16  #include "xen_on_normal_exit.h"
    1.17  #include "xen_string_string_map.h"
    1.18 @@ -124,8 +123,6 @@ typedef struct xen_vm_record
    1.19      xen_string_string_map *vcpus_params;
    1.20      int64_t vcpus_max;
    1.21      int64_t vcpus_at_startup;
    1.22 -    int64_t vcpus_number;
    1.23 -    xen_int_float_map *vcpus_utilisation;
    1.24      enum xen_on_normal_exit actions_after_shutdown;
    1.25      enum xen_on_normal_exit actions_after_reboot;
    1.26      enum xen_on_crash_behaviour actions_after_crash;
    1.27 @@ -389,20 +386,6 @@ xen_vm_get_vcpus_at_startup(xen_session 
    1.28  
    1.29  
    1.30  /**
    1.31 - * Get the VCPUs/number field of the given VM.
    1.32 - */
    1.33 -extern bool
    1.34 -xen_vm_get_vcpus_number(xen_session *session, int64_t *result, xen_vm vm);
    1.35 -
    1.36 -
    1.37 -/**
    1.38 - * Get the VCPUs/utilisation field of the given VM.
    1.39 - */
    1.40 -extern bool
    1.41 -xen_vm_get_vcpus_utilisation(xen_session *session, xen_int_float_map **result, xen_vm vm);
    1.42 -
    1.43 -
    1.44 -/**
    1.45   * Get the actions/after_shutdown field of the given VM.
    1.46   */
    1.47  extern bool
     2.1 --- a/tools/libxen/src/xen_vm.c	Sun Feb 25 21:53:39 2007 +0000
     2.2 +++ b/tools/libxen/src/xen_vm.c	Sun Feb 25 22:02:12 2007 +0000
     2.3 @@ -1,5 +1,5 @@
     2.4  /*
     2.5 - * Copyright (c) 2006, XenSource Inc.
     2.6 + * Copyright (c) 2006-2007, XenSource Inc.
     2.7   *
     2.8   * This library is free software; you can redistribute it and/or
     2.9   * modify it under the terms of the GNU Lesser General Public
    2.10 @@ -24,7 +24,6 @@
    2.11  #include "xen_console.h"
    2.12  #include "xen_crashdump.h"
    2.13  #include "xen_host.h"
    2.14 -#include "xen_int_float_map.h"
    2.15  #include "xen_internal.h"
    2.16  #include "xen_on_crash_behaviour_internal.h"
    2.17  #include "xen_on_normal_exit_internal.h"
    2.18 @@ -100,12 +99,6 @@ static const struct_member xen_vm_record
    2.19          { .key = "VCPUs_at_startup",
    2.20            .type = &abstract_type_int,
    2.21            .offset = offsetof(xen_vm_record, vcpus_at_startup) },
    2.22 -        { .key = "VCPUs_number",
    2.23 -          .type = &abstract_type_int,
    2.24 -          .offset = offsetof(xen_vm_record, vcpus_number) },
    2.25 -        { .key = "VCPUs_utilisation",
    2.26 -          .type = &abstract_type_int_float_map,
    2.27 -          .offset = offsetof(xen_vm_record, vcpus_utilisation) },
    2.28          { .key = "actions_after_shutdown",
    2.29            .type = &xen_on_normal_exit_abstract_type_,
    2.30            .offset = offsetof(xen_vm_record, actions_after_shutdown) },
    2.31 @@ -208,7 +201,6 @@ xen_vm_record_free(xen_vm_record *record
    2.32      xen_host_record_opt_free(record->resident_on);
    2.33      free(record->vcpus_policy);
    2.34      xen_string_string_map_free(record->vcpus_params);
    2.35 -    xen_int_float_map_free(record->vcpus_utilisation);
    2.36      xen_console_record_opt_set_free(record->consoles);
    2.37      xen_vif_record_opt_set_free(record->vifs);
    2.38      xen_vbd_record_opt_set_free(record->vbds);
    2.39 @@ -580,39 +572,6 @@ xen_vm_get_vcpus_at_startup(xen_session 
    2.40  
    2.41  
    2.42  bool
    2.43 -xen_vm_get_vcpus_number(xen_session *session, int64_t *result, xen_vm vm)
    2.44 -{
    2.45 -    abstract_value param_values[] =
    2.46 -        {
    2.47 -            { .type = &abstract_type_string,
    2.48 -              .u.string_val = vm }
    2.49 -        };
    2.50 -
    2.51 -    abstract_type result_type = abstract_type_int;
    2.52 -
    2.53 -    XEN_CALL_("VM.get_VCPUs_number");
    2.54 -    return session->ok;
    2.55 -}
    2.56 -
    2.57 -
    2.58 -bool
    2.59 -xen_vm_get_vcpus_utilisation(xen_session *session, xen_int_float_map **result, xen_vm vm)
    2.60 -{
    2.61 -    abstract_value param_values[] =
    2.62 -        {
    2.63 -            { .type = &abstract_type_string,
    2.64 -              .u.string_val = vm }
    2.65 -        };
    2.66 -
    2.67 -    abstract_type result_type = abstract_type_int_float_map;
    2.68 -
    2.69 -    *result = NULL;
    2.70 -    XEN_CALL_("VM.get_VCPUs_utilisation");
    2.71 -    return session->ok;
    2.72 -}
    2.73 -
    2.74 -
    2.75 -bool
    2.76  xen_vm_get_actions_after_shutdown(xen_session *session, enum xen_on_normal_exit *result, xen_vm vm)
    2.77  {
    2.78      abstract_value param_values[] =