Commit Graph
5572 Commits
Author SHA1 Message Date
Alex Williamson 19472a02dd merge with xen-unstable.hg 2007-07-02 12:19:26 -06:00
Alex Williamson f563c36712 [IA64] Fix NVRAM data cannot be saved when guest execute "reboot"
Also fix "xm reboot" instruction in Xend.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2007-07-02 09:38:51 -06:00
Alex Williamson b624e17e3d [IA64] Fix incorrect NVRAM saving if domain is destroyed by config error
Nvram saving is always executed even if a domain is destroyed by a
configuration parameter error.  In this case, Nvram saving function
will get a bad address for the NVRAM data and save garbage into the
NVRAM file. Configuring a wrong vif parameter can expose this issue.

This patch fixes the issue by adding an address check function in
NVRAM saving path.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2007-07-02 09:05:24 -06:00
Alex Williamson 821d1e6115 [IA64] Remove IA64_GUEST_CONTEXT_RBS_OFFSET
Pass the offset in the vcpu_reg struct.
Fix displaying stack register in xenctx.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-07-02 08:38:45 -06:00
Ian Campbell 4cb346f848 Fix 15435:ab95b9764b20.
The changeset did not consider about ":cdrom" and "ioemu:"
of a disk definition.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-02 08:42:13 +01:00
Keir Fraser d0e4f15cfd Use 32bit operand and address during VMXAssist protected to real.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2007-07-02 00:24:59 +01:00
Keir Fraser 0cf4932910 xm: Fix xm block-detach error message duplication.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-01 22:25:27 +01:00
Keir Fraser e0ccefb2fb xm: Fix a typo for xm network-detach.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-07-01 22:23:16 +01:00
Keir Fraser 1b3a517175 Make network-bridge fail on NFS or iscsi root.
Since setting up bridging involves bringing down the network interface,
bridging clearly isn't compatible with the likes of NFS or iSCSI root.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-07-01 22:20:46 +01:00
Keir Fraser 883a5de1d2 Remove unused VMXAssist test code.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2007-07-01 22:18:04 +01:00
Keir Fraser caa6c26fb3 xendomains: Ignore 'lost+found' when finding saved dom images.
Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
2007-07-01 22:16:41 +01:00
Keir Fraser c32cff27ba xend: Pass information to user when failing migrate due to PCI dev.
When failing a migration / save due to the domain owning a PCI device
make sure that we tell the user what went wrong!

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
2007-07-01 22:10:38 +01:00
Keir Fraser 450f5b5b9e xend: Don't allow migrate with assigned PCI devs.
This can potentially cause a whole machine crash, which I think has
been seen in the wild.  The case in the wild was caused by xendomains
auto-resuming domains on reboot, so it wasn't even operator error.

There's no sane way to migrate or suspend domains with PCI devs,
so I disallow it completely.

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
2007-07-01 22:10:13 +01:00
Ian Campbell 1dd1b5a9f6 Add a duplication definition check for devices.
This patch adds a duplication definition check for devices.
It checks the following definitions.
 - vbd : uname and device name
 - vif : mac

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-06-29 14:38:18 +01:00
Keir Fraser 9659b6cb45 xend: Fix irq-permissions setting during domain creation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-28 20:35:50 +01:00
Keir Fraser 41b3adc925 More getcpuinfo sysctl cleanup.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-27 21:43:43 +01:00
Keir Fraser 3f96f21796 xenconsoled: improve robustness of logfile handling
Check the 'log_reload' on every iteration of the select() loop, not just when
select() returns EINTR. This is because the log reload signal may have
iterrupted a syscall other than select & thus without this change  we
might miss the reload signal.  The second change makes us process the
hypervisor logs on every iteration of the loop, not just upon timeouts.
This is because if a guest VM were consistently sending some log message
and < 1 second period, the select() would never hit the 1 second timeout
and thus never process the HV logs.

