Commit Graph
12757 Commits
Author SHA1 Message Date
Ewan Mellor 12e12aa8f9 Added VM.set_VCPUs_features_force_on, VM.set_VCPUs_features_force_off,
VM.set_otherConfig.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 16:33:48 +00:00
Ewan Mellor a784042736 Make VM.VCPUs.number a writable field.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 16:26:53 +00:00
Ewan Mellor af87afdaaf Added VBD.type field (CD or Disk).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 15:45:09 +00:00
Ewan Mellor 76b9ef8804 Add extra detail to the VM.destroy description.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 15:42:28 +00:00
Ewan Mellor b916a8f279 Add VM.auto_power_on field.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 15:40:26 +00:00
Ewan Mellor 41eb2f8c0d Clarify that memory values are in bytes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 15:38:29 +00:00
Ewan Mellor b7bca7b892 Improved task handling model.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 15:20:03 +00:00
Ewan Mellor 16eaa7dd1c Tidy up the get_by_name_label description.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 15:13:33 +00:00
Ewan Mellor 449775b249 Clarify that the self parameter is an object reference, not the instance (i.e.
record) itself.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 15:05:23 +00:00
Ewan Mellor 9b30833144 Tidy up the get_record and get_by_uuid descriptions.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 15:01:08 +00:00
Ewan Mellor 46bdf803f9 More description tidyups -- constructors and destructors this time.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 13:28:37 +00:00
Ewan Mellor 3f4a3b3602 Tidy-up some of the descriptions.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 13:24:28 +00:00
Tim Deegan f1717b30d4 [XEN] remove unused monitor_vtable mapping.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-06 12:13:22 +00:00
Ewan Mellor 556d54c7ce Added Xen-API implementations for xm pause, xm unpause, xm destroy, xm rename,
and fix xm suspend and xm delete.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 11:25:51 +00:00
Ewan Mellor 2420eb41c5 Implement VM.set_name_label.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 11:24:37 +00:00
Ewan Mellor 8edc7b1c06 Added support for configuration file for xm, and use that to specify
contact and authentication details for the Xen-API server.

The default behaviour is still to use the existing legacy XML-RPC server.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 11:02:32 +00:00
Ewan Mellor 6455e182f2 Added server proxy and session manager for Xen-API clients.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 10:47:31 +00:00
Ewan Mellor 5ef203e373 Fix server reloading when the HTTP server is enabled.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 10:37:10 +00:00
Ewan Mellor 81f605d9cb Don't trace inside SrvServer.py -- it's doing a one-second sleep in a loop, so
it just fills the trace with useless clutter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 10:13:46 +00:00
Ewan Mellor 1d68773ad2 Move the actual call routed by do_legacy_api_with_uuid out of the scope of
the domains_lock.  The call itself is already locking as necessary, and it
is important for domain_start to be able to release the lock across the scope
of waitForDevices.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 10:12:39 +00:00
Ewan Mellor 6e66f078d4 Fix HTTP server.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-06 10:10:06 +00:00
Ewan Mellor ec168504b9 Fix error message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-05 15:47:43 +00:00
Tim Deegan b988d46a49 Fixes a mistake in changeset 12732
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2006-12-06 10:05:41 +00:00
Ian Campbell 8537fbaead [LINUX] The crash note resource should be nested inside the hypervisor
resource.

This was exposed by 12709:98413fa7826c which corrected the length of
the hypervisor resource.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-12-05 17:01:34 +00:00
Tim Deegan e65d392f39 [XEN] sh_gfn_to_mfn_foreign() must handle guest pfns above 4GB on PAE
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-12-05 12:42:29 +00:00
Ewan Mellor 89ebc69e6a This adds a recently added parameter to the vm.start call.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-12-04 19:13:55 +00:00
Ewan Mellor bb34321ece Tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-04 18:05:32 +00:00
Ewan Mellor 4a0a4459e9 Fix numpad handling in QEMU's VNC server. The keymaps that we have include
information on which keys change depending upon the numlock setting, but
this isn't being used.  By forcing numlock on and off as necessary, when
receiving these keysyms through the VNC connection, we ensure that the
server's numlock status is the same as the client's.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-04 17:52:33 +00:00
Ewan Mellor 549aad081d Close the server when instructed, so that we can reload on the same port, and
diagnose a server that fails to start.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-04 13:57:18 +00:00
Ewan Mellor bcf6d372d8 Diagnose a failing server, rather than just locking up the whole daemon.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-04 13:56:27 +00:00
Ewan Mellor d529c3d93b Added rudimentary "xend reload" functionality. This allows you to reconfigure
the services offered by Xend, without restarting the daemon itself.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-04 13:37:53 +00:00
Ewan Mellor aeb915bbac Tidy error message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-04 10:27:23 +00:00
Ewan Mellor 3dca648478 More capitalisation fixes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-04 10:24:54 +00:00
Ewan Mellor 78bc404b6b With PERMISSIVE turned on, diagnose missing Enums and Bools, and improve the
diagnosis of missing structure values.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-04 10:20:56 +00:00
kfraser@localhost.localdomain a52cacaef9 [QEMU] Error reporting in IDE device model.
Following on from my patch to make blktap report I/O errors back to
guest OS, a similar problem exists in the QEMU codebase. The IDE
driver never reports I/O errors during read/write operations back to
the guest OS. Instead all I/O operations are reported as
succesfull. If, for example, the host FS holding the disk image fills
up, then writes may fail due to lack of space. Since the guest OS
never sees these failures, it assumes all is well & will continue
writing. Eventually this can lead to severe & unrecoverable filesystem
corruption.

