Commit Graph
2179 Commits
Author SHA1 Message Date
Tim Deegan 09c1cd6992 Merge 2007-03-29 16:28:34 +00:00
Tim Deegan 9dd742c907 [HVM] Save/restore: PV-on-HVM driver save/restore support
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2007-03-29 16:27:52 +00:00
Tom Wilkie 5e7badb941 Let xm commands use domids with XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-29 17:09:49 +01:00
Tim Deegan 56ada11259 Merge 2007-03-29 15:33:32 +00:00
Tom Wilkie 82669d3a5e Finish off network in xm via XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-29 16:29:31 +01:00
Tim Deegan e0638f7e62 [HVM] Save/restore: don't get guest size from "memory_static_min"
since it doesn't mean that any more.  This is a sticking-plaster
to get HVM S/R working until the proper memory-map handling patch
is ready.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-29 15:27:18 +00:00
Ewan Mellor d05727902f Fix bad behaviour of xm when calling event.next(), by adding a different error
code (SESSION_NOT_REGISTERED).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-29 16:18:39 +01:00
Tom Wilkie 0067711047 Make network.name_label == bridge name
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-29 15:59:53 +01:00
Ewan Mellor 5a1f59a822 Added asynchronous event notification through the Xen-API. Added a new command,
xm event-monitor, a new test program for the C bindings, and new bindings
themselves.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-29 15:46:30 +01:00
Ewan Mellor ebbc8fb301 Fix the xen-api-server option parsing, so that we default to listening on
all interfaces when only a port is given.

This was broken by cset 14601:966c65f0ddba.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-29 15:22:02 +01:00
Ewan Mellor b4fffaec01 Fix PIF_metrics_methods declaration, which has broken PIF.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-29 15:10:26 +01:00
Tom Wilkie 7a45bd6202 Fix to let TCP server run without SSL installed.
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-28 12:38:13 +01:00
Ewan Mellor 493cba058f Fix missing import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-28 10:05:03 +01:00
Ewan Mellor 16320c2cdf Fix diagnosis of unhandled exceptions.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-28 10:04:32 +01:00
Ewan Mellor 3dc7643871 Fix typo.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-28 01:09:14 +01:00
Ewan Mellor b843dd7af8 Added HTTPS support to Xend. There are new configuration options for the
Xen-API and legacy XML-RPC servers to set key and certificate files, and
xm simply needs to be configured use an https rather than an http URL.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 23:23:01 +01:00
Ewan Mellor 2a5cee571c Added comment regarding a Python bug.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 23:03:32 +01:00
Ewan Mellor 823ab3fd0c Move the client-specific parts of xmlrpclib2 into xmlrpcclient.py. This means
that clients do not need to import swathes of server code.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 22:34:22 +01:00
Ewan Mellor ff7c54e3c3 Add auto-start and auto-stop functionality.
Patch by Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 16:52:56 +01:00
Ewan Mellor cc3d7515f9 Use the new blkback sysfs statistics/{rd,wr}_sect to get a more accurate
bandwidth measurements for VBD I/O.

Patch by Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 16:33:26 +01:00
Tom Wilkie aa306dd463 Fix typo in VDB_metrics_methods in XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-27 17:43:36 +01:00
Tom Wilkie d867315e3c Make xm sysrq work via XenAPI re: PAUSED state problem
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-27 15:47:02 +01:00
kfraser@localhost.localdomain 08542da82e Fix 'xm list' long output to skip legacy 'cpus'.
Fixes bugzilla report #935.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-27 16:45:37 +01:00
Ewan Mellor 4d5a404460 Do not issue a warning on XendDomainInfo.recreate for dom0 -- this is normal
on a clean machine.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 14:34:34 +01:00
Ewan Mellor 6ed1133818 Fix some fields so that they are declared as read-only (always should have
been) and implement {VBD,VIF}_metrics.get_all.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 14:22:29 +01:00
Tom Wilkie 95303f6196 Fix typo in VIF_metrics_methods in XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-27 13:45:30 +01:00
Ewan Mellor a4ae757f0f Fix the default for the is_a_template flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 11:31:25 +01:00
Tom Wilkie 38ef20418f Fix xm network-attach via XenAPI re: paused domain state
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 17:22:45 +01:00
Tom Wilkie 17a7dd0661 Fix up xm vcpu-pin via XenAPI, change types of new VM Metrics feilds
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 16:48:20 +01:00
Tom Wilkie c549108730 Fix xm info etc since changes to Session in XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 16:04:24 +01:00
Tom Wilkie 70a47391ce Add option to xm create to skip DTD checks.
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 15:09:24 +01:00
Tom Wilkie dd6bd5adf4 Add autodetect to xm create for xml files
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 14:57:12 +01:00
Ewan Mellor 4d3817aae9 Convert XendPIFMetrics into an autoplug class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:54:05 +01:00
Ewan Mellor 4b24edbf8b Convert XendVMMetrics into an autoplug class. Tidy up our destroy methods
on the way -- metrics classes cannot be destroyed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:48:46 +01:00
Ewan Mellor 99b271fd7d Added network.other_config map. To make this easier, add a new automatic
plumbing facility from the XendNetwork class into XendAPI (credit to Tom
Wilkie for the idea).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:19:20 +01:00
Ewan Mellor 6b8760eaba Trivial tidyup.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:15:07 +01:00
Ewan Mellor c24f98944d Don't set memory_dynamic_max when xm mem-set is called. Save the VM
configuration unconditionally when either the max or the target memory values
are set.

Thanks to Masaki Kanno for pointing out the first problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-26 14:09:36 +01:00
Ewan Mellor c322cc7717 Fix xm mem-set on non-running domains. Closes bug #934.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-26 13:59:36 +01:00
Ewan Mellor 10e9ec0d21 Fix the xm mem-max command. Closes bug #933.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-26 13:50:33 +01:00
Tom Wilkie 09502ab38f Make 05_block_attach_and_dettach_device_repeatedly_pos pass on xm via XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 13:46:07 +01:00
Tom Wilkie 6f9deffd5b Fix vbd_create etc, add devices to paused domains
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 13:29:27 +01:00
Ewan Mellor d4eac439d5 Fix the VM.is_a_template flag for domain 0.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-26 00:09:00 +01:00
Ewan Mellor 9c052c30d6 Implement session.last_active, session.this_host, session.get_record,
session.get_uuid.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-26 00:08:13 +01:00
Ewan Mellor d043ecebc5 Ignore exceptions in the get_all_methods call.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-23 17:42:08 +00:00
Ewan Mellor 23feb407a1 Add VM.set_memory_dynamic_*_live methods, and use those in xm mem-set.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-23 17:14:22 +00:00
Ewan Mellor 31ec6ab111 Release the domains_lock properly when get_dev_property_by_uuid fails.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-23 16:54:34 +00:00
Tom Wilkie ea178f69d5 Fix rebooting domains problem with new internal memory storage
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-23 15:10:46 +00:00
Ewan Mellor f38e3b431b Add a last_updated field to every metrics class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-23 13:27:29 +00:00
Ewan Mellor 69869aa632 Replace tabs with spaces.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-23 11:11:41 +00:00
Ewan Mellor 761bc92430 Fix state in xm list; add state to VM_metrics class.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-23 11:04:51 +00:00