Thanks to Markus Armbruster for pointing out both these edge cases

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-06-27 21:05:54 +01:00
Steven Hand 3bc33badf2 Add new sysctl to return runtime information about physical CPU utilization.
Signed-off-by: Steven Hadn <steven@xensource.com>
2007-06-27 21:01:08 +01:00
Alex Williamson 0aa79431e8 libxc: Add xc_domain_setdebugging in xenctrl API
Use it in xc_ptrace.c

Signed-off-by: Tristan Gingold <tgingold@free.fr>
Acked-by: Keir Fraser <keir@xensource.com>
2007-06-26 16:18:28 -06:00
kfraser@localhost.localdomain 837eceb667 ioemu: Fix ifdef __x86_64__
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-25 16:52:39 +01:00
Alex Williamson bafd931a14 [IA64] Many more registers displayed (through a command-line option).
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Acked-by: Keir Fraser <keir@xensource.com>
2007-06-21 16:45:41 -06:00
kfraser@localhost.localdomain 5a07d757fb libxenguest: Add another range check to dom restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-21 12:10:01 +01:00
kfraser@localhost.localdomain 284d8c4881 libxenguest: Add missing range-check on count field read from a domain
save/restore file.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-21 09:47:39 +01:00
Alex Williamson 4f27e3fe03 merge with xen-unstable.hg 2007-06-20 12:49:27 -06:00
kfraser@localhost.localdomain d40dbdf39f tools: Adjust tools' path calculation.
I'm suggesting this change to make another tiny step towards the
ability to run the tools e.g. out of the build tree (so that multiple
different Xen versions can co-exist without the requirement to
re-install the respective version with each boot).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-06-20 17:07:15 +01:00
kfraser@localhost.localdomain 7000b6bdac tools: Create directory /var/lib/xen at install target.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-20 16:58:21 +01:00
kfraser@localhost.localdomain 7d698de822 Fix xm vcpu-set command for managed domains, to take effect immediately.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-06-20 14:43:41 +01:00
kfraser@localhost.localdomain a705b24a9d hvm: Ensure ioemu sees media-change events even when media filename
remains constant my writing a dummy blank string first.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
2007-06-20 14:41:27 +01:00
kfraser@localhost.localdomain d5efa0e4b7 hvm: Fix ioemu Qcow support.
Normally by default, SIGUSR2 is not blocked, so the signal masks of
SIGUSR2 in all threads is unblocked.

When creating HVM guest, if we use the Qcow format image file, in the
main thread, Qcow uses SIGUSR2 to be notified of the completion of the
request after it issues an AIO request; in tools/ioemu/block.c:
bdrv_read_em(), in some point between bdrv_aio_read() and
qemu_aio_wait(), Dom0 may send a SIGUSR2 to Qemu immediately to
indicate the completion of an AIO request -- since at the moment
SIGUSR2 in main thread is blocked by qemu_aio_wait_start(), the signal
may be delivered to one non-main thread, causing the signal handler of
SIGUSR2 is invoked, then the main thread hangs in
qemu_aio_wait()->syswait()...

This patch blocks SIGUSR2 at the beginning of Qemu's main(), so it
ensures SIGUSR2 is blocked by default when a new thread is created,
then only the threads that use the signal unblock it.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2007-06-20 14:36:11 +01:00
kfraser@localhost.localdomain bdb957f876 blktap: Add fallback code to blktap for missing poll-on-aio support.
blktap requires a xen specific kernel AIO ABI which has been vetoed by
upstream in favour of another approach. Rather than include this ABI,
Fedora has been carrying a patch which makes tap:aio use a thread to
poll for aio events and notify the main thread via a pipe.

The upstream approach of allowing io_getevents() poll normal file
descriptors via epoll is still progressing:
 http://lkml.org/lkml/2007/1/3/16

but when that does make it upstream, blktap will require significant
re-working to use that approach.

In the meantime, here's a patch which uses the poll-in-a-thread
approach only if AIO poll support isn't available. It also hides the
details behind a simple abstraction and makes both tap:aio and
tap:qcow use it.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-06-19 16:32:28 +01:00
kfraser@localhost.localdomain 477ac069bc tools: Allow xendomains to handle domain names >16 characters
The xendomains init script parses the output of "xm list", and
since xm list restricts the length of domains to 16 characters the
xendomain script cannot handle long domain names.

