aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix xm save command for a inactive managed domain.kfraser@localhost.localdomain2007-07-092-8/+6
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Better error message for 'xm sysrq' on inactive domain.kfraser@localhost.localdomain2007-07-091-0/+3
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Specify -fno-strict-aliasing in root build config file.Keir Fraser2007-07-074-4/+2
| | | | | | | | Fixes correctness issues with xenstored and gcc-4.2. Original patch by Charles Coffing <ccoffing@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: Add global default keymap settingkfraser@localhost.localdomain2007-07-064-0/+18
| | | | | | | Add global default keymap setting to be used when a VM does not have a keymap configuration set. Signed-off-by: Pat Campbell <plc@novell.com>
* Extended the physinfo sysctl to export NUMA cpu_to_node topology info.kfraser@localhost.localdomain2007-07-068-26/+106
| | | | | | Print this in 'xm info'. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Revert 15471:7ac7f147241405af83e7a9d748cf7b01279734fckfraser@localhost.localdomain2007-07-061-4/+2
| | | | | | | | Block-device specifiers in ioemu can contain colons, so skipping always past the first colon is not a good idea. Better solutions are in the pipeline to solve the blktap issues. Signed-off-by: Keir Fraser <keir@xensource.com>
* [ACM] Support for initial unicode handling of strings in policies.kfraser@localhost.localdomain2007-07-061-6/+10
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Export debugger attached state to xc API.kfraser@localhost.localdomain2007-07-062-1/+2
| | | | Signed-off-by: Tristan Gingold <tgingold@free.fr>
* xend: Fix xm block/network-attach command for inactive managed domainkfraser@localhost.localdomain2007-07-061-3/+12
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* xend: Fix op_domain_sched_credit_set() in SrvDomain.pykfraser@localhost.localdomain2007-07-061-1/+2
| | | | | This patch adds "cap" into op_domain_sched_credit_set(). Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* hvm: Fix vnc keymap for Japanese keyboards.kfraser@localhost.localdomain2007-07-062-1/+4
| | | | | Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com> Signed-off-by: Junko Ichino <ichino.junko@jp.fujitsu.com>
* Improve xm sched-credit command for inactive managed domainskfraser@localhost.localdomain2007-07-062-17/+34
| | | | | Allows to change the scheduler parameters of inactive managed domains. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* hvm: Allow blktap to be able to be booted as system volume for PV-on-HVMkfraser@localhost.localdomain2007-07-061-2/+4
| | | | | | | | | | | | | | | | When blktap was booting system volume, PV-on-HVM domain was not able to be started. The configuration file is specified as follows. disk = [ 'tap:aio:/xen/test/rhel5ga_full.img,hda,w' ] The error occurred by the initialization of system volume in qemu-dm. qemu: could not open hard disk image 'aio:/xen/test/rhel5ga_full.img' Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com> Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com> Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] ROMBIOS: reboot when we see Ctrl+Alt+DelTim Deegan2007-07-061-0/+4
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [HVM] update Etherboot ROM: new version, stricter DHCP compliance.Tim Deegan2007-07-052-2/+3
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* xenstore: Remove broken and unmaintained test code.kfraser@localhost.localdomain2007-07-0329-4418/+5
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* xend: Save modified scheduler params of managed guests to config.sxp.kfraser@localhost.localdomain2007-07-031-0/+1
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* xendomains: Better sanity checking of potetntial save records.kfraser@localhost.localdomain2007-07-031-13/+16
| | | | Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
* vmxassist: Decode mov instruction in protected to real mode in vmxassist.kfraser@localhost.localdomain2007-07-031-93/+87
| | | | | Also some clean up. Signed-off-by: Xin Li <xin.b.li@intel.com>
* hvm: Fix keymap for Windows keys.kfraser@localhost.localdomain2007-07-031-2/+2
| | | | | Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com> Signed-off-by: Junko Ichino <ichino.junko@jp.fujitsu.com>
* Fix 15435:ab95b9764b20.Ian Campbell2007-07-021-0/+7
| | | | | | | The changeset did not consider about ":cdrom" and "ioemu:" of a disk definition. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Use 32bit operand and address during VMXAssist protected to real.Keir Fraser2007-07-022-12/+52
| | | | Signed-off-by: Xin Li <xin.b.li@intel.com>
* xm: Fix xm block-detach error message duplication.Keir Fraser2007-07-011-6/+6
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* xm: Fix a typo for xm network-detach.Keir Fraser2007-07-011-1/+1
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Make network-bridge fail on NFS or iscsi root.Keir Fraser2007-07-011-0/+12
| | | | | | | 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>
* Remove unused VMXAssist test code.Keir Fraser2007-07-014-159/+1
| | | | Signed-off-by: Xin Li <xin.b.li@intel.com>
* xendomains: Ignore 'lost+found' when finding saved dom images.Keir Fraser2007-07-011-2/+4
| | | | Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
* xend: Pass information to user when failing migrate due to PCI dev.Keir Fraser2007-07-012-1/+5
| | | | | | | 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>
* xend: Don't allow migrate with assigned PCI devs.Keir Fraser2007-07-011-0/+3
| | | | | | | | | | | 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>
* Add a duplication definition check for devices.Ian Campbell2007-06-291-15/+79
| | | | | | | | | 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>
* xend: Fix irq-permissions setting during domain creation.Keir Fraser2007-06-281-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* More getcpuinfo sysctl cleanup.Keir Fraser2007-06-272-13/+20
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* xenconsoled: improve robustness of logfile handlingKeir Fraser2007-06-271-14/+22
| | | | | | | | | | | | | | | 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>
* Add new sysctl to return runtime information about physical CPU utilization.Steven Hand2007-06-272-0/+21
| | | | Signed-off-by: Steven Hadn <steven@xensource.com>
* ioemu: Fix ifdef __x86_64__kfraser@localhost.localdomain2007-06-251-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* libxenguest: Add another range check to dom restore.kfraser@localhost.localdomain2007-06-211-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* libxenguest: Add missing range-check on count field read from a domainkfraser@localhost.localdomain2007-06-211-3/+4
| | | | | save/restore file. Signed-off-by: Keir Fraser <keir@xensource.com>
* tools: Adjust tools' path calculation.kfraser@localhost.localdomain2007-06-202-2/+16
| | | | | | | | | 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>
* tools: Create directory /var/lib/xen at install target.kfraser@localhost.localdomain2007-06-201-0/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix xm vcpu-set command for managed domains, to take effect immediately.kfraser@localhost.localdomain2007-06-201-1/+1
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* hvm: Ensure ioemu sees media-change events even when media filenamekfraser@localhost.localdomain2007-06-201-0/+5
| | | | | remains constant my writing a dummy blank string first. Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
* hvm: Fix ioemu Qcow support.kfraser@localhost.localdomain2007-06-202-1/+13
| | | | | | | | | | | | | | | | | | | | | | 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>
* blktap: Add fallback code to blktap for missing poll-on-aio support.kfraser@localhost.localdomain2007-06-195-51/+265
| | | | | | | | | | | | | | | | | | | | | 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>
* tools: Allow xendomains to handle domain names >16 characterskfraser@localhost.localdomain2007-06-191-12/+21
| | | | | | | | | | 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>
* ioemu: Assembler memcpy() for x86, and lowest-common-denominatorkfraser@localhost.localdomain2007-06-191-9/+31
| | | | | | memcpy() function for all others, avoiding noisy longword copies on ia64. Signed-off-by: Keir Fraser <keir@xensource.com>
* tools: Fix compiler warning.kfraser@localhost.localdomain2007-06-191-1/+1
| | | | | From: Charles Coffing <ccoffing@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* xend: Revert 15252:31ee1768e911 ("Make device detach wait for detach to ↵Keir Fraser2007-06-163-75/+5
| | | | | | | | | | | | 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>
* merge with xen-unstable.hgAlex Williamson2007-06-157-46/+75
|\
| * xend: Replace tabs with 8 whitespaces in DevController.pyKeir Fraser2007-06-151-16/+16
| | | | | | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
| * Update Solaris balloon ioctl valueKeir Fraser2007-06-151-5/+5
| | | | | | | | | | | | | | 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>