Commit Graph
13380 Commits
Author SHA1 Message Date
Ewan Mellor 75bbf9d488 Fix _login to pass arguments to the server unconditionally, rather than
requiring precisely two on the client-side.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-18 00:14:40 +00:00
Ewan Mellor 6d6cd40676 Fix the parsing of the image sexpr to use PV_kernel et al, rather than the old
kernel_ variables.  This fixes reboot of PV guests.

Also, give XendConfig its own logger, to allow us to tweak the log level for
that module independently.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-18 00:07:55 +00:00
Ewan Mellor 99ffd43bcd Write the xfb configuration details to the store, rather than storing them in
memory.  This ensures that the VM can be rebooted after a xend restart.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-18 00:00:57 +00:00
Ewan Mellor c7272094f3 Minor tidyup.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-17 23:59:08 +00:00
Ewan Mellor cbdf115ddb Fix printing of usage when OptionError is thrown.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-17 18:24:40 +00:00
Ewan Mellor 92e6c93c21 Only try to label resources if ACM is enabled.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-12-16 12:54:43 +00:00
Ewan Mellor 324ad7a4a8 An error occurs if the first detach was successful and the 2nd one is
not (of course). Return if the 1st detach is successful, try the 2nd one
if it was not successful. Throw an error if the 2nd one fails.
This should also fix problems I am currently seeing in the xm-test
suite.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-12-16 12:52:18 +00:00
awilliam@xenbuild2.aw eb1dd89900 [IA64] remove global zero initializers
No need to init global variables to zero as it will place them in the
data segment rather than the bss segment.

Signed-off-by: Jes Sorensen <jes@sgi.com>
2006-12-15 10:49:11 -07:00
kfraser@localhost.localdomain 2f760bd64d [TOOLS] USe -mno-direct-seg-refs when building on i386.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-15 11:53:45 +00:00
Ewan Mellor 1c67fc6446 Fix mem-set, mem-max, and vcpu-set commands when used against inactive domains.
Signed-off-by: Daniel P. Berrange  <berrange@redhat.com>
2006-12-15 11:50:04 +00:00
Ewan Mellor 14a3d5c056 Use new -p flag to qcow-create.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-15 11:48:40 +00:00
Steven Hand d42281a82c Clean-up hvm/shadow interaction around cr3 updates.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-12-15 11:47:24 +00:00
Ewan Mellor 5bb62448a5 Fix more enum demarshalling.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-15 11:33:50 +00:00
Ewan Mellor 7bdf0f5b26 Added a test for xen_vm_get_power_state.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-15 11:00:04 +00:00
Brendan Cully 24a6ed484b Improve XendCheckpoint's forkHelper error handling.
When inputHandler raises an exception, close stdin and stdout in the
child before attempting to close stderr, which is held open by a
separate thread. Without this patch, exceptions raised by device
migration caused xend to hang on child.childerr.close().

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
2006-12-13 17:45:50 -08:00
Ewan Mellor 0a38a347b7 Persist all the Xen-API data values for VMs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-16 12:49:23 +00:00
Ewan Mellor cd48fe7de0 Write the new version of the persisted config to a tempfile and then rename it,
to avoid corrupting the file on failure.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-15 17:19:00 +00:00
Ewan Mellor 539d271eff Allow the XenAPI Session object to have login_with_password called as a
methodname, to re-login through the same object (say when the server is
restarted).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-15 17:18:02 +00:00
kfraser@localhost.localdomain a090ca495e VNC pasword authentication support for the paravirt framebuffer server.
The rules for configuring the password are equivalent of those used
for HVM, but the actual guest config option is a little different as a
result of the recent refactoring of the PVFB config file syntax.

 - If the 'vfb' option in the guest config has a 'vncpasswd' parameter
   specified
      - If the passwd is not zero length, use that
      - Else run with no authentication (important as it enables
        override of next rule)
 - Else-if the xend-config.sxp has a password specified use that
 - Else run with no authentication

Example configuration:

 - To set an explicit guest password:
    vfb = [ "type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=123456"]

 - To disable authentication, overriding any XenD configured
   default password
    vfb = [ "type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd="]

 - To run with default XenD configured password (if any)
    vfb = [ "type=vnc,vncunused=1,vnclisten=0.0.0.0"]

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-12-15 17:33:31 +00:00
kfraser@localhost.localdomain c9687ec616 Fix pointer encoding in vncfb (middle and right button were swapped).
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2006-12-15 17:30:51 +00:00
kfraser@localhost.localdomain 6465003372 [XENFB] xenfb_update_screen() calls zap_page_range() while holding spinlock mm_lock.
Changeset 13018:c98ca86138a7422cdf9b15d87c95619b7277bb6a merely sweeps
the bug under the carpet: it silences zap_page_range()'s cries for
help by keeping interrupts enabled.  That doesn't fix the bug, and
it's also wrong: if a critical region gets interrupted, and the
interrupt printk()s, xenfb_refresh() gets executed and promptly
deadlocks.

