Commit Graph
3760 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 80f2588d2b [CONSOLED] Shouldn't call domain_create_ring() for a domU which is shutting down.
There is a race condition between domain_create_ring() and the removal
of the domU entry from xenstore. If the removal of the domU entry from xenstore
comes later than the first xs_gather() call in domain_create_ring(), it will go
on and bind the evtchn port to the dying domU, which will cause below error
message: (XEN) (file=event_channel.c, line=144) EVTCHNOP failure: domain 0, error -22, line 144

Signed-off-by: Max Zhen <max.zhen@sun.com>
2006-09-13 14:01:23 +01:00
kaf24@firebug.cl.cam.ac.uk 9f019b36fd [TOOLS] Enhance Python version check for v2.5.
From: Charles Coffing <ccoffing@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-13 13:54:59 +01:00
awilliam@xenbuild.aw 84804f40f9 merge with xen-unstable.hg 2006-09-12 11:43:22 -06:00
atse@norwich.uk.xensource.com 82f6d80e3a [XEND] Return an Internal Server Error via the Xend HTTP server.
This allows domain creation failures can be detected when done via HTTP.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-09-12 16:33:33 +01:00
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
awilliam@xenbuild.aw 296b9322bc [IA64][XEND] Fix getRequiredShadowMemory parameters
Parameter count changed in xen-unstable.hg 11417:65a41e3206ac

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-09-10 15:34:14 -06: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 bd5b7756c3 This patch adds the argument check of "--ms_per_sample=" option. For
"--ms_per_sample=", a negative value should be invalid.

e.g.
% xenmon.py -n --ms_per_sample=-1
usage: xenmon.py [options]

xenmon.py: error: option --ms_per_sample: invalid negative value: '-1'

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2006-09-05 17:06:02 +01:00
Ewan Mellor 8037b37752 This patch improves error message of xm console command.
# xm console Domain-0
Can't specify Domain-0

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-09-05 17:06:01 +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
jchesterfield@dhcp92.uk.xensource.com 30acc78a4b [blktap] Fix block device getsize bug in qcow when backing_filename is a block device. 2006-09-05 15:35:42 +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
Ewan Mellor cbf197aa0d The attached patch prevents a domain with an attached vTPM from doing
local migration since this does not seem to work correctly (see tests in
xm test suite). If no vTPM has been attached, the local migration
proceeds as usual.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-09-05 14:17:49 +01:00
Andrew Warfield f1da4c1bac Tapdisk cleanup.
Sign-off-by: Jun Koi <junkoi2004@gmail.com>
2006-09-01 13:24:51 -07: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
kaf24@firebug.cl.cam.ac.uk 39cda1cf3f [TOOLS] xenctrl.h defines __XEN_TOOLS__ if it's not already.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 18:54:50 +01:00
kaf24@firebug.cl.cam.ac.uk 8a1ca3b97e Merge with xenppc-unstable-merge.hg. 2006-08-30 22:36:18 +01:00
kaf24@firebug.cl.cam.ac.uk 1b4f247ac5 Merge with xen-ia64-unstable.hg 2006-08-30 21:38:34 +01:00
Hollis Blanchard bbf0ef9494 [POWERPC] merge with xen-unstable.hg 2006-08-30 14:09:31 -05:00
kaf24@firebug.cl.cam.ac.uk d96c9af4a3 [XEN] Add a start_pfn field in xen_domctl_getmemlist.
This is used by ia64 because it directly reads the P2M table.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-08-30 18:19:04 +01:00
kaf24@firebug.cl.cam.ac.uk 33d0648f73 [TOOLS] Fix gdbserver build.
Signed-off-by: Travis Betak <travis.betak@amd.com>
2006-08-30 17:52:35 +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
Andrew Warfield b54a368212 Fix typo.
Signed-off-by: <andy@xensource.com>
2006-08-29 16:31:57 -07:00
Andrew Warfield a9ffe9fa78 merge 2006-08-29 15:58:57 -07:00
akw@devbox.site 34cac35129 Small blktap cleanups.
Signed-off-by: Andrew Warfield <andy@xensource.com>
2006-08-29 15:55:24 -07: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
akw@devbox.site 8c6d286668 Reduce AIO context allocations in blktap.
Signed-off-by: Andrew Warfield <andy@xensource.com>
2006-08-29 14:34:57 -07:00
awilliam@xenbuild.aw 1e9154d652 merge with xen-unstable.hg 2006-08-29 08:28:38 -06:00
awilliam@xenbuild.aw 11ecd5026e merge with xen-unstable.hg 2006-08-28 16:26:37 -06:00
Christian Limpach 5268d7dfd0 [qemu patches] Update patches for changeset 11273:a1cff03ac7d7.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-28 22:44:31 +01:00
Christian Limpach c9325b7833 [qemu] Fix PCI config header space writes and set Subsystem-Vendor ID fields.
Fix failure in Windows HCT's PCI-Compliance-Test by invalidating the
writing to read-only/reserved fields in PCI configuration space header
and giving Subsystem-Vendor-ID field a valid value via copying Vendor-ID
field into it.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2006-08-28 22:43:09 +01:00
Christian Limpach efa64a206d [qemu patches] Update patches for changeset 11268:350a73222a51.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-28 20:22:56 +01:00
Christian Limpach 661a70db02 [qemu] Add target-i386-dm and hw *.[ch] files to TAGS.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-28 20:21:38 +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
kaf24@localhost.localdomain 10a74ed0a2 [HVM] [SMBIOS] Duplicate UUID into serial number in SMBIOS tables.
Windows zeroes out the UUID in the SMBIOS tables, but the identifier
is often needed by systems management code.  Duplicating the UUID
as the virtual system's serial number should help.

Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
2006-08-28 12:59:07 +01:00
kaf24@localhost.localdomain 2b1e704734 The following patch fixes a bug where xenconsoled will can SEGV
because it uses FD_ISSET(-1,xxx).  Since the code is written that any
ring/tty handler can set d->tty_fd to -1 it has to be checked
_every_time_.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
2006-08-28 12:50:55 +01:00
kaf24@localhost.localdomain a1a3b44764 [TOOLS] Remove Gentoo-specific workaround in networking
scripts -- apparently it is not needed (reported by
Tuan Van <lang.thang@gmail.com>). See bugzilla issue #741
for more details.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-28 12:49:14 +01:00
kaf24@localhost.localdomain daddd6bbdd [TOOLS] Clean up routed vifs quietly on domain destruction.
I have experienced that the vif-route script does not work as expected
when deleting a virtual interface (Redhat FC5). Both of the commands
"ifdown" and "ip route" cause an early vif-route script exit and
therefore will cause skipping of the later script commands (such as
cleaning up iptables entries for the default 'antispoof'). The
vif-route
script creates the following syslog error entry:
"/etc/xen/scripts/vif-route failed; error detected."

It appears that both of the problematic commands are actually
redundant
when destroying domains:
1. the interface is already gone (I assume because the domain frontend
is gone already)  --> ifdown does not do anything
2. the route is gone as well since the interface has disappeared -->
ip
route del does not do anything

Executing those redundant commands with "do_without_error" ensures
that
the script completes and cleans up iptables rules. The attached
RFC-patch only masks those commands when bringing down an interface,
so
that domain creation continues to fail in case of vif setup problems
(intended behavior).

Having the iptables cleanup called correctly by vif-route is important
to keep the iptables rule-set clean, otherwise antispoof rules
accumulate with every vif creation.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-08-28 12:41:15 +01:00