Commit Graph
3853 Commits
Author SHA1 Message Date
acnt2@huggins.lce.cl.cam.ac.uk 5bbd381a3b [XEND][LIFECYCLE] Configurable storage path for lifecycle support
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk 80e180d5b3 [XEND] Clean up some keyword clashes with XendCheckpoint
- Replaced str with domstr
- Disabled changing domain name while migrating

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk 61c5734192 [XEND] Xen API Auth Manager for handling sessions
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-05 17:29:19 +01:00
Alastair Tse ef46d763af [XEND] Make XMLRPC Server shutdown cleanly.
We can now catch the end of Xend and clean up domains accordingly.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-05 17:29:19 +01:00
Alastair Tse d03a635aec [XEND] Make logging an optional parameter for the XMLRPCServer
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk fa82d0c586 [XEND] Replace dom with domid.
* Also removed stray semicolon
* Fixed whitespace for pciif.py
* Moved DEV_MIGRATE_TEST to xen.xend.__init__.py

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk 70527787db [XEND] Python API break. Replacing ambiguious 'dom' with 'domid'
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk 4cd942004e [XEND] Minor stylistic fixes for XendBootloader.py
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk 4c89cbf41f [XEND] Make import sxp into absolute import.
* Replacing import sxp with from xen.xend import sxp to avoid
confusion.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-05 17:29:19 +01:00
acnt2@huggins.lce.cl.cam.ac.uk 39c3a03dfa [XEND] Fix backslash escaping so it ignores escapes if they don't make sense.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-10-05 17:29:19 +01:00
kaf24@firebug.cl.cam.ac.uk bd769a8dd5 [HVM][TOOLS] Improve warnign message when trying to create
an HVM guest on a non-capable platform.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-30 11:35:02 +01:00
kaf24@firebug.cl.cam.ac.uk 137a9ce8c7 [HVM] Add RDMSR/WRMSR instruction emulation to VMXAssist decoder
AP of PAE SMP windows will use it to set NX bit in EFER.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-09-30 11:11:54 +01:00
kfraser@localhost.localdomain bb52a4e20a [BLKTAP] Find major number by searching sysfs
instead of reading /proc/devices.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
2006-09-29 14:55:57 +01:00
kfraser@localhost.localdomain ada55182d2 [LINUX] Make evtchn device use a dynamic minor number.
Also update the code in tools to create the device node if udev fails.
The tools now read the sysfs system to find the minor number needed.

Original patch from  Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-29 14:20:52 +01:00
Alastair Tse a1abe891a5 [TOOLS] Fix xendomains init.d script DOG PIG confusion.
Fix typos in xendomains where we actually mean WDOG_PID.
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=754

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-29 11:25:25 +01:00
kfraser@localhost.localdomain e32782e508 [PYGRUB] Enable showing the cursor in pygrub when it's relevant to do so.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-09-29 11:22:24 +01:00
kfraser@localhost.localdomain 80550dad57 [BLKTAP] Remove unnecessary timeout from tapdisk select() call.
tapdisk was using a 1msec select() timeout in its main event loop.  On
timeout, the loop does nothing except repeat, so the timeout achieves
nothing; worse, on a machine with HZ set to less than 1000, a msec
timeout returns immediately, sending tapdisk into a 100%-CPU-
utilisation loop.

Simply remove the timeout entirely; everything still works fine, and
much more efficiently when idle.

Signed-off-by: Stephen Tweedie <sct@redhat.com>
2006-09-29 11:16:52 +01:00
kfraser@localhost.localdomain 90e86a9d21 Remove dead pdb code from tools directory.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-29 11:13:01 +01:00
kfraser@localhost.localdomain b7b0acf60f [VMXASSIST] Fix data32/addr32 instruction decode issue.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
2006-09-29 11:11:49 +01:00
Andrew Warfield 1c0ee21d44 [BLKTAP] have udev create the device for blktap
This patch makes blktap Do The Right Thing(TM).  It allows udev to
create the /dev/xen/blktap[0-9] devices.

It creates a sysfs class called "xen".  This part may later be placed
someplace else, but currently blktap is the only user so it is placed in
the blktap code.

When blktap is initialized, a blktap0 sysfs class device is made.  The
other devices blktapX (X > 0) are made when the BLKTAP_IOCTL_NEWINTF
ioctl is called.  This way we don't flood the sysfs and /dev/xen with
unnecessary devices.

I added a rule in the xen-backend.rules to allow for udev to create the
blktap devices.


With this, we can really remove the code to search and create the
/dev/xen/blktap[0-9]*, but I'll leave it in for now. With the use of
udev, we really should remove that code as well as the code for creating
the evtchn device.  udev works for both of these now.  But that removal
will have to be in another patch.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
2006-09-28 13:44:00 -07:00
Andrew Warfield 9dd368070b [BLKTAP] have blktap use a dynamic major
blktap currently uses a hardcoded major of 254 for the device.  This is
not robust in anyway and needs to be dynamic.

Note: it is better not to have the daemon create the node, and have udev
create it instead. But since the daemon currently creates the node
anyway, it is still the way this is done.  That change needs to be made
at another time.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
2006-09-28 12:47:45 -07:00
Andrew Warfield 8e7cc683c5 [BLKTAP][XEND] Fix blktap to work with a bootloader
If a Xen guest has a bootloader configured, then it will fail to start
on a blktap image.  The problem is blkdev_uname_to_file, which cannot
parse the "tap:aio:$filename" image strings: it tries to split the
string apart at ":" and assign the result to a 2-tuple, and this
results in a python error if the split results in three or more
strings.

The fix is to split only at the first ":", and then to split again
if we detect "tap:" as the image type.

