diff options
author | Ewan Mellor <ewan@xensource.com> | 2007-01-30 18:30:18 +0000 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2007-01-30 18:30:18 +0000 |
commit | 8a3405e40252f660016676e2768fcd47c26e0a60 (patch) | |
tree | 7090fd25ace4bf3df44e553224e749574d0d58d9 /tools/libxen/test | |
parent | 11e16a75a0ff0e57b270ee92cc3439b4238a1059 (diff) | |
download | xen-8a3405e40252f660016676e2768fcd47c26e0a60.tar.gz xen-8a3405e40252f660016676e2768fcd47c26e0a60.tar.bz2 xen-8a3405e40252f660016676e2768fcd47c26e0a60.zip |
Added VM_metrics class, taking some of the fields from VM. Make VM.static_max
and static_min read-write. Added VM.VCPUs/{max,at_startup}. Make
VM.VCPUs/params a string -> string map.
This is the modelling, the C bindings, and the message file -- Xend support to
follow.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/libxen/test')
-rw-r--r-- | tools/libxen/test/test_bindings.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxen/test/test_bindings.c b/tools/libxen/test/test_bindings.c index cfd1fb69e7..88fce8b35b 100644 --- a/tools/libxen/test/test_bindings.c +++ b/tools/libxen/test/test_bindings.c @@ -277,6 +277,7 @@ int main(int argc, char **argv) */ static xen_vm create_new_vm(xen_session *session) { + xen_string_string_map *vcpus_params = xen_string_string_map_alloc(1); xen_vm_record vm_record = { .name_label = "NewVM", @@ -288,7 +289,7 @@ static xen_vm create_new_vm(xen_session *session) .memory_dynamic_min = 128, .memory_static_min = 128, .vcpus_policy = "credit", - .vcpus_params = "", + .vcpus_params = vcpus_params, .vcpus_number = 2, .actions_after_shutdown = XEN_ON_NORMAL_EXIT_DESTROY, .actions_after_reboot = XEN_ON_NORMAL_EXIT_RESTART, |