Commit Graph
5073 Commits
Author SHA1 Message Date
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 efcaa9d8d3 Match recent removal of VM.VCPUs_policy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-14 21:59:11 +00:00
Ewan Mellor a72d446f86 Fix typo in xm-test.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-14 21:37:00 +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
kfraser@localhost.localdomain de2105b78a hvm: Firmware build requires dev86 (bcc) >= 0.16.14.
Earlier versions (at least 0.16.0) generate incorrect code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-14 19:35:26 +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
kfraser@localhost.localdomain 8ff2288a9a hvm: Add a revision 1 FADT in ACPI, and link the original revision-4
FADT only to XSDT. It avoids a buffer overflow in the initialization
of Window 2000 ACPI HAL (pre ACPI 2.0 OS), and thus enables the
installation and boot. This compatibility practice is also used in
hardware, please refer to:
 http://www.acpi.info/presentations/S01USMOBS169_OS%20new.ppt

Signed-off-by: Qing He <qing.he@intel.com>
2007-03-14 11:38:26 +00:00
kfraser@localhost.localdomain bc510c7fd5 AMD HVM: Fix enter-realmode stub to initialise 32-bit GPRs.
This fixes booting Ubuntu live ISO, which assumes the upper half of
%esp is zero on entry.

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-14 11:09:13 +00:00
Tim Deegan 618d247ec8 add usb device save/restore in qemu
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2007-03-14 10:44:56 +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
kfraser@localhost.localdomain 1babae4d0c hvmloader: Avoid compile warnings char vs. unsigned char.
Avoid 'magic number' hardcoded string lengths.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-13 10:32:52 +00:00
kfraser@localhost.localdomain f4575fb04a [XM-TEST] vTPM test changes
Remove an uninitialized variable.
For some reason the 'ps aux' command does not see the process anymore
(since some time on the weekend). Need to add 'COLUMNS=n'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-13 09:52:51 +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
kfraser@localhost.localdomain d5cbf3ec58 x86: Add VGCF_onlien flag to vcpu_guest_context.
Change common Xen code to start all VCPUs (except idle ones)
offline. Change arch code to deal with this.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-12 13:53:43 +00:00
kfraser@localhost.localdomain 506e6d7f53 AMD HVM: Exit hvmloader via a normal jump-to-realmode code sequence.
Strip out all SVM-special hypercall code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-12 11:15:56 +00:00
Tim Deegan a63bbc175b [HVM] Remove debugging printout of BIOS boot vector
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-12 10:10:42 +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
Ewan Mellor 9b9c64266b Fix VM.set_actions_after_{reboot,shutdown}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-10 21:41:58 +00:00
Ewan Mellor e8943dc06d Fix "no such domain" error message from domain_lookup.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-10 20:20:24 +00:00
Ewan Mellor 0549b00834 Remove some excessive debug logging.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-10 20:18:17 +00:00
Ewan Mellor 6c6d5f75de Don't show the usage message for "domain does not exist" errors.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-10 19:57:35 +00:00
Ewan Mellor e07fd1a3da Improve xm shell tab completion.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-10 16:38:18 +00:00
Ewan Mellor 6eb3760aa8 Add vcpus_max and vcpus_at_startup values to the example VM creation.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-10 14:57:11 +00:00
Ewan Mellor 8d7dee0b2a Fix get_val_as_string so that it does not truncate integers.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-10 14:41:06 +00:00
Ewan Mellor c2bb72dfd1 Allow empty structs to represent empty Maps.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-10 14:16:52 +00:00
kfraser@localhost.localdomain 4d42d7146c dump-core: store .xen_p2m or .xen_pfn section in pfn ascending order.
So far the order isn't specified and may be random in theory.
But sorted array is requested by crash utility for efficient search.

Fortunately it is the case except ia64 full virtualized domain.
Update document such that those array must be sorted and fix the ia64
full virtualized domain case.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-03-09 18:33:36 +00:00
Ewan Mellor 2f6d51b68b This patch fixes two problems with sending and receiving of (arrays of)
structures.

The first one allows to determine the size of a member when parsing a
'set'.
The cast in the second part fixes the address calculation when
serializing an array.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-09 16:04:19 +00:00
kfraser@localhost.localdomain e1bc13a960 xm: New command 'debug-keys' to inject debug-key events into Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-09 11:11:59 +00:00
Ewan Mellor 81c452f998 Make the VTPM.destroy method return 'void' upon success and adapt the
test case to reflect that.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-09 02:32:52 +00:00
Ewan Mellor 99598dfc8a Improve error message.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-09 01:59:59 +00:00
Ewan Mellor d0a005909a Remove VDI.set_SR -- this was always unimplemented, and pretty mad.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-09 01:25:43 +00:00
Ewan Mellor 9f7e9b2820 Move the booting description out of the VM class description into the VM
Lifecycle section of the doc.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-09 01:06:11 +00:00
Ewan Mellor 9e92a72fb5 Added {VIF,VBD}.{plug,unplug} methods. Docs and C bindings -- Xend to follow.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-08 23:47:24 +00:00
Ewan Mellor 9c3b29a772 Remove crashdump.create -- this doesn't make sense.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-08 23:16:34 +00:00
Ewan Mellor 45e2bb215f Fix duplicate consts around xc_error declarations.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-08 22:33:47 +00:00
Tim Deegan 8ae71c0646 [HVM] Save/restore: tidy PFN handling in the tools.
Make the differences clearer between the number of frames, the max PFN
and the size of the pfn array, and handle te framebuffer more cleanly.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-08 16:40:35 +00:00