Commit Graph
1403 Commits
Author SHA1 Message Date
Steven Hand f1b7d71605 This patch fixes return codes for the acm-related Xen management scripts
(error conditions) and addresses minor issues that 'pycheck' complains
about. It is tested with xm-test and by manually running the xm
commands. It also handles the return case (reported by Masaki Kanno)
that was missed in the originally patch.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-09-12 11:09:22 +01:00
Tim Deegan 06b8f9d3ab [XEND] balloon enough memory to enable shadow mode before live migration.a
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-09-08 18:55:53 +01:00
jchesterfield@dhcp92.uk.xensource.com c2a28ee6ac [BLKTAP] Fix in xend to properly destroy blktap devices when deviceClass=='tap'
Submitted by Andres Lagar Cavilla
2006-09-06 11:42:29 +01:00
Ewan Mellor bc93f293ac Fix xm create -F. This can't be very widely used, because it looks like it's
been broken for ages!

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-09-05 17:26:20 +01:00
Ewan Mellor 26f067672a Added vmunused flag to unit test results to match recent change.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-09-05 17:26:18 +01:00
Ewan Mellor 70b20785e0 Add missing import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-09-05 17:26:17 +01:00
Ewan Mellor 710a9ced48 Fix inverted sense of getRequiredAvailableMemory and
getRequiredInitialReservation on x86 HVM.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-09-05 16:23:11 +01:00
Ewan Mellor f470f70290 Fix the memory reservation calculations. Introduce a new architecture-specific
call to determine the initial reservation separately from the amount of
memory to be freed up by ballooning -- when using QEMU, we lose 8 MiB to video
RAM, which must be accounted for when ballooning, but _not_ accounted for
within the domain's memory allocation.

Tidy this code up using the new architecture-specific interface arrangement.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-09-05 14:17:50 +01:00
kaf24@firebug.cl.cam.ac.uk 5182367c40 [XENBUS] Introduce new "online" node for backend drivers.
Driver changes:  Make backend drivers check it when entering Closed
state, only unregister devices when the "online" node is either "0" or
not present.  The later maintains backward compatibility.

Tools changes:  Update "online" node when creating and hot-unplugging
devices.

Background: When kexec'ing a new kernel, the old kernel's frontend
driver will shutdown, but the backend device should *NOT* disappear
due to that, so the new kernel instance can reconnect.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
2006-09-01 00:33:19 +01:00
Steven Hand 7a2e0b5994 Fix fix :-)
Signed-off-by: Steven Hand <steven@xensource.com>
2006-08-30 13:51:12 +01:00
Steven Hand 8a8378e8df Fix hard tabs.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-08-30 13:50:08 +01:00
jchesterfield@dhcp92.uk.xensource.com 458052b5ec Block IO safety patch for live migration. Xend checks that VBDs are destroyed before unpausing the domain. 2006-08-30 11:39:27 +01:00
Ewan Mellor 34784d695b Further shadow_mem_control fixes -- we need to balloon the amount of memory
that we're going to request i.e. the rounded-up value.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-30 11:05:00 +01:00
Ewan Mellor b973ec93fc Shadow memory should be in MiB, not KiB. It also needs rounding up to be safe.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-30 09:47:24 +01:00
Ewan Mellor 01fa1a0693 Fix reboot and reconfigure of HVM guests when they are configured with an
empty CD-ROM drive.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-30 02:53:48 +01:00
Ewan Mellor aab843f487 Added an entry to arch._types for x86_64.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-30 01:20:01 +01:00
Ewan Mellor 4fd2e43a20 [XEND] abstract architecture-specific bits in image.py
- create arch.type (which evaluates to "x86", "ia64" or "powerpc")
- create subclasses for x86 and ia64 HVM loaders
- rework findImageHandlerClass()
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-08-29 23:20:22 +01:00
Ewan Mellor 773367b449 This patch fixed 'xm reboot' to work as you expected with the wait
option. This patch adds a restart sequence counter to xenstore.
The completion of a VM reboot is detected by observing that
its restart sequence counter changes.


Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-08-29 22:51:06 +01:00
Ewan Mellor cc8a2f5273 Improve xm migrate error message by printing usage instead of "Invalid
arguments".

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-08-29 22:51:05 +01:00
kaf24@localhost.localdomain b643712258 [XEND] Move all of the various log files created by xen to
be under /var/log/xen instead of under /var/log directly.  This has
the advantage of cleaning things up a little and also can make it
easier to restrict the permissions needed by xend.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-08-28 13:05:00 +01:00
kfraser@localhost.localdomain 1df421476a Replace dom0_ops hypercall with three new hypercalls:
1. platform_op -- used by dom0 kernel to perform actions on the
    hardware platform (e.g., MTRR access, microcode update, platform
    quirks, ...)
 2. domctl -- used by management tools to control a specified domain
 3. sysctl -- used by management tools for system-wide actions