Signed-off-by: Stephen Tweedie <sct@redhat.com>
2006-09-28 12:12:59 -07:00
atse@norwich.uk.xensource.com fbda4315cd [XM] Report proper ACMError(s) instead of silently exiting.
Remove try except blocks so that ACMError(s) are properly reported to
the user rather than silently fail.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-28 12:46:09 +01:00
atse@norwich.uk.xensource.com 9a7d719155 [XM] Remove traceback printing from load/makepolicy.py.
Should pass the exception along to xm/main.py to handle properly like
the rest of the commands.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-28 12:29:52 +01:00
atse@norwich.uk.xensource.com 665dff5cd1 [XM] Fix stray quotes in usage message in getlabel.py
Fixed built-in function name conflict.
Raise correct exceptions for when option is invalid to be properly
reported by xm.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-28 12:23:21 +01:00
atse@norwich.uk.xensource.com 3c9f8469ed [XM] Fix error reporting for resources.py, remove duplicate try block.
Also fixed usage message to not include misspelling of the command.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-28 12:16:11 +01:00
atse@norwich.uk.xensource.com 438289a1bd [XM] Removed traceback printing for non ACMError exceptions
Removing try,except block as cfgbootpolicy should allow exceptions to
propagate instead of printing traceback to stdout.
(http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=778)

Changed usage of string.join, string.split when creating security
policy path name.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-28 11:50:51 +01:00
atse@norwich.uk.xensource.com 9bb76d3442 [XM] Set proper return code for exceptions in xm, catch ACMError.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-28 12:03:10 +01:00
atse@norwich.uk.xensource.com 7ce79f6a21 There's a typo in create.py, which affects PV bootloaders (such as
domUloader and probably pygrub).  Patch attached.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2006-09-28 10:10:59 +01:00
kfraser@localhost.localdomain 4ac7a6de2f [VMXASSIST] Cast to pointer type via long to avoid compile
warnings/errors with latest gcc versions.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-27 17:49:22 +01:00
Steven Smith 8a44c227f8 [HVM] qemu should wait 10ms, rather than 100ms, between running its timers.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-27 16:22:17 +01:00
kfraser@localhost.localdomain 380485a5e8 [XM-TEST] Remove the test for /dev/tpm0, which may be a prerequisite to start
the vtpm_manager. A 'SKIP' is shown if the vtpm_manager process has not been started.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-09-27 14:30:36 +01:00
kfraser@localhost.localdomain a301105b5b [XM] Fix 'xm uptime' command.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-09-27 14:01:30 +01:00
kfraser@localhost.localdomain 3c9113ced2 [XM] Fix domain reported by 'xm sched-sedf'.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-09-27 14:00:33 +01:00
kfraser@localhost.localdomain 6681aec641 [XM] Fix 'xm rmlabel' command.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-09-27 13:59:48 +01:00
kfraser@localhost.localdomain 32b51f8b72 [XM] Reenable the '-h' option, disabled in changeset:11572.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-09-27 13:58:46 +01:00
Steven Smith ed3d710e85 [HVM][VNC] Fix typo.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-26 19:50:07 +01:00
Steven Smith a58d1ba3cd [HVM][VNC] Work around a bug in the newest version of xvncviewer which
could lead to the display locking up after it's been idle for a while.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-26 16:47:35 +01:00
Steven Smith 54c338f9de [HVM][VNC] Make sure that qemu doesn't go into an infinite loop when
it receives certain invalid requests from the viewer.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-26 16:46:47 +01:00
Steven Smith 74f769a1ab [HVM] Make qemu_advance_timer do something sensible with timers which
aren't currently scheduled.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-26 16:45:52 +01:00
Emmanuel Ackaouy 7ccdaed2ed Adds support for the keyword 'all' to the vcpu-pin operation.
Using 'all' in place of a specific vcpu will apply the cpumask
to all vcpus in the domain.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2006-09-26 12:17:51 +01:00
kaf24@firebug.cl.cam.ac.uk 2d5c2b773d [VMXASSIST] Small fix to virt-to-phys translation.
CR4.PSE is ignored in PAE mode, so remove test of it.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-26 08:36:39 +01:00
kfraser@localhost.localdomain 681ed1d454 [VMXASSIST] Fix virt-to-phys translation routine.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-25 18:19:30 +01:00
Steven Smith 832f7ab187 [HVM] Rate limit guest accesses to the qemu virtual serial port. This stops
grub's boot menu from hammering dom0.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-25 17:27:18 +01:00
kfraser@localhost.localdomain ad27570a65 [TOOLS] Wait for backend devices to set up before resuming execution
of a restored guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-25 09:11:52 +01:00
kfraser@localhost.localdomain 152b691af7 [QEMU] A better build fix for qemu-dm.
This extends 11592:5c58df8c78851d47bf7130308895c4e0ac5fa5ad
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-23 16:23:11 +01:00
kfraser@localhost.localdomain 5a1c6af897 Fix tools build with latest glibc, which has an
extended PTRACE enumeration.
Original patch from Stephen Tweedie <sct@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-23 14:52:04 +01:00
kfraser@localhost.localdomain e2e15eb8ee Update vnet kernel module to handle architectures without
socketcall(), for example Itanium, and some small changes
to be compatible with changed kernel interfaces.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2006-09-23 14:01:53 +01:00
kfraser@localhost.localdomain 4f76579fdb [QEMU] Fix build on some distros (e.g., FC6T3).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-23 13:57:55 +01:00
atse@norwich.uk.xensource.com bfde0c9ad7 [XM] Fix argument parsing for dump-core subcommand
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-23 13:39:32 +01:00