Commit Graph
2223 Commits
Author SHA1 Message Date
Keir Fraser 37b9dfbf71 [vtpm] Return a proper error when in the Xen-API call.
Fix a bug in the test.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-04-19 19:29:45 +01:00
kfraser@localhost.localdomain a247b8c7db tools: Use INSTALL_{DIR,DATA} to install stuff.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-17 12:21:33 +01:00
James Bulpin bd9d988e80 Fix tools build
Signed-off-by: James Bulpin <james@xensource.com>
2007-04-17 12:01:00 +01:00
Tom Wilkie 0035808bef Add *.get_all_records to XenAPI, make use of this for xm list
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-16 22:58:12 +01:00
ewan@localhost.localdomain 5d44f92367 Added event dispatch when a VM's power state changes. Fix the host.enabled and
host.software_version definitions.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-16 17:02:52 -04:00
Tom Wilkie b2e625ed4e Add pot file, fix build
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-16 21:21:42 +01:00
ewan@localhost.localdomain f01fa26a0f Added host.enabled flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-16 16:10:39 -04:00
Tom Wilkie 1d4f277da8 Install dtd into correct place
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-13 16:54:03 +01:00
Tom Wilkie 7771ae57e8 Fix up locale strings for xm
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-04-13 16:46:41 +01:00
Tom Wilkie e52527b9ed Fix TypeError with datetime() on old python version
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-13 16:02:41 +01:00
Tom Wilkie 4a507d9105 Add VM.migrate to XenAPI, add support to XM
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-13 13:55:10 +01:00
Tom Wilkie bf57189edc Simplify code to map interfaces to bridges
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-13 11:43:50 +01:00
Tom Wilkie 6e86084cbc Ensure xenapi create passes in values even if unused
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-12 12:48:27 +01:00
kfraser@localhost.localdomain a01197aeb4 HVM: First attempt at domain-resume on save-failure.
Not working yet as we are a bit too keen to kill the qemu-dm process,
before we know that the save has been successful.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 14:13:04 +01:00
kfraser@localhost.localdomain 40bb2e5fea HVM: Allow qemu monitor to be configured in domain config file.
From: Yongkang You <yongkang.you@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 13:21:26 +01:00
kfraser@localhost.localdomain 9919a2345e xend: Update config-format version, due to changes in 3.0.5.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-04-12 13:18:08 +01:00
kfraser@localhost.localdomain 69a9bab277 HVM: Do not watch control/shutdown to force domain shutdowns when PV
drivers are not present. The feature-foo mechanism does not actually
work after save/restore since the fields do not get rewritten. And it
doesn't work when we actually need the guest to be shutdown through
Xen (e.g., on suspend). Since we can quite reasonably assume that the
only entity to screw with control/shutdown is xend, and since the one
place that does that now explicitly handles unenlightened HVM guests,
we can simply strip all this stuff out.

This has the nice benefit of making HVM save/restore with PV drivers
much more reliable.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-12 12:12:56 +01:00
Tom Wilkie 985378fb5c Make xm info more permissive
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-12 11:44:26 +01:00
Tom Wilkie 60bd45b963 Fix typo and make create send proper bools
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-12 11:31:17 +01:00
kfraser@localhost.localdomain b8680a8065 xend: Store canonical vnif config info in /vm/<uuid>/device
rather than in frontend store directory. Two advantages are that the
frontend cannot mess with the config information; also an
ioemu-specific vif does nto need a frontend directory at all. This
avoids confusing netfront pv-on-hvm driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-11 14:30:56 +01:00
Tom Wilkie b586bb55ad Make date time handling slightly more permissive
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-10 17:01:40 +01:00
Ewan Mellor 6492f2ffbf Added documentation, C bindings, and a test for VM_metrics.{start_time,
VCPUs_CPU,VCPUs_params}.

