diff options
author | Ewan Mellor <ewan@xensource.com> | 2007-03-14 21:59:11 +0000 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2007-03-14 21:59:11 +0000 |
commit | efcaa9d8d3f050ecc03285f6215ab47d646162cc (patch) | |
tree | 253cf22f57ac86c30aaf7d32d064792d18e9c29e /tools/libxen | |
parent | a72d446f86418dcfaf346ff13c3c25ea689724e1 (diff) | |
download | xen-efcaa9d8d3f050ecc03285f6215ab47d646162cc.tar.gz xen-efcaa9d8d3f050ecc03285f6215ab47d646162cc.tar.bz2 xen-efcaa9d8d3f050ecc03285f6215ab47d646162cc.zip |
Match recent removal of VM.VCPUs_policy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/libxen')
-rw-r--r-- | tools/libxen/include/xen_vm.h | 15 | ||||
-rw-r--r-- | tools/libxen/src/xen_vm.c | 37 | ||||
-rw-r--r-- | tools/libxen/test/test_bindings.c | 1 |
3 files changed, 0 insertions, 53 deletions
diff --git a/tools/libxen/include/xen_vm.h b/tools/libxen/include/xen_vm.h index 781e8ec8cd..ddce6a8d1d 100644 --- a/tools/libxen/include/xen_vm.h +++ b/tools/libxen/include/xen_vm.h @@ -87,7 +87,6 @@ typedef struct xen_vm_record int64_t memory_dynamic_max; int64_t memory_dynamic_min; int64_t memory_static_min; - char *vcpus_policy; xen_string_string_map *vcpus_params; int64_t vcpus_max; int64_t vcpus_at_startup; @@ -323,13 +322,6 @@ xen_vm_get_memory_static_min(xen_session *session, int64_t *result, xen_vm vm); /** - * Get the VCPUs/policy field of the given VM. - */ -extern bool -xen_vm_get_vcpus_policy(xen_session *session, char **result, xen_vm vm); - - -/** * Get the VCPUs/params field of the given VM. */ extern bool @@ -568,13 +560,6 @@ xen_vm_set_memory_static_min(xen_session *session, xen_vm vm, int64_t static_min /** - * Set the VCPUs/policy field of the given VM. - */ -extern bool -xen_vm_set_vcpus_policy(xen_session *session, xen_vm vm, char *policy); - - -/** * Set the VCPUs/params field of the given VM. */ extern bool diff --git a/tools/libxen/src/xen_vm.c b/tools/libxen/src/xen_vm.c index 64f04a3f8f..f80916188e 100644 --- a/tools/libxen/src/xen_vm.c +++ b/tools/libxen/src/xen_vm.c @@ -88,9 +88,6 @@ static const struct_member xen_vm_record_struct_members[] = { .key = "memory_static_min", .type = &abstract_type_int, .offset = offsetof(xen_vm_record, memory_static_min) }, - { .key = "VCPUs_policy", - .type = &abstract_type_string, - .offset = offsetof(xen_vm_record, vcpus_policy) }, { .key = "VCPUs_params", .type = &abstract_type_string_string_map, .offset = offsetof(xen_vm_record, vcpus_params) }, @@ -191,7 +188,6 @@ xen_vm_record_free(xen_vm_record *record) free(record->name_description); xen_vdi_record_opt_free(record->suspend_vdi); xen_host_record_opt_free(record->resident_on); - free(record->vcpus_policy); xen_string_string_map_free(record->vcpus_params); xen_console_record_opt_set_free(record->consoles); xen_vif_record_opt_set_free(record->vifs); @@ -498,23 +494,6 @@ xen_vm_get_memory_static_min(xen_session *session, int64_t *result, xen_vm vm) bool -xen_vm_get_vcpus_policy(xen_session *session, char **result, xen_vm vm) -{ - abstract_value param_values[] = - { - { .type = &abstract_type_string, - .u.string_val = vm } - }; - - abstract_type result_type = abstract_type_string; - - *result = NULL; - XEN_CALL_("VM.get_VCPUs_policy"); - return session->ok; -} - - -bool xen_vm_get_vcpus_params(xen_session *session, xen_string_string_map **result, xen_vm vm) { abstract_value param_values[] = @@ -1074,22 +1053,6 @@ xen_vm_set_memory_static_min(xen_session *session, xen_vm vm, int64_t static_min bool -xen_vm_set_vcpus_policy(xen_session *session, xen_vm vm, char *policy) -{ - abstract_value param_values[] = - { - { .type = &abstract_type_string, - .u.string_val = vm }, - { .type = &abstract_type_string, - .u.string_val = policy } - }; - - xen_call_(session, "VM.set_VCPUs_policy", param_values, 2, NULL, NULL); - return session->ok; -} - - -bool xen_vm_set_vcpus_params(xen_session *session, xen_vm vm, xen_string_string_map *params) { abstract_value param_values[] = diff --git a/tools/libxen/test/test_bindings.c b/tools/libxen/test/test_bindings.c index 8e89ee5356..f18c5c5ac5 100644 --- a/tools/libxen/test/test_bindings.c +++ b/tools/libxen/test/test_bindings.c @@ -373,7 +373,6 @@ static xen_vm create_new_vm(xen_session *session, bool hvm) .memory_dynamic_max = 256, .memory_dynamic_min = 128, .memory_static_min = 128, - .vcpus_policy = "credit", .vcpus_params = vcpus_params, .vcpus_max = 4, .vcpus_at_startup = 2, |