Commit Graph
5290 Commits
Author SHA1 Message Date
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
Tim Deegan 833623e78a [HVM] Save/restore: save HVM GPRs and DRs with the rest of the CPU state
and remove the use of xc_vcpu_getcontext() from HVM save/restore.
Also fixes loss of CR2, DR6 and DR7 contents across HVM save/restore.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-04-12 15:02:03 +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 de2c5005c6 Make Xm Test default to bridge when cannot read config file
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-04-12 11:32:25 +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
Christian Limpach f138b72d1e [ioemu] Consistently extend all block device operations to include scsi disks.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-04-11 23:05:07 +01:00
Christian Limpach 58fcf598b5 [setup] Fix old style bridge setup.
Also only warn that we ran out of veth interfaces if we have any at all.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-04-11 19:04:10 +01:00
Ewan Mellor b0766f3da2 Add documentation and C bindings for VM.add_to_VCPUs_params_live,
VM.set_memory_dynamic_{min,max}_live.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-11 22:24:30 +01:00
Ewan Mellor 3e1494d774 Added documentation and bindings for host_cpu.features.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-11 21:55:05 +01:00
Ewan Mellor f6fe1a0991 Added docs and bindings for VM_metrics.state.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-10 19:04:37 +01:00
kfraser@localhost.localdomain 5f3d693d65 Provide the use of SCSI disks in HVM domains. Currently there is a
maximum of 7 scsi disks and an ide disk must still be used to boot.

Signed-off-by: Natasha Jarymowycz <natasha@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-11 15:43:49 +01:00
kfraser@localhost.localdomain 29f97ec479 Fix pygrub for IA64 support.
Signed-off-by: Shinya Kuwamura <kuwa@jp.fujitsu.com>
Signed-off-by: Tomohiro Takahashi <takatom@jp.fujitsu.com>
2007-04-11 15:36:04 +01:00
kfraser@localhost.localdomain a6954d648b pygrub: Support GPT (GUID Partition Table) as used by EFI.
Signed-off-by: Shinya Kuwamura <kuwa@jp.fujitsu.com>
Signed-off-by: Tomohiro Takahashi <takatom@jp.fujitsu.com>
2007-04-11 15:27:14 +01:00
kfraser@localhost.localdomain 94ffc9e546 libfsimage: Fix data types for 64-bit architectures.
In particular __u32 instead of ulong.

Signed-off-by: Tomohiro Takahashi <takatom@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-11 15:17:17 +01:00
Tim Deegan cc73b915ae Merge 2007-04-11 14:45:43 +01:00
Tim Deegan d11bec8a19 [HVM] Save/restore: merge xc_linux_save and xc_hvm_save
into xc_domain_save, like we did for xc_domain_restore
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>

--HG--
rename : tools/libxc/xc_linux_save.c => tools/libxc/xc_domain_save.c
2007-04-11 14:45:14 +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
Jake Wires 9a549acc99 [TAPDISK] Fix qcow initialization bug.
fd_end was being incorrectly initialized upon open, leading to data corruption.

Signed-off-by: Jake Wires <jwires@xensource.com>
2007-04-10 11:40:43 -07:00
Ewan Mellor 9853a49dd9 Added docs and bindings for VM.{send_trigger,send_sysrq}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-10 17:29:16 +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
Ewan Mellor 1a2d0aa902 Added bindings and documentation for host.send_debug_keys and host.get_log.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-09 11:39:27 +01:00
Ewan Mellor 0e20ef60f8 Add bindings and docs for the host.dmesg_clear call.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-04-08 23:03:16 +01:00
kfraser@localhost.localdomain e2492c5e9e Fix PV guest restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-10 13:46:28 +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
Keir Fraser 1bb4ad8e20 hvm ioemu: Avoid accessing invalid pseudophysical addresses in HVM
guest's memory map.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-09 12:05:26 +01:00
Keir Fraser 4a96848dc8 libxc: Fix save/restore code for style.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-09 11:11:23 +01:00
kfraser@localhost.localdomain 5166d94a6a libxc: Clarify xc_mmu interface and make it private.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-06 22:48:25 +01:00
Alex Williamson a449ed227c merge with xen-unstable.hg 2007-04-06 10:08:30 -06:00
Keir Fraser 97c4f107f9 ia64: Fix libxenguest build after save/restore interface changes.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-04-06 10:14:02 +01:00
Ewan Mellor 8a2926fac2 Serialize string string maps.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-04-05 18:47:04 +01:00
Tim Deegan fdcf726e9d [HVM] Save/restore: qemu-dm should calculate bitmap size from maximum gpfn
like xc_save does.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-04-05 18:12:21 +01:00
Alex Williamson f694450239 [IA64] Fix xm dump-core with vti domain
Share privregs with domain and assign it to pseudo physical
address space as para virtualized domain.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-04-05 09:18:49 -06:00
Tim Deegan b6293b0c3a Merge 2007-04-05 15:11:49 +01:00
Tim Deegan 538a65bcc3 [HVM] Save/restore: merge xc_linux_restore and xc_hvm_restore
into one function (and one file) since they share a lot of code
Signed-off-by: Tim Deegan <Tim.Deegan@øensource.com>

--HG--
rename : tools/libxc/xc_linux_restore.c => tools/libxc/xc_domain_restore.c
2007-04-05 15:11:22 +01:00
kfraser@localhost.localdomain aeb2e1298b PV-on-HVM: Add new ioreq 'invalidate' for zapping ioemu-dm mapccahe
after balloon operations in an HVM guest.

This removes the I/O port hack from the guest OS, and from ioemu.

Also we flush on reservation *increases* as well as decreases. This is
necessary until qemu-dm can demand-fault page mappings into existing
valid buckets.

Signed-off-by: Steven Hand <steven@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-05 14:29:18 +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 6b2fe8aecf hvm ioemu x86: Avoid assumptions about memory map.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-04-04 17:58:06 +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