Commit Graph
3825 Commits
Author SHA1 Message Date
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
Steven Smith 97cb77381a [HVM][VNC] Make sure that the vnc viewer gets the right resolution when it
connects.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-22 20:20:57 +01:00
atse@norwich.uk.xensource.com 3918261f47 [XM][ACM] Add try,catch back to main() for dry-run
Signed-off-by: Alastair Tse <atse@xensource.com>
Signed-off-by: Bryan D. Payne <bryan@thepaynes.cc>
2006-09-22 17:46:32 +01:00
atse@norwich.uk.xensource.com 3b61bd783a [XM] Move 'xm sysrq' into main.py
* There's not need for sysrq to be in its own file.
* Bonus advantage: can use arg_check rather than gopts for argument
  validation.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-22 16:32:30 +01:00
atse@norwich.uk.xensource.com cef39afbe9 [XEND] Do not attempt core dump to directories.
- Abort core dump if destination is a directory.
- Throw appropriate XendError expection on failure.
Reported by Masaki Kanno <kanno.masaki@jp.fujitsu.com>.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-22 16:20:36 +01:00
atse@norwich.uk.xensource.com 15473a42cf [XEND] Remove hard tabs from destroyDevice()
Reported by Hollis Blanchard.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-22 15:56:19 +01:00
atse@norwich.uk.xensource.com 8554ba8909 [XEND] Check for invalid memory sizes.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-09-22 15:36:11 +01:00
atse@norwich.uk.xensource.com 1681108c98 [XM] Text wrapping fix, xm create --help_config fix.
* Fix text wrap so it doesn't chop off last word in help message for
  certain cases.
* Fix handling of xm create --help_config
* Remove redundant gopts.usage() call.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-22 15:06:00 +01:00
Steven Hand f0cb8942c4 Fix vmxassist to boot Vista.
Currently, guest_linear_to_real to_real() in vmxassist assumes guest HVM
use 2 level page table when entering protect mode with PG enabled. Vista
uses 3 level (PAE enabled) page table, so memory addressing is wrong.
This patch fixes it, by considering all 4 possible cases.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-09-22 12:14:22 +01:00
atse@norwich.uk.xensource.com f88384ec46 [XM] Error handling cleanup
Introducing an OptionError exception to be used by all xm subcommands
to signal an error in the arguments. "xm" will catch these and output
the appropriate error and usage message.

Detailed Changes:

main.py:
 *  Cleaned up imports and moved warning filter outside of
    import block.
 *  Converted usage parameters and description to a python
    dict rather than strings to enable better usage help
    formatting.
 *  Removed unused list_label domain command.
 *  Added cmdHelp() prints out usage message for any command
 *  Added shortHelp() prints out the default help message when
    xm is invoked with no arguments.
 *  Added longHelp() prints out long help message when invoked
    with xm --help or xm help.
 *  Added extra optional paramter to getDomains() so we can
    tell Xend not to poll devices. This will speed up xm list.
    (PENDING changes to Xend itself.)
 *  Changed all references where 'dom' actually means 'domid'
    to use the correct name.
 *  Changed 'xm list' header format to use printf formatting style.
 *  Renamed xm_subcommand to xm_importcommand so it is more
    clear what it is doing (all xm commands are subcommands!)
 *  Moved cpu_make_map() inside xm_vcpu_pin as an anonymous func.
 *  Use OptionError whenever an invalid option is detected in xm.
 *  Added proper catch and error printing for XendError and
    OptionErrors in main().

addlabel.py:
cfgbootpolicy.py:
dry-run.py:
dump-policy.py:
get-label.py:
labels.py:
loadpolicy.py:
makepolicy.py:
rmlabel.py:
resources.py:
 *  Replaced usage() with help() that is called from main.py
 *  Replaced usage() invokation with raising OptionError

opts.py:
 *  Added very simple wrap() function that behaves differently
    to textwrap.wrap()
 *  Added OptionError()
 *  Replaced the string representation of Opt, Opts to output
    a nicely formatted usage message.
 *  Changed class Opts itself will throw approriate OptionErrors.
 *  Changed set_bool to recognise 'y' and 'n' as valid input

