Commit Graph
1432 Commits
Author SHA1 Message Date
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
kfraser@localhost.localdomain e489d9a4e9 [XM] Print shorthelp of xm shutdown.
# xm shutdown
Error: 'xm shutdown' requires between 1 and 4 arguments.

   shutdown <DomId> [-w][-a][-R|-H] Shutdown a domain

# xm shutdown vm1 -w -a -R -H
Error: 'xm shutdown' requires between 1 and 4 arguments.

   shutdown <DomId> [-w][-a][-R|-H] Shutdown a domain

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-07-28 17:36:08 +01:00
kfraser@localhost.localdomain 87f45629c6 [XEND] Better checking of shutdown of domain0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-07-28 17:35:39 +01:00
kfraser@localhost.localdomain 2b9c0e336c [PCI] xend parses the user-space PCI backend policy files and sends
the corresponding fields to the PCI bus manager via sysfs nodes:

/sys/bus/pci/drivers/pciback/quirks
/sys/bus/pci/drivers/pciback/permissive

xend reads the policy file every time it creates a new domain that was
assigned a PCI device.

Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
2006-07-28 12:57:55 +01:00
kfraser@localhost.localdomain 19b294d7fc Fix memory allocation for IA64 guest on Xen-unstable.hg with new Qemu.
After balloon drive ready, we can remove this line safely.

Signed-off-by:Zhang Xiantao <xiantao.zhang@intel.com>
2006-07-25 15:12:47 +01:00
chris@kneesaa.uk.xensource.com da71e93abc Spawn vncviewer from qemu-dm.
- add vncviewer option to qemu-dm to spawn a vncviewer process.
- add the `vncconsole' config parameter which enables qemu-dm's vncviewer
  option.

Based on a patch from: Don Dugger <donald.d.dugger@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-14 18:53:27 +01:00
atse@norwich.uk.xensource.com f9b97a33a6 [XEND] Minor readability change
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-07-14 11:49:25 +01:00
atse@norwich.uk.xensource.com 2b9f3d434d [XEND] Minor syntax change
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-07-14 11:49:24 +01:00
kaf24@firebug.cl.cam.ac.uk 345a97c4db [powerpc] [xend] PPC doesn't support ballooning yet
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-07-14 10:23:04 +01:00
jchesterfield@wicket.uk.xensource.com 093efe7838 xend save/restore fix, only matches one device type (vbd or tap) on creation of vm. 2006-07-13 15:33:08 +01:00
jchesterfield@dhcp92.uk.xensource.com 0da81aa1d4 Added blktap support. Includes kernel driver (enabled as CONFIG_XEN_BLKDEV_TAP=y) and userspace tools. The userspace deamon (blktapctrl) is enabled by default when xend is activated. For further information on using and configuring blktap see tools/blktap/README. 2006-07-13 10:13:26 +01:00
chris@kneesaa.uk.xensource.com 96c551880a Update xend to support vnc configuration for qemu 0.8.1 based ioemu.
Also add vncdisplay= option which allows setting the display number
instead of using the default display number (= domid).

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-12 19:16:14 +01:00
chris@kneesaa.uk.xensource.com 472b6cb977 Update xend to support network configuration for qemu 0.8.1 based ioemu.
Remove the ne2000 option, the network device type can now be selected
on a per-device basis by adding a model= property to the device's entry
in the vif list.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-12 19:16:12 +01:00
kfraser@localhost.localdomain 2fdede6154 Revert c/s 10651: "prevent double uuid use". Breaks localhost
migration, since old and new domains can coexist at same time
with same uuid.

Possibly this patch could be accepted if xend were to be able to
deal with localhost migration (and save/restore, which can also
occasionally race).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-12 16:34:39 +01:00
kfraser@localhost.localdomain a30dab89d4 [XM][ACM] Add xm subcommands to work with security resource labels.
This patch adds new xm subcommands to support working with resource
labels.  The new subcommands are 'xm resources', 'xm rmlabel', 'xm
getlabel' and 'xm dry-run'.  In addition, the 'xm addlabel' subcommand
now uses an updated syntax to support labeling both domains and
resources.  See the xm man page for details on each subcommand.

Beyond the new subcommands, this patch allows users to immediately see
when security checks will fail by pushing some basic security checking
into the beginning of 'xm create' and 'xm block-attach'.  ACM security
attributes for block devices are added to XenStore in order to support
the final security enforcement, which will be performed in the kernel
and included in a separate patch.

Signed-off-by: Bryan D. Payne <bdpayne@us.ibm.com>
Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
2006-07-10 17:18:07 +01:00
kfraser@localhost.localdomain 1a1f70afb8 [XEND] Currently a domain's maxmem value is being set with the memory value
even if the user specifies maxmem in config.  This patch uses maxmem
value to set maxmem instead of memory.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2006-07-10 15:57:56 +01:00
kfraser@localhost.localdomain 1e4f24bfe2 [XEND] Fix a couple of error-message typos.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-07-10 15:18:53 +01:00
kfraser@localhost.localdomain b2dc3a1d39 [XEND] Improve xm pause/unpause error reporting.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-07-10 15:18:12 +01:00
kfraser@localhost.localdomain c98d70f46a [XEND] Prevent uuid double use.
A check_uuid() in this patch checks on uuid of the
VM configuration definition. If specified uuid is
already used with the others VM, the xm create command 
does not create the VM. The xm create command error occurs.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-07-10 15:10:00 +01:00
kfraser@dhcp93.uk.xensource.com 7550e5d3f9 Revert 10521, 10526 and 10527. This completes reversion of ACM modifications to xm.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 13:33:20 +01:00
kaf24@firebug.cl.cam.ac.uk 6303b0e103 [TPM] Adds a script for virtual TPM support.
It also removes a consistency check from the vtpm-common script file.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-06-30 10:16:12 +01:00
kaf24@firebug.cl.cam.ac.uk bcdd7e25a6 [XM] Remove unused imports.
From: Kazuo Moriwaka <moriwaka@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 09:51:02 +01:00