Benefits include more sensible factoring of actions to
hypercalls. Also allows tool compatibility to be tracked separately
from the dom0 kernel. The assumption is that it will be easier to
replace libxenctrl, libxenguest and Xen as a matched set if the
dom0 kernel does not need to be replaced too (e.g., because that
would require vendor revalidation).

From here on we hope to maintain dom0 kernel compatibility. This
promise is not extended to tool compatibility beyond the existing
guarantee that compatibility will not be broken within a three-level
stable release [3.0.2, 3.0.3, etc.].

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-25 18:39:10 +01:00
kfraser@localhost.localdomain db51cd09d3 Remove all traces of the obsolete BVT scheduler.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-23 17:14:38 +01:00
kfraser@localhost.localdomain 07f2bdb30d [SHADOW] Clean up the DOM0_SHADOW_OP interface.
Also bump the dom0 interface version for tools (but
not for dom0 kernel!).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-22 18:50:01 +01:00
Christian Limpach d9e6579356 [xend] Add 'xend_config_format' field to the Xend information block.
When running 'xm info' it appears thus:

 # xm info
 host                   : 10.13.4.252
 release                : 2.6.17-1.2157_FC5xen0
 version                : #1 SMP Tue Jul 11 23:30:05 EDT 2006
 machine                : x86_64
 ...snipped rest of data...
 cc_compile_domain      : build.redhat.com
 cc_compile_date        : Tue Jul 11 22:50:42 EDT 2006
 xend_config_format     : 2

It will also appear in the SEXPR returned when doing a GET on the
/xend/node path in XenD's HTTP service:

 (node
   (system Linux)
   (host 10.13.4.252)
   (release 2.6.17-1.2157_FC5xen0)
   (version '#1 SMP Tue Jul 11 23:30:05 EDT 2006')
   (machine x86_64)
   ...snipped rest of data...
   (cc_compile_domain build.redhat.com)
   (cc_compile_date 'Tue Jul 11 22:50:42 EDT 2006')
   (xend_config_format 2)
 )

The patch sets the format to value '2' to indicate that we're on the version
with the new style HVM configuration for CDROM devices. The old style having
implicitly been version '1'.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-08-21 00:11:17 +01:00
tdeegan@york.uk.xensource.com 49f7c7364e Replace shadow pagetable code with shadow2. 2006-08-16 17:02:35 +01:00
emellor@leeni.uk.xensource.com 2d14977023 Fix log rotation which was inadvertently broken by changeset 11129:939f75570a15.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-16 16:06:32 +01:00
emellor@leeni.uk.xensource.com 99c694310f Implement xm block-configure for CD-ROMs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-16 12:59:30 +01:00
kfraser@localhost.localdomain d0ed0b289c [XEND] xc_save/xc_restore open the libxc interface independently
of their parent. This is required now that the interface fd is
marked for close-on-exec.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-15 19:04:43 +01:00
kfraser@localhost.localdomain ef3277d97c Set close-on-exec flag on /var/log/xend.log logging file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-08-15 16:27:26 +01:00
kfraser@localhost.localdomain 265853a73b Set the close-on-exec flag on the RPC socket in tool stack.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-08-15 16:26:39 +01:00
kfraser@localhost.localdomain 13451be1da [XEND] Apply the domain cpumask fully to every vcpu in the domain.
Apply the domain cpumask to each vcpu rather than mapping vcpus to
cpus in the list.  This is more inline with the comments for the
cpus parameter and also allows the credit scheduler to balance
vcpus within the domain cpumask.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2006-08-15 10:56:59 +01:00
kfraser@localhost.localdomain b76fbc3cc5 [LIBXC] Remove unused xc_evtchn_status().
Signed-off-by: John Levon <john.levon@sun.com>
2006-08-14 16:39:35 +01:00
emellor@leeni.uk.xensource.com 7857edbe76 New xm uptime command.
From Alex Brett <alex.brett@xensource.com>

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-12 12:25:42 +01:00
emellor@leeni.uk.xensource.com 49849e9c0c Revert inadvertent code change from "replace tabs with spaces" changeset.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-10 14:29:04 +01:00
kfraser@localhost.localdomain 6c892c42ad [LIBXC] replace tabs with spaces
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-08-10 10:52:46 +01:00
kfraser@localhost.localdomain 2dcebc270e Fix 2 issues when creating HVM guests:
1) xend can't start due to xend-config.sxp
 2) qemu dm option vncunused should be effective only
    when vnc is turned on.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-08-10 10:37:15 +01:00