Changed VM_metrics.start_time to be a DateTime, not an integer.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-09 17:09:21 +01:00
Ewan Mellor 668fbded84 Make host.sched_policy read-only. Added docs, bindings, and a test for
host.cpu_configuration and host.sched_policy.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-09 12:20:35 +01:00
kfraser@localhost.localdomain 1d37a61c52 xend: Destroy information about the domain in case an error occurs
during resume of a domain.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-04-10 10:28:11 +01:00
Ewan Mellor 8f38cefadc Remove task.error_code -- it's redundant, as we can use the first element of
task.error_info instead.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-05 13:35:54 +01:00
Ewan Mellor c342161cbd Remove unimplemented host.set_sched_policy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-04 18:50:11 +01:00
Ewan Mellor fccf5da0dd Expose the method-listing call as host.list_methods.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-04 18:42:20 +01:00
Ewan Mellor 3a7400aa86 Remove docs and bindings for unimplemented VDI.resize and VDI.snapshot.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-04 15:00:57 +01:00
Ewan Mellor f521621420 Send INTERNAL_ERROR rather than ERROR_TODO if device creation fails.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-04 14:53:52 +01:00
Ewan Mellor 5adf114d68 Remove docs and bindings for unimplemented SR.{create,destroy,clone}.
Implement PBD class, matching existing docs and bindings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-04 14:49:38 +01:00
kfraser@localhost.localdomain 5967572aab hvm: x86 ioemu-dm does not need a memory-size parameter on the command line.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 18:41:42 +01:00
kfraser@localhost.localdomain d5f5ff766f Clean up save/restore state record handling. No need for Python to
read out the 'p2m size' field. Also that field is not needed at all
for HVM guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 16:34:56 +01:00
kfraser@localhost.localdomain 087d43326a hvm: Lazy memory allocation during HVM restore. General cleanup and
reduce gross assumptions about memory-map layout.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 16:18:28 +01:00
Christian Limpach 2bdbd3e193 [hvm] Keep track of time offset between domain time and dom0 time.
On each rtc time update from the hvm domain, we send an ioreq request
to qemu which then updates the time offset xenstore entry.  The time
offset is preserved across reboot and can be set on domain creation
by setting the rtc_timeoffset variable in a config file.

From: Andrei Petrov <andrei.petrov@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-04-03 13:22:37 +01:00
Ewan Mellor 9123bf1da6 Remove unused import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-03 10:36:31 +01:00
kfraser@localhost.localdomain 9bea671737 Fix "xm migrate" hang on failure.
If a domain fails to restore, report back an error and close the
connection. This still leaves a confusing error from 'xm migrate' in
many cases, but it's much better than just sitting there.

Signed-off-by: John Levon <john.levon@sun.com>
2007-04-03 09:03:51 +01:00
kfraser@localhost.localdomain f884964985 xend: Map re.compile on hosts_allow for XMLRPCServer.
Changeset 14601 removed a re.compile() map on hosts_allow,
hence breaking the tcp xmlrpc api ('str' has no attribute match
in xend-debug.log).

From: Pascal Bouchareine <pascal@gandi.net>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-02 17:34:00 +01:00
Steven Hand e2a44bc7a4 Some save/restore cleanups.
Signed-off-by: Steven Hand <steven@xensource.com>
2007-04-02 16:46:52 +01:00
Keir Fraser 6fb7ede847 xend: Implement auto-ballooning for Solaris.
/proc/xen/balloon is Linux-specific. Implement a Solaris backend
too. Also fix the FMRI for xend.

Signed-off-by: Ryan Scott <ryan.scott@sun.com>
2007-03-31 14:05:57 +01:00
Keir Fraser 29f999ff69 xm: Fix an indentation bug.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-31 12:26:04 +01:00
Tom Wilkie 978632e730 Add support for HVM domains to new xm XenAPI create code
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-30 17:28:54 +01:00
Jim Fehlig 1598680350 Managed HVM guests are not displayed by 'xm list' after restarting xend.
This patch prevents writing empty configuration items to the domain's
sexpr configuration file.  Without the empty items, the sexpr is
parsed properly when xend is started.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-03-13 18:13:11 -06:00
Magnus Carlsson f25b2f271c Made tracing thread safe, and also print thread name. 2007-03-29 14:27:46 -07:00
kfraser@localhost.localdomain 76b2ca09df xend: Fix shutdown method after PV-on-HVM save/restore patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-29 23:31:58 +01:00
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