aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ioemu/vl.c
Commit message (Collapse)AuthorAgeFilesLines
...
* xc_map_foreign_pages(), a convenient alternative to xc_map_foreign_batch()kfraser@localhost.localdomain2007-09-071-1/+1
| | | | | | | | | xc_map_foreign_batch() can succeed partially. It is awkward to use when you're only interested in complete success. Provide new xc_map_foreign_pages() convenience function for that kind of use. Also convert two obvious calls to use it. Signed-off-by: Markus Armbruster <armbru@redhat.com>
* [HVM] Control qemu's state-save via xenstore, instead of SIGUSR1Tim Deegan2007-07-241-27/+6
| | | | | | | This lets us verify that qemu has indeed stopped processing before we start saving guest memory. Also allow qemu to continue processing after the save has happened, instead of exiting immediately. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* hvm: Re-introduce LPT1 device in ACPI tables.kfraser@localhost.localdomain2007-07-111-5/+0
| | | | | | | | | Once the presence of LPT1 is baked into a Windows guest, it gets upset if it is subsequently removed. Hence we add the 'LTP1' device object back into the ACPI DSDT, and remove IRQ 7 from the list of IRQs usable by the PCI-ISA links. Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: Fix ioemu Qcow support.kfraser@localhost.localdomain2007-06-201-0/+12
| | | | | | | | | | | | | | | | | | | | | | 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>
* [QEMU] Fix up ioemu timer save/restore after version changes.Tim Deegan2007-06-111-1/+1
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* qemu: Use domid in qemu log name. Can be related back to domain namekfraser@localhost.localdomain2007-06-051-4/+4
| | | | | | | | | or uuid via xend logs, less unique than pids to prevent excessive number of log files hanging around, yet not immediately reused (unlike e.g., after domain crash or reboot) where previous log file is immediately overwritten. Not using domain names in logs avoids and chance of unprintable charcatres becoming embedded in filenames. Signed-off-by: Keir Fraser <keir@xensource.com>
* qemu: More care over filename string sizes.kfraser@localhost.localdomain2007-06-041-3/+4
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Use name instead of pid in QEMU logs.kfraser@localhost.localdomain2007-06-041-4/+6
| | | | | | | | | | | Change the logfile name generated by qemu-dm to use the pattern qemu-dm-[NAME].log instead of qemu-dm-[PID].log. This makes it easier for the adminsitrator to figure out which log corresponds to which guest (particularly after a crash where you no long know what PID the qemu-dm process for your guest had). It also prevents the number of log files from growing unbounded. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* hvm: Exceed maximum number of ioemu's NIC for VNIF.kfraser@localhost.localdomain2007-05-311-23/+23
| | | | | | | QEMU should ignore excess NICs instead of failing to initialise. Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com> Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
* ioemu: Attempt to setup tap interface up to 3 times.kfraser@localhost.localdomain2007-05-241-2/+4
| | | | | | | | | | | | | | | | As there is a (small) chance that vl.c:tap_open() fails (due to some sort of race-condition in the Linux kernel, which is noted as a bug in the source .../net/core/dev.c), we should attempt it again a couple of times if it doesn't succeed on the first attempt. I think three times in total is sufficient to avoid the problem. If tap_open() fails, qemu-dm will exit, which means that the domain dies - which is not such a good thing when attempting to restore a saved domain [of course, it would be even worse if it started, but didn't have networking - because there may not be a way to shut it down cleanly without network]. Signed-off-by: Mats Petersson <mats.petersson@amd.com>
* Fix HVM save/restore after upgrade to 0.90.Steven Hand2007-05-141-0/+72
| | | | Signed-off-by: Steven Hand <steven@xensource.com>
* [qemu] Remove unused -timeoffset option.Christian Limpach2007-05-101-10/+1
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu] Remove -vnclisten option since the same functionality is nowChristian Limpach2007-05-101-26/+10
| | | | | | available using the -vnc option. Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [ioemu] Update to qemu 0.90.Christian Limpach2007-05-091-354/+1396
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [ioemu] Consistently extend all block device operations to include scsi disks.Christian Limpach2007-04-111-5/+5
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* Provide the use of SCSI disks in HVM domains. Currently there is akfraser@localhost.localdomain2007-04-111-1/+1
| | | | | | | maximum of 7 scsi disks and an ide disk must still be used to boot. Signed-off-by: Natasha Jarymowycz <natasha@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm ioemu: Avoid accessing invalid pseudophysical addresses in HVMKeir Fraser2007-04-091-29/+71
| | | | | guest's memory map. Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm ioemu x86: Avoid assumptions about memory map.kfraser@localhost.localdomain2007-04-041-44/+34
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [hvm] Keep track of time offset between domain time and dom0 time.Christian Limpach2007-04-031-0/+3
| | | | | | | | | | On each rtc time update from the hvm domain, we send an ioreq request to qemu which then updates the time offset xenstore entry. The time offset is preserved across reboot and can be set on domain creation by setting the rtc_timeoffset variable in a config file. From: Andrei Petrov <andrei.petrov@xensource.com> Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [ioemu] Don't enable monitor or serial console on virtual consoles by default.Christian Limpach2007-03-281-3/+2
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* add usb device save/restore in qemuTim Deegan2007-03-141-0/+19
| | | | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* ioemu: Close file descriptors when forking processes.kfraser@localhost.localdomain2007-03-061-0/+8
| | | | | Just leave stdin/stdout/stderr (and possibly tap fd) open. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* hvm: Clean up console-information passing via xenstore.kfraser@localhost.localdomain2007-03-011-6/+59
| | | | | | | | | | | | | | | Each serial, parallel and monitor device in qemu that is connected to a pty creates a xenstore node of the form: <domain-path>/monitor/tty <domain-path>/serial/<n>/tty <domain-path>/parallel/<n>/tty In addition, serial/0 (com1) also registers its information at: <domain-path>/console/tty Also fix a realloc() failure memory leak. Signed-off-by: Ben Thomas <ben@virtualiron.com>
* Accelerate IDE PIO on HVM/IA64 [1/3]kfraser@localhost.localdomain2007-02-271-0/+5
| | | | | | Add a bufferring mechanism for IDE PIO in qemu. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* Remap PCI-ISA IRQ 6 to IRQ 7. Disable LPT1 by default and remove itskfraser@localhost.localdomain2007-02-261-1/+6
| | | | | | | | definition from the ACPI DSDT. This avoids conflict with FDC on IRQ6 (it is a bit more likely that someone will want to connect a floppy image to a guest than it is that anyone will ever care about parallel-port functionality). Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: unset_mm_mapping() for vga acceleration region should recalculatekfraser@localhost.localdomain2007-02-231-6/+6
| | | | | maxmem setting before freeing memory! Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Allow HVM guest to request invalidation of foreign mappings viakaf24@localhost.localdomain2007-01-271-5/+33
| | | | | an I/O port write. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* Merge with xen-ia64-unstable.hgkfraser@localhost.localdomain2007-01-181-0/+34
|\
| * [HVM] save restore: device model supportTim Deegan2007-01-181-0/+34
| | | | | | | | | | | | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> qemu's save/restore including vga acceleration support
* | merge with xen-unstable.hgawilliam@xenbuild2.aw2007-01-101-1/+1
|\|
| * [HVM] Add expansion-ROM boot support again.Tim Deegan2007-01-081-1/+1
| | | | | | | | | | Boot info now stored at 0x9ff00; registers saved in HDD load code. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
| * [HVM] Revert cset 13103 for now, as it is causing boot errors.Tim Deegan2006-12-221-1/+1
| | | | | | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
| * [HVM] Add expansion-ROM boot support to the ROMBIOSTim Deegan2006-12-201-1/+1
| | | | | | | | | | | | This is rudimentary support for parts of the BIOS Boot Specification, just enough to use Etherboot ROM images. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* | [IA64] Clean up VTi memory initialization logicawilliam@xenbuild2.aw2007-01-101-4/+0
|/ | | | | | | | | | | This patch makes the logic in setup_guest() more clear. domain_translate_gpfn_list() is now gone, so we can make memory initializtion code simple. Xend passes memory size which is a sum of normal memory size and GFW memory to QEMU and Libxc. This patch fixes this issue. Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
* [IOEMU] Locking needed to access mapcache.kfraser@localhost.localdomain2006-12-131-4/+3
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* merge with xen-unstable.hgawilliam@xenbuild2.aw2006-12-081-22/+100
|\
| * [HVM] qemu: Add guest address-space mapping cache.kfraser@localhost.localdomain2006-12-071-23/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | On IA32 host or IA32 PAE host, at present, generally, we can't create an HVM guest with more than 2G memory, because generally it's almost impossible for Qemu to find a large enough and consecutive virtual address space to map an HVM guest's whole physical address space. The attached patch fixes this issue using dynamic mapping based on little blocks of memory. Signed-off-by: Jun Nakajima <jun.nakajima@intel.com> Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* | [IA64] Fix Vtiawilliam@xenbuild2.aw2006-12-061-20/+12
|/ | | | | | | | Use new foreign page mapping interface Signed-off-by: Xu Anthony <Anthony.xu@intel.com> Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com> Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
* [XEN] Cleanups to phys/mach address handling.kfraser@localhost.localdomain2006-11-271-22/+0
| | | | | | | | | | 1. Balloon driver does not need to set M2P entry. This is done by the populate_physmap hypercall. 2. Xen now translates foreign mappings from GMFN->MFN. Tools are simplified because of this. Signed-off-by: Keir Fraser <keir@xensource.com>
* [QEMU] Add TCP_NODELAY to tcp connections exporting serial ports.PeterJohnston2006-11-221-0/+3
| | | | | | Signed-off-by: Steven Smith <sos22@cam.ac.uk>
* [IA64] Fix weird behaviour when configuring >3G memory for a VTI domain.kfraser@localhost.localdomain2006-11-141-3/+3
| | | | Signed-off-by, Anthony Xu < anthony.xu@intel.com >
* qemu error message for xc_domain_translate_gpfn_list() failure incorrectkaf24@localhost.localdomain2006-11-111-1/+2
| | | | Signed-off-by: Russell Blaine <russell.blaine@sun.com>
* [IA64][VMX] Fix 3G memory limit for VTi domain.kfraser@localhost.localdomain2006-11-091-5/+5
| | | | Signed-off-by : Zhang xiantao <xiantao.zhang@intel.com>
* [HVM] Move shadow initialisation into domain-creation hypercall.kfraser@localhost.localdomain2006-11-011-5/+4
| | | | | | | | | | | Allocate HVM guest memory in the libxc builder function rather than in xend. Clean up fall out from these changes. Todo: Fix ia64. Move PV builder to same model (it should allocate the memory rather than xend doing so -- then it can avoid using xc_get_pfn_list()). Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Fix Qemu-dm serial issues:kfraser@localhost.localdomain2006-10-301-1/+1
| | | | | | | | | | 1. Retry transmit via a polling timer if a byte cannot be written immediately to its destination. 2. Turn off output processing of raw serial lines. Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com> Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [IA64][HVM][QEMU] Add buffer IO mechanism for IA64/VTi domain.kfraser@localhost.localdomain2006-10-251-2/+8
| | | | Signed-off-by:Zhang xiantao <xiantao.zhang@intel.com>
* [HVM] Implement password authentication of VNC connections.kfraser@localhost.localdomain2006-10-201-0/+8
| | | | | | | | | | | | | The specification is as mentioned at http://lists.xensource.com/archives/html/xen-devel/2006-09/msg00666.html (However, password came to describe plain text) The difference is follows. - protocol_authtype() without the necessity was deleted. - The check on the protocol version was added. - And, some small modification. Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
* [SOLARIS] A couple of simple compile fixes for tools/ on Solaris.kfraser@localhost.localdomain2006-10-171-3/+3
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* [IOEMU] Fix argument to parse_host().kaf24@localhost.localdomain2006-10-131-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM/vncserver] Implement a 'vnclisten' option to limit the interfaceChristian Limpach2006-10-051-10/+25
| | | | | | | | | | | | | | | | | | that the VNC server from qemu listens on. Defaults to only listen on 127.0.0.1 The old behaviour (listen on all interfaces) can be restored, by - changing the system-wide default in /etc/xen/xend-config.sxp by adding: (vnc-listen '0.0.0.0') - changing individual domain config files by adding: vnclisten="0.0.0.0" Also allows specifying the hostname associated with an interface to limit to that interface. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>