This patch makesit parse the output of "xm list -l" instead.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2007-06-19 16:29:22 +01:00
kfraser@localhost.localdomain 0edf82adb3 ioemu: Assembler memcpy() for x86, and lowest-common-denominator
memcpy() function for all others, avoiding noisy longword copies on
ia64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-19 16:08:15 +01:00
kfraser@localhost.localdomain 310da2e989 tools: Fix compiler warning.
From: Charles Coffing <ccoffing@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-19 15:55:13 +01:00
Alex Williamson ea203ff9ad [IA64] Typo fix: avoid spurious errors.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-06-18 13:36:36 -06:00
Keir Fraser dd34063f08 xend: Revert 15252:31ee1768e911 ("Make device detach wait for detach to complete").
Has a bad interaction with 12520 in destroyDevice(), where devid is
not an integer as expected.

I'm not sure which of these changesets is really the bogus one, but
this one went in later so it loses. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-16 11:18:44 +01:00
Alex Williamson b51cbb0e12 merge with xen-unstable.hg 2007-06-15 13:33:11 -06:00
Alex Williamson 8619e2100c [IA64] Add error checking to nvram store mkdir
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-06-15 11:34:34 -06:00
Alex Williamson 2d66d8efcf [IA64] Create NVRAM save directory
If you use RPM to install XEN, the directory(/usr/lib/xen/boot)
will be removed when you un-install the RPM. This patch create
that directory before NVRAM file creating.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2007-06-15 09:25:09 -06:00
Keir Fraser b19760e244 xend: Replace tabs with 8 whitespaces in DevController.py
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-06-15 10:01:32 +01:00
Keir Fraser 70c1fbfecd Update Solaris balloon ioctl value
The balloon ioctl value should use a 32-bit value instead of a 16-bit
value to distinguish itself from other ioctls.

Signed-off-by: Ryan Scott <ryan.scott@sun.com>
2007-06-15 09:18:42 +01:00
Keir Fraser 31c3af29ce Remove bogus xenfb include; breaks Solaris build.
Signed-off-by: John Levon <john.levon@sun.com>
2007-06-15 09:17:49 +01:00
Alex Williamson 2a46c653b1 [IA64] Don't try to save nvram on PV domains
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-06-14 15:32:22 -06:00
Alex Williamson 5be530d543 [IA64] symlink kregs.h into libxc build
Suggested by Akio Takebe

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-06-14 15:13:59 -06:00
kfraser@localhost.localdomain eee0df9243 xenapi: Implement VM.set_VCPUs_at_startup and VM.set_VCPUs_max XenAPI
methods in xend.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-06-13 11:28:13 +01:00
kfraser@localhost.localdomain 2258445464 xenapi: Implement XenAPI method VBD.set_mode in python.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-06-13 11:27:47 +01:00
kfraser@localhost.localdomain 876bffbc17 xenapi: Fix segfault in libxenapi.
When calling xen_vbd_set_mode(), libxenapi attempted to convert enum
mode parameter to a string twice - resulting in segfault.  Removed
first conversion since conversion is taking place in
marshalling/demarshalling layer. Fixed similar double enum conversion
in other places as well.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-06-13 11:27:08 +01:00
kfraser@localhost.localdomain f63ebd213e xentop: Fix -b option (batch mode).
Some curses libraries don't work with xentop in batch mode, avoid
those calls. Avoid the over-verbose summary lines when batch mode is
requested.

Signed-off-by: Gary Pennington <gary.pennington@sun.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-06-13 11:13:11 +01:00
Alex Williamson 8a25d0a58c Merge with xen-unstable.hg (staging) 2007-06-12 20:41:08 -06:00
Alex Williamson eca595007b [IA64] libxc trivial fix compilation error.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-06-12 15:23:55 -06:00
Alex Williamson e588d94efc [IA64] Use virtualized psr in vcpu context instead of real psr.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
2007-06-12 15:16:03 -06:00