The attached patch fixes QEMU ide driver such that any failure of a
read or write operation sets the appropriate IDE status/error
registers. Having read the ATA-6 spec I think the most compliant
behaviour is to set the status register to 'READY_STAT | ERR_STAT',
and the error register to ABRT_ERR. There is already a convenience
function ide_abort_command() in the QEMU codebase which does just
this, so the attached patch simply calls that function.

With this patch the guest OS sees the I/O failure & the kernel logs
IDE errors and then retries the operation. This at least ensures that
the guest can be shutdown the out of space issue in the host corrected
and the guest restarted, without any serious filesystem damage having
occurred.

From: Daniel Berrange <berrange@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-04 09:29:26 +00:00
kfraser@localhost.localdomain 00f75a257f Add XEN_FRAMEBUFFER to -xen defconfigs.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
2006-12-04 09:21:10 +00:00
kfraser@localhost.localdomain b3fba4e07b Remove useless segments push/pop in VMXAssist.
According to Intel Spec, segments registors are cleared when exiting
virtual-8086 mode through trap or interrupts gate, so it's no need to
save their values in stack.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-12-04 09:20:12 +00:00
Ian Campbell f5bdee9abd [PATCH 02/02] Kexec / Kdump: Don't declare _end
_end is already declared in xen/include/asm/config.h, so don't declare
it twice. This solves a powerpc/ia64 build problem where _end is declared
as char _end[] compared to unsigned long _end on x86.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
2006-12-04 09:08:47 +00:00
Ian Campbell 6b995a3b55 [PATCH 01/02] Kexec / Kdump: Use NOTE_ALIGN() instead of ALIGN()
ALIGN() is already defined in xen/include/asm-ia64/config.h. This patch
renames ALIGN() to NOTE_ALIGN() to make the kexec code build on ia64.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
2006-12-04 09:08:47 +00:00
kaf24@firebug.cl.cam.ac.uk 0831896293 [XEN] Fix 32-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-03 17:44:14 +00:00
kaf24@localhost.localdomain df69bc8551 [XEN] Add 'insn_fetch' memory operation to the x86_emulator.
This can be used to perform correct access checks, provide appropriate
error codes when injecting faults, and to implement an
instruction-stream prefetch cache (which is included here for HVM PTE
update emulations).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-03 17:15:48 +00:00
Ewan Mellor 43bbe5bc96 Revert the change to destroy all VMs when skipping or failing tests -- this
needs more thought, because people shouldn't need to set up their Xen-API server
to run the non-Xen-API bits of the test, and at the moment, you get
authentication failures on every SKIP.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-03 13:30:23 +00:00
Ewan Mellor 7169017f84 Make the xenfb tools an optional part of the build, as they introduce new
dependencies (libvncserver and libsdl devel packages).  Enable them with
XENFB_TOOLS=y.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-02 16:39:53 +00:00
Alastair Tse f24b8a3348 [XEND] Fix mis-types in XendConfig
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-12-01 18:35:19 +00:00
Alastair Tse 63f6456e92 Merge 2006-12-01 18:33:11 +00:00
Alastair Tse 77f0ea8ba8 Merge 2006-12-01 17:43:18 +00:00
Alastair Tse f83b348cf8 Merge 2006-12-01 17:42:39 +00:00
Ewan Mellor 468c5c0084 Use the new xen-api.sock for the calls to the Xen-API server.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-01 17:40:07 +00:00
Alastair Tse 0f07569d15 [XEND] Re-add vtpm device support in XendConfig
This patch re-adds a recently removed vTPM device handling code.
I am also removing that one code part in the test script that does not
work.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-12-01 17:37:42 +00:00
Ewan Mellor cebaab7c6b This patch provides XmTestManagedDomain and XenManagedDomain classes
similar to the XmTestDomain and XenDomain classes. I have wrapped the
xen-api for VM configuration creation, starting and stopping of VMs and
destruction of the VM configuration in the XenManagedDomain class's
methods. No device-related functions are provided through the class.

The managed domains' UUIDs are tracked and all created VMs are destroyed
upon failure or skipping of the test or by calling
xapi.vm_destroy_all().

I am adding a new grouptest 'xapi' for running xen-api tests.

Only caveat: I am using an empty username and password
(XmTestList/xapi.py) with Xend's authentication deactivated to run these
tests.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-12-01 17:37:09 +00:00