create.py:
 *  Some whitespace and column width cleanup.
 *  throws OptionError if encounters option error.

migrate.py:
 *  Replace usage() message with the string representation of
    gopts.

sysrq.py:
 * Replace usage message with throwing OptionErrors

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-22 11:37:31 +01:00
Steven Smith bb53feb6ec [HVM][VNC] Fix bug in the VNC copyrect implementation which crept in
with the update backoff patch.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-22 09:12:00 +01:00
Christian Limpach a744b96a36 [qemu patches] Refresh.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-09-21 19:33:51 +01:00
Christian Limpach 6128a8f765 [qemu patches] Update patches for changeset 11562:449dcaff2551.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-09-21 19:33:07 +01:00
Christian Limpach da9db9c776 [qemu patches] Update patches for changeset 11561:c742b2ae920c.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-09-21 19:28:35 +01:00
Christian Limpach fc6241f65a [qemu patches] Update patches for changeset 11554:39aaa54756db.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-09-21 18:58:17 +01:00
Steven Smith fc99b58762 [HVM][VNC] Add a backoff feature to the vnc server, so that if it detects
that the display hasn't changed for a while it starts scanning more slowly.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-21 18:29:48 +01:00
Steven Smith 15c05dca32 [HVM] Reduce VNC overhead, by (a) only scanning framebuffer when a client
is connected, and (b) fixing an overflow bug in the scanning code which
prevented the dirty bit from ever getting cleared.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-21 17:56:14 +01:00
Tim Deegan 76ccc6e959 Merge 2006-09-21 15:04:29 +01:00
Tim Deegan 1c80d1b0a3 [XEND] Don't prepend '/dev/' to any absolute path.
Check for '/' rather than '/dev/' when translating e.g. 'hda'->'/dev/hda'
Signed-off-by: Tim Deegan <tim.deegan@xensource.com>
2006-09-21 15:00:50 +01:00
Tim Deegan fbbf99bec9 [XEND] split command-line arguments to the bootloader script properly.
Signed-off-by: Tim Deegan <tim.deegan@xensource.com>
2006-09-21 14:58:01 +01:00
Tim Deegan d456d49ce6 Pygrub: add /var/lib/xen to the install tree.
(Pygrub uses /var/lib/xen to store fifos and image files.)
Signed-off-by: Tim Deegan <tim.deegan@xensource.com>
2006-09-21 14:56:28 +01:00
Tim Deegan 795a172334 Pygrub: stop the FS identification code from leaking open fds.
Signed-off-by: Tim Deegan <tim.deegn@xensource.com>
2006-09-21 14:55:02 +01:00
Emmanuel Ackaouy 4c83c4918a This patch adds value checking of sched-credit xm options.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-09-21 14:10:56 +01:00
Christian Limpach 212efff62a [tools] Increases some of the timeouts
since e.g. stealing the hotplug lock after five seconds is completely insane.

From: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-09-21 13:53:49 +01:00
Christian Limpach fa4cdd4564 [qemu patches] Refresh qemu-pci patch without -p3.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-09-21 11:33:38 +01:00
Christian Limpach 3a70909bda [qemu patches] Update patches for changeset 11551:f872300b672f.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-09-21 11:33:00 +01:00
Steven Smith 5759c4fb6b [HVM] Use the right, PCI SIG assigned, vendor ID for xensource rather than
just making one up.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-21 11:15:13 +01:00
kfraser@localhost.localdomain 0a706be1ab [XENMON] Add argument check of "--ms_per_sample" option.
If a value of "--ms_per_sample" option is larger than a value of
"--time" option, xenmon may generate no log file. So, too large
"--ms_per_sample" should be treated as an error.

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

  xenmon.py: error: option --ms_per_sample: too large (> 1000 ms)

# Notice that a unit of "--time" is a second.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2006-09-19 11:08:11 +01:00
kfraser@localhost.localdomain 2197970752 Merge with xenppc-unstable-merge.hg 2006-09-19 09:40:26 +01:00