This patch fixes the locking, but leaves open a race between
xenfb_update_screen() and do_no_page().  See the source code for a
detailed explanation of how it works, and where it fails.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
2006-12-15 17:29:25 +00:00
kfraser@localhost.localdomain 658acbc0e6 Add CONFIG_X86_{32,64} Makefile variables.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-15 17:27:57 +00:00
Steven Hand 43bec42d59 Use portable recursive mutex in qemue mapcache.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-12-15 17:16:55 +00:00
jfehlig@jfehlig2.provo.novell.com 160ed4756b Fix VM.get_power_state API. On the xend side an integer representation of the power state was being returned instead of a string representation as specified by the XenAPI spec.
On the c-bindings side the marshalling code converts the string representation to an enum value.  A subsequent attempt to convert the enum from a string to an enum was causing a seg fault.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-12-13 18:06:48 -07:00
kfraser@localhost.localdomain d2cd19a8b2 [XM] Fix network-attach help message.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-12-15 09:52:19 +00:00
Ewan Mellor bb2c5572dc Fix check_udev in the case where udev is missing -- test's -a does not shortcut.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-15 09:50:33 +00:00
Ewan Mellor dc1408eb4f Revert Makefile changes from 13023:70155087efe89 -- they break make dist.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-15 09:39:26 +00:00
kfraser@localhost.localdomain 805c949b34 [NET]: Fix segmentation of linear packets
skb_segment fails to segment linear packets correctly because it
tries to write all linear parts of the original skb into each
segment.  This will always panic as each segment only contains
enough space for one MSS.

This was not detected earlier because linear packets should be
rare for GSO.  In fact it still remains to be seen what exactly
created the linear packets that triggered this bug.  Basically
the only time this should happen is if someone enables GSO
emulation on an interface that does not support SG.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-12-15 09:38:56 +00:00
kfraser@localhost.localdomain 28f48c121e [XEN] Clean up list.h for Xen formatting rules and add hlist macros
from Linux kernel.
Based on a patch from Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-15 09:29:15 +00:00
kfraser@localhost.localdomain d746429dbb Remove unused function from check script.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-15 09:17:41 +00:00
Ewan Mellor b5c55da7ce Replace the error message when invalid xm commands are given.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-15 09:08:41 +00:00
Ewan Mellor 2b0ca176fc Fix exit status for failed commands, and tidy up the usage display.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-15 02:01:38 +00:00
Ewan Mellor f455c4c7bd Fix 64-bit build with a PRIu64.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-15 01:42:31 +00:00
Ewan Mellor 1c253aa41e Updated test to match new booting arrangement.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 18:30:35 +00:00
Steven Hand 58295d5027 Fix exception handling in xend start-of-day.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-12-14 20:58:27 +00:00
Julian Chesterfield a451e41cb7 Add sparseness flag to qcow-create.
For environments where space must be guaranteed in advance
use the -p flag to remove sparseness from the qcow file.

Signed-off-by: Julian Chesterfield <julian@xensource.com>
2006-12-14 20:23:07 +00:00
Ewan Mellor 87221c6db2 Remove the boot-type implementation -- now replaced by the HVM and PV boot
configuration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 18:24:41 +00:00
Ewan Mellor 184500f7fc Implement new booting parameters for Xen-API, and backwards compatibility for
the old bootloader settings.

We now have two mutually exclusive config groups HVM and PV, with HVM/boot
and PV/{bootloader,kernel,ramdisk,args,bootloader_args}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 18:24:14 +00:00
Ewan Mellor a7416ebe65 Stub implementations of VM.auto_power_on, VM.consoles.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 17:43:41 +00:00
Ewan Mellor 8e5b7018e7 Remove a number of unused configuration dictionaries -- these have all
moved into XendConfig now.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 17:37:29 +00:00
Ewan Mellor 5d46b4c636 Fix calls to destroyDevice that are missing a force flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 15:32:44 +00:00
Ewan Mellor 4a5cb14abe Add some exception logging.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 15:10:47 +00:00
Ewan Mellor e5ec710fa4 Added xm shell command, taken from xapi.py, to make testing the Xen-API calls
a little easier.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 14:54:24 +00:00
Ewan Mellor ca636dbc6e Have a 1GiB disk rather than 1MiB, for a slightly more sensible test.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 14:50:35 +00:00
kfraser@localhost.localdomain 89bc2ddec0 Merge with xen-ia64-unstable.hg 2006-12-14 18:22:58 +00:00
Ewan Mellor 2db8f7202c Tidy up.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-14 17:25:38 +00:00
awilliam@xenbuild2.aw a3e94225c7 [IA64][HVM] Use vcpu info from getdomaininfo
This replaces the get/set_param using HVM_PARAM_VCPUS

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-12-14 09:56:41 -07:00
kfraser@localhost.localdomain 0330b1b4b8 [XEN] Provide PV guests with emulated PIT.
This is needed for some video-controller BIOSes which use PIT channel
2 for delay loops.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-12-14 16:27:10 +00:00
kfraser@localhost.localdomain a0bf728f15 [TOOLS] Fix check-script compatibility with non-bash shells.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-14 16:00:31 +00:00
awilliam@xenbuild2.aw 5a170ea5d6 merge with xen-unstable.hg 2006-12-14 08:57:36 -07:00