aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ioemu
Commit message (Collapse)AuthorAgeFilesLines
...
* [ioemu] Consistently extend all block device operations to include scsi disks.Christian Limpach2007-04-114-10/+10
| | | | 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-114-109/+122
| | | | | | | 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-093-64/+76
| | | | | guest's memory map. Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Save/restore: qemu-dm should calculate bitmap size from maximum gpfnTim Deegan2007-04-051-6/+2
| | | | | like xc_save does. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* PV-on-HVM: Add new ioreq 'invalidate' for zapping ioemu-dm mapccahekfraser@localhost.localdomain2007-04-052-9/+6
| | | | | | | | | | | | | after balloon operations in an HVM guest. This removes the I/O port hack from the guest OS, and from ioemu. Also we flush on reservation *increases* as well as decreases. This is necessary until qemu-dm can demand-fault page mappings into existing valid buckets. Signed-off-by: Steven Hand <steven@xensource.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: x86 ioemu-dm does not need a memory-size parameter on the command line.kfraser@localhost.localdomain2007-04-042-11/+5
| | | | 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>
* Remove hvm_drain_io() hypercall, simplify qemu main loop and do notkfraser@localhost.localdomain2007-04-041-46/+15
| | | | | | pause the domain on reboot (not necessary and defeats new deferred shutdown logic). Signed-off-by: Keir Fraser <keir@xensource.com>
* [hvm] Keep track of time offset between domain time and dom0 time.Christian Limpach2007-04-034-0/+111
| | | | | | | | | | 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>
* [HVM] Save/restore: fix missing return code in USB restoreTim Deegan2007-03-291-0/+1
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [HVM] Save/restore: Allow save/restore of multiple NICsTim Deegan2007-03-293-12/+16
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xenource.com>
* [HVM] Save/restore: backport pcnet save/restore from qemu tip.Tim Deegan2007-03-291-0/+56
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [HVM] Save/restore: Save the ACPI PM control register in qemuTim Deegan2007-03-291-0/+18
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@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>
* [ioemu] Revert 14585:3375391fb0c9 since this removes useful functionality.Christian Limpach2007-03-282-13/+0
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* hvm: Remove access to QEMU monitor in VNC serverkfraser@localhost.localdomain2007-03-272-0/+13
| | | | | | | | This fixes a RHEL5 errata and CVE-2007-0998. The monitor is still accessible in debug builds of ioemu (debug=y). Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* [HVM] Intercept ACPI pm-timer registersTim Deegan2007-03-261-230/+13
| | | | | | | Bring the PM1a_STS and PM1a_EN registers into Xen and use them to deliver SCI to the guest before it sees the MSB of the pm-timer change. Also correct some of the semantics of the registers. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [ioemu] Cleanup media change code.Christian Limpach2007-03-191-31/+21
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [QEMU] fix typo in 14405Tim Deegan2007-03-161-1/+1
| | | | Signe-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* hvm ioemu: Add support for IOREQ_TYPE_XCHG in qemu-dm.kfraser@localhost.localdomain2007-03-161-0/+15
| | | | | From: Trolle Selander <trolle.selander@gmail.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM][QEMU] Save/restore: enable HVM live migrationTim Deegan2007-03-162-1/+142
| | | | | by getting page-dirtying bitmaps from qemu-dm as well as from xen. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* add usb device save/restore in qemuTim Deegan2007-03-146-0/+162
| | | | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* [HVM] Save/restore: make sure all ioreqs are gone when a domain is savedTim Deegan2007-03-083-8/+71
| | | | | by pausing the domain and pulling them through. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [HVM] Save/restore: back-port IDE controller save routine from current qemu.Tim Deegan2007-03-081-0/+115
| | | | | | Also, send an interrupt and an error code to the guest on restore if we dropped an active request when we saved. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* tools: Clean up use of 'install' command.kfraser@localhost.localdomain2007-03-071-4/+4
| | | | | | | | | - convert raw "install" command to use $(INSTALL) - convert some $(INSTALL) to $(INSTALL_DATA) as appropriate - modify the specific $(INSTALL) definitions to use -p. Original patch by Ben Thomas <ben@virtualiron.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* ioemu: Remove use of 'echo -c' in script.kfraser@localhost.localdomain2007-03-071-2/+1
| | | | | | | I've no idea what it does, and it doesn't appear to be valid on some systems. Use a more generic approach. Signed-off-by: Ben Thomas <ben@virtualiron.com>
* ioemu: Close file descriptors when forking processes.kfraser@localhost.localdomain2007-03-062-1/+15
| | | | | 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>
* hvm/ia64: Fix IDE PIO acceleration.kfraser@localhost.localdomain2007-03-011-2/+2
| | | | Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* Use stat to poll on phantom device until it becomes readyWim Colgate2007-02-281-29/+20
| | | | Signed-off by Wim Colgate <wim@xensource.com>
* Accelerate IDE PIO on HVM/IA64 [1/3]kfraser@localhost.localdomain2007-02-272-0/+130
| | | | | | 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, vtpm: Fix wait for an outstanding response.kfraser@localhost.localdomain2007-02-191-0/+2
| | | | | | | Post the interrupt upon reception of the response and adapt the state machine. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [VTPM] Add a missing initialization of a state variable in the TISkfraser@localhost.localdomain2007-02-151-0/+1
| | | | | | | device model so that the first response received after a resume is not aborted. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [blktap] Allow HVM booting from blktap device(s)wim@xen-wim.site2007-02-071-1/+59
| | | | Signed-off-by: wim colgate <wim@xensource.com>
* hvm: Add PCI subsystem ID to emulated devices.kfraser@localhost.localdomain2007-02-073-2/+12
| | | | | | | This patch adds the PCI Subsystem ID 5853:0001 to the virtual devices emulated by qemu (ide, nic, vga). Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
* [TPM] TIS dm suspend code fixkfraser@localhost.localdomain2007-02-061-4/+9
| | | | | | | This fixes a bug in the TPM TIS device model's state suspend code and adds some casts to variables to avoid compiler warnings. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [QEMU] Unmap video RAM before telling the guest to free it.Tim Deegan2007-02-051-15/+14
| | | | | | This avoids a lot of "freeing in-use page" errors. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [HVM] Allow HVM guest to request invalidation of foreign mappings viakaf24@localhost.localdomain2007-01-274-24/+54
| | | | | an I/O port write. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* [QEMU] Clear TD status field explicitly when it's fetched.kfraser@localhost.localdomain2007-01-241-0/+8
| | | | | | | | | | | | | | | | | In current Qemu-dm, UHC will set some status bits of TD in status updating stage, but never process the status bit if relevant condition does not occur, leaving it as it is. When a TD is fetched with some status bits are set to 1, it will return to Guest OS with these bits set to 1 even this TD is executed successfully. Some Windows OS, e.g. Windows 2000, will check status bits of TD in UHC interrupt routine, treat it as a unsuccessful one if some status bits are set to 1 and discard the data. Other Windows OS just check USBSTS of UHC, ignoring status field of TD unless the value of USBSTS indicates occurrence of error. With this patch, USB mouse/tablet in Windows 2000 works correctly. Signed-off-by: Xinmei Huang <xinmei.huang@intel.com>
* Merge with xen-ia64-unstable.hgkfraser@localhost.localdomain2007-01-185-1/+106
|\
| * [ioemu] fix build - prototype for static function needs to be static.Christian Limpach2007-01-181-1/+2
| | | | | | | | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
| * [HVM] save restore: device model supportTim Deegan2007-01-185-1/+105
| | | | | | | | | | | | 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-1023-328/+401
|\|
| * [HVM] Add expansion-ROM boot support again.Tim Deegan2007-01-082-1/+3
| | | | | | | | | | Boot info now stored at 0x9ff00; registers saved in HDD load code. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
| * [IOEMU] Process reset requests before returning control to the guest.Ian Campbell2007-01-031-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | Since 12899:4ae4bdee00e Xen only pays attention the first shutdown or reboot request for a domain. When a reset if requested we need to make the SCHEDOP_remote_shutdown hypercall before we return control to the guest so that it wins the "race" with the heuristic in xen/arch/x86/hvm/hvm.c:hvm_vcpu_down() which causes a powerdown. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * [QEMU] Fix a number of signedness issues plus a typo in the version checking ↵kaf24@localhost.localdomain2006-12-282-28/+27
| | | | | | | | | | | | in vnc.c. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * [HVM] Revert cset 13103 for now, as it is causing boot errors.Tim Deegan2006-12-222-3/+1
| | | | | | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
| * [QEMU] Align VGA ram allocationTim Deegan2006-12-212-3/+9
| | | | | | | | | | This makes the SSE-optimized vram_dirty() safe again. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>