Ewan Mellor
f7bff36895
Fix xm block-list through the Xen-API for managed domains.
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-20 17:33:35 +00:00
Ewan Mellor
3d9330324c
Make xm trigger talk XenAPI; add send_trigger to VM class.
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-20 17:30:52 +00:00
Ewan Mellor
8ed7e86d16
Make xm debug-keys talk XenAPI; Add send_debug_keys to host
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-20 17:30:05 +00:00
Ewan Mellor
9aa2765862
Tidy the error message from getDomains when using the Xen-API and no domain
...
is found.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-20 16:55:29 +00:00
Ewan Mellor
f6c7de277c
Fix sxp2xml translation to handle maxmem.
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-20 15:15:37 +00:00
Ewan Mellor
9e9090601c
Add VIF.runtime_properties dictionary, and use that to implement xm network-list
...
through the Xen-API. Implement xm network-attach and xm network-detach also.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-20 15:12:07 +00:00
Ewan Mellor
1c3dce55cd
Fix parameter to XendInvalidDomain.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-20 14:04:57 +00:00
Ewan Mellor
b5d7ad3a95
Fix exception handling when xmlrpclib.Fault is raised, in legacy mode.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-20 14:04:27 +00:00
Ewan Mellor
f5f96d3c4f
Fix xm create -c.
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-20 11:49:04 +00:00
Ewan Mellor
26f758a762
Add VBD.runtime_properties dictionary, and use that to implement xm block-list
...
through the Xen-API. Implement xm block-attach and xm block-detach also.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-20 11:45:44 +00:00
Ewan Mellor
ca11344704
When creating a VBD, save the devid in the device info structure. If creation
...
fails, remove the device config entry.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-20 11:44:13 +00:00
Ewan Mellor
a69027d845
Improve the error diagnostics within xmlrpclib2 in order to be more defensive
...
against internal errors.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-20 11:34:14 +00:00
Mark McLoughlin
b43e569511
Don't mount raw blktap disks for pygrub
...
Currently, we mount all blktap disks for pygrub so that it can boot
from e.g. QCOW images. However, since pygrub will handle a raw image
just fine without mounting through blktap, we shouldn't bother in that
case.
Also, it looks like XendDomainInfo.create_vbd() takes the full disk
uname rather than the image path.
Signed-off-by: Mark McLoughlin <markmc@redhat.com >
2007-03-20 11:10:52 +00:00
Ewan Mellor
0389938d6e
Only import xenapi_create when using the Xen-API server -- this has additional
...
dependencies that we don't want to require in legacy mode.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-19 14:46:51 +00:00
Ewan Mellor
ebcb37da0c
Fix memory size handling.
...
These were by Tom Wilkie <tom.wilkie@gmail.com >, and were dropped accidentally
by me when merging.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-19 11:09:57 +00:00
Keir Fraser
3baee98422
xend: Avoid use of 'k' specifier to Py_BuildValue(). Its
...
implementation is broken until Python v2.4.3. Instead cast the C value
to long long and use the 'L' specifier.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-03-18 18:26:34 +00:00
Keir Fraser
2cea532bee
xend: Fix Py_BuildValue() invocation (don't use I specifier).
...
Various error-handlign cleanup and fix a reference leakage.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-03-18 16:49:52 +00:00
Ewan Mellor
5515b59042
Re-raise log level for XendConfig (accidentally changed it to DEBUG previously).
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-18 12:06:50 +00:00
Ewan Mellor
734d12f311
Fix the signedness of a number of values demarshalled by xc.domain_getinfo,
...
in particular mem_kb and maxmem_kb.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-18 12:06:01 +00:00
Ewan Mellor
61fd72f748
Support xm create through the Xen-API.
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-17 23:59:05 +00:00
Ewan Mellor
c0767e1cc9
Fix xm list's printing of the memory target, when in legacy mode.
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-17 23:57:17 +00:00
Ewan Mellor
98321440ec
Replace VDI.location with a more generic VDI.other_config map. Remove
...
VDI.sector_size.
Xend work by Tom Wilkie <tom.wilkie@gmail.com >.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-17 23:55:03 +00:00
Ewan Mellor
716d0617c9
Work around bug in Python's inspect module -- catch an IndexError exception
...
if the source-code lookup fails.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-17 16:56:39 +00:00
Ewan Mellor
96541d59b4
Fix VM_metrics.get_vcpus_utilisation.
...
Fix is due to Ingard Mevåg <ingard.mevag@stud.iu.hio.no >.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-16 18:06:43 +00:00
Tim Deegan
41aa97afd7
Fix the python type dismatch exception when HVM restore
...
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com >
2007-03-16 10:05:57 +00:00
Ewan Mellor
194dd03ad6
Implement xm list through the Xen-API.
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-15 23:03:22 +00:00
Ewan Mellor
77afb8b283
Raise the VM_BAD_POWER_STATE error with VM.send_sysrq if the domain is not
...
running.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-15 22:15:12 +00:00
Ewan Mellor
746900680c
Added a new Xen-API call VM.send_sysrq, and use that to implement xm sysrq
...
through Xen-API.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-15 21:59:34 +00:00
Ewan Mellor
f918e26c26
Allow the xm configuration file location to be overridden with an
...
environment variable.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-15 21:44:20 +00:00
kfraser@localhost.localdomain
8058cadb58
Replace tab with 4 whitespaces in xm/shutdown.py.
...
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
2007-03-15 16:54:00 +00:00
Ewan Mellor
71439ea4bb
Implement xm domid and xm console using the Xen-API, and fix xm domname.
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-14 23:26:33 +00:00
Ewan Mellor
c57f40c62f
Added the clear flag to host.dmesg, and added host.get_log. Use these to
...
implement xm dmesg and xm log using the Xen-API.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-14 23:16:59 +00:00
Ewan Mellor
618ef9cd1c
Fix error logging when we get a 500 response.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-14 23:14:19 +00:00
Ewan Mellor
4438f722ec
Improve the performance of the Xend trace facility, and exclude XendMonitor
...
and XendLogging from those classes that are traced.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-14 23:13:37 +00:00
Ewan Mellor
3c924c8c4c
Trap bad return values from Xen-API method handlers, and return an internal
...
error.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-14 23:12:59 +00:00
Ewan Mellor
47123a3638
Fix typo.
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-14 21:34:43 +00:00
Ewan Mellor
b0c9363ed8
Added VM_metrics.get_all.
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-14 21:04:04 +00:00
Ewan Mellor
eacb86fc1b
Added Xen-API features needed to implement xm info: host.sched_policy
...
(replacing VM.VCPUs_policy, which never made sense), and
host.cpu_configuration. Add other details into either host.software_version
or host.other_config as appropriate.
Implement xm info and the scheduler-detection check using this.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-14 21:02:58 +00:00
Ewan Mellor
ae6780b241
Implement VM_metrics Xen-API class.
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-14 20:41:56 +00:00
Ewan Mellor
42b966d15c
Added Xen-API support to xm shutdown.
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com >
2007-03-14 20:27:57 +00:00
Ewan Mellor
11392ee1b0
Implement VM.{add_to,remove_from}_VCPUs_params.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-13 22:13:40 +00:00
Ewan Mellor
1a2d69b084
In xm shell, add a space to the function names when tab-completing.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-13 22:12:18 +00:00
Tim Deegan
0bf25ed4be
[XEND] Mark save record fd close-on-exec after calling xc_restore
...
so that qemu doesn't end up with an open fd on it
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-03-14 12:49:40 +00:00
Tim Deegan
bf8fc36917
[HVM] Save/restore: more state propagation in xend
...
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-03-13 15:55:37 +00:00
kfraser@localhost.localdomain
60cf5b7783
xm: Allow vcpu-pin to specify 'all' for CPU list.
...
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
2007-03-13 14:56:03 +00:00
Tim Deegan
cdc548f90c
[HVM] Save/restore: update HVM detection in save/restore code in xend.
...
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com >
2007-03-12 18:04:04 +00:00
Ewan Mellor
1ad66bcd45
Fix typo in cset 14341:0affe03ee985 that broke migration.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-11 22:42:22 +00:00
Ewan Mellor
2cb49001bc
Added an VM_HVM_REQUIRED error code, and use it on VM.start.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-10 23:22:00 +00:00
Ewan Mellor
abc324d48f
Replace VM.platform_{std_VGA,serial,localtime,clock_offset,enable_audio} with
...
a single VM.platform String -> String Map.
Propogate this change through to XendDomainInfo and image so that the
backwards compatibility is handled by XendConfig.
Make PCI_bus a read-write field.
Added C bindings for these changes also.
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-10 21:48:22 +00:00
Ewan Mellor
f7f8f5e39d
Remove obsolete tpm_backend entry.
...
Signed-off-by: Ewan Mellor <ewan@xensource.com >
2007-03-10 21:43:07 +00:00