chris@kneesaa.uk.xensource.com 26453d70cc [qemu] Add vncunused option.
If the port used for the requested display number is in use, try
additional ports until a free port is found.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-09 15:03:38 +01:00
emellor@leeni.uk.xensource.com e7e16fef9d Fix the unit test to match the new way of allocating VNC ports.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-09 10:13:37 +01:00
emellor@leeni.uk.xensource.com bdbb3176b8 Added a couple of unit tests for the sxp parsing.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-09 10:13:36 +01:00
emellor@leeni.uk.xensource.com 9f60fd73a8 Fix reference to buf in parsing of ocaml escapes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-09 10:13:34 +01:00
emellor@leeni.uk.xensource.com 03b3d1627f Better diagnosis of the failure when Xend crashes. Thanks to Hollis Blanchard
for diagnosis.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-08-09 09:52:43 +01:00
kaf24@firebug.cl.cam.ac.uk 70858a054e [XEND] Daemonise vncviewer when it is spawned from xend.
There are various reasons it should be daemonized, but the particular
problem we hit was that YaST called "xm create" and waited on output on
stdout/stderr; xm then spawned vncviewer (which never closed its
inherited stdout and stderr); xm then would exit, but YaST still had
open file descriptors, and therefore waited forever.  It would be
possible to work around in YaST, but it seemed cleaner to daemonize
vncviewer.

Signed-off-by:  Charles Coffing <ccoffing@novell.com>
2006-08-08 10:21:51 +01:00
kaf24@firebug.cl.cam.ac.uk e5d1731cea [XEND] Fix fallback and error path for domain destruction by domid,
or of non-existent domain.

I saw the following error message. (A domain of domain name XXX does 
not exist.)

# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0     1019     2 r-----    29.8
# xm destroy XXX
Error: an integer is required

This patch fixes it to print the following error message.

# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0     1019     2 r-----    35.8
# xm destroy XXX
Error: the domain 'XXX' does not exist.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-08-08 10:03:30 +01:00
kaf24@firebug.cl.cam.ac.uk c304f4e249 [HVM] Fix hvm boot when acpi=1 is specified.
Signed-off-by: Winston Wang <winston.l.wang@intel.com>
2006-08-08 09:25:46 +01:00
chris@kneesaa.uk.xensource.com 3923c6638e [xend] Fix reboot for hvm domains with cdrom devices.
The device-type was not added to the device details which caused
cdrom devices to appear as harddisks after a reboot.

From: Alex Brett <Alex.Brett@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-07 11:59:31 +01:00
chris@kneesaa.uk.xensource.com 621578a369 [qemu] Add switch to control whether acpi bridge is enabled.
Signed-off-by: Winston Wang <winston.l.wang@intel.com>
2006-08-04 10:41:27 +01:00
chris@kneesaa.uk.xensource.com a3188a47d8 [HVM] Wnable sound card support for qemu.
Need a sound card to pass some benchmark check.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
2006-08-04 09:31:06 +01:00
chris@kneesaa.uk.xensource.com ae97d42025 [qemu] Use xenstore to configure ioemu block devices.
- read ioemu block device config from xenstore
- don't require the ioemu: prefix on block devices any longer
- allow change of media associated with cdrom drives
- replace cdrom= option by :cdrom suffix on regular block device config:
  'file:/root/mytest.iso,hdc:cdrom,r'
- don't create default cdrom drive anymore - to create default empty
  cdrom drive use: ',hdc:cdrom,r'

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-03 18:28:29 +01:00
emellor@leeni.uk.xensource.com 028e72eee5 Clarify the use of vcpu-set. Closes bug #686.
Signed-off-by Harry Butterworth <butterwo@uk.ibm.com>
2006-08-02 17:42:38 +01:00
kfraser@localhost.localdomain 63c35d0351 [TOOLS] ppc64 is not a LIB_64_ARCH
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
2006-08-02 09:16:26 +01:00