aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ioemu
Commit message (Collapse)AuthorAgeFilesLines
...
* [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>
* hvm: e820 public header cleanup.Keir Fraser2007-06-102-3/+0
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* ioemu: save file name is snprintf()ed into a plenty big enough buffer.kfraser@localhost.localdomain2007-06-081-2/+2
| | | | | From: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Avoid using /tmp for qemu state files since an unprivileged userSteven Hand2007-06-081-1/+1
| | | | | | | | in dom0 could potentially exploit the fact. Thanks to Dan Berrange <berrange@redhat.com> Signed-off-by: Steven Hand
* ioemu: Tiny indentation fix.kfraser@localhost.localdomain2007-06-071-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* tools: Fix some type issues GCC 4.1.0 warnings.kfraser@localhost.localdomain2007-06-071-7/+18
| | | | | | | | FC5's gcc 4.1.0 can't make some files in tools/ due to its stronger type checking. From: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* qemu: Fix vnc port offset in xenstorekfraser@localhost.localdomain2007-06-061-1/+1
| | | | | | | | The new version of qemu uses 5900 instead of 0 as the port. There is no need to offset it by 5900 when writing out the console/vnc-port entry. Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
* [HVM] Prevent usb driver crashes in Windowskfraser@localhost.localdomain2007-06-061-2/+27
| | | | | | | | | | | | | | | Use atomic updates to read/write usb controller data. This can be done because: a) word copies on x86 are atomic b) The USB spec requires word alignment This will need to be enhanced once USB 1.2 is supported. Signed-off-by: Steve Ofsthun <sofsthun@virtualiron.com> Update to copy 'longword'-sized atoms. Signed-off-by: Keir Fraser <keir@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-042-24/+24
| | | | | | | | | | | 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>
* [NET] Remove netloop from network bridge init scripts.kfraser@localhost.localdomain2007-06-042-4/+60
| | | | | | The scripts are partly based on work by Daniel P. Berrange. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
* 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>
* Fix the very-slow-IDE-IO-speed issue of Qemu 0.90kfraser@localhost.localdomain2007-05-311-0/+6
| | | | | | | | | | | | | | | | | | | | | | c/s 15021 updated Qemu to 0.90. In the new Qemu's ide.c, asynchronous IO (AIO) is used to replace the previous DMA thread; here when an AIO request is completed, dom0 sends a signal SIGUSR2 to Qemu (see block-raw.c: qemu_aio_init(),raw_aio_setup()), then the signal interrupts the select() in main_loop_wait() at once, next, qemu_aio_poll() is called to reap a completed AIO request. However, in certain Linux distributions (i.e., x86_64 RHEL 4u4), if Qemu is spawned by the python script image.py of Control Panel, the SIGUSR2 of Qemu is blocked by default due to some reasons (i.e. it seems Python 2.3.4 has this issue; 2.4.2 is ok); so in most cases the select() in main_loop_wait() can only time out in 10ms, then the qemu_aio_poll() is called - this results in a very slow disk IO speed... This patch ensures aio_sig_num is unblocked when the AIO is used in Qemu 0.90. Signed-off-by: Dexuan Cui <dexuan.cui@intel.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>
* vnc: Fix Zenkaku_Hankaku and add deadkey keysymskfraser@localhost.localdomain2007-05-241-1/+25
| | | | Signed-off-by: Pat Campbell <plc@novell.com>
* Fix TPM support in HVM domainskfraser@localhost.localdomain2007-05-151-5/+20
| | | | | Signed-off-by: Joseph Cihula <joseph.cihula@intel.com> Signed-off-by: Peter Yang <peisen.yang@intel.com>
* 64-bit hvm on 32-bit dom0 - ioemu adjustmentskfraser@localhost.localdomain2007-05-151-18/+15
| | | | | | Don't mask off data bits when running 64-bit hvm guests on 32-bit dom0. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* Fix HVM save/restore after upgrade to 0.90.Steven Hand2007-05-141-0/+72
| | | | Signed-off-by: Steven Hand <steven@xensource.com>
* HVM save/restore: handle larger domain ids.Steven Hand2007-05-141-1/+1
| | | | Signed-off-by: Steven Hand <steven@xensource.com>
* hvm qemu: Fix for masking 64-bit operands broke 32-bit operands withKeir Fraser2007-05-131-2/+6
| | | | | 32-bit qemu. Issue spotted and initial fix provided by Dexuan Cui. Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: Fix ACPI shutdown, broken by my previous changeset.Keir Fraser2007-05-121-10/+14
| | | | | | | | | | | | | | | | | It turns out that although PIIX4 hardware defines the S5 type code to be 000, all OSes will discover the correct code by evlauating an \_Sx object in the ACPI DSDT. And we set the type code in that object to be 111. So this patch keeps the other cleanups made to the piix4acpi.c file, but switches back to checking for code 111. It also makes it clearer in both the ioemu code and in the dsdt source code where these magic numbers come from. Let's hope noone actually has the true PIIX4 type codes hardcoded (it's highly doubtful that anyone would). Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm qemu: Fix write parameter masking for 64-bit guests.Keir Fraser2007-05-121-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: Fix emulation of PIIX4 PMCNTRL register for soft power-off.Keir Fraser2007-05-121-66/+16
| | | | | The type code needs to be 000, not 111 (which is a reserved value). Signed-off-by: Keir Fraser <keir@xensource.com>
* [qemu patches] Update patches upto changeset 15040:090ca10cb543.Christian Limpach2007-05-116-86/+75
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu] Fix ia64 after removal of ia64_intrinsic.h.Christian Limpach2007-05-112-2/+5
| | | | | From: Alex Williamson <alex.williamson@hp.com> Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu patches] Update patches upto changeset 15036:dfbbb4d3b0dd.Christian Limpach2007-05-103-236/+191
| | | | | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com> --HG-- rename : tools/ioemu/patches/vnc-numpad-handling => tools/ioemu/patches/vnc-keypad-handling
* [qemu] Fix keypad handling for VNC.Christian Limpach2007-05-103-1/+106
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu patches] Update patches upto changeset 15032:8f510bf078c7.Christian Limpach2007-05-104-251/+13
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu patches] Update patches upto changeset 15032:8f510bf078c7.Christian Limpach2007-05-1025-793/+300
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu] Remove atomic_set_bit, atomic_clear_bit and ia64_intrinsic.h and itsChristian Limpach2007-05-103-322/+5
| | | | | | users. Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu] Remove unused -timeoffset option.Christian Limpach2007-05-104-46/+10
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu] Remove -vnclisten option since the same functionality is nowChristian Limpach2007-05-103-36/+19
| | | | | | available using the -vnc option. Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu] Remove no longer needed change.Christian Limpach2007-05-101-4/+0
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu] Fix shift key for non-graphical vnc displays (like the monitor).Christian Limpach2007-05-101-1/+1
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu] Sync data to disk if write cache is disabled.Christian Limpach2007-05-101-0/+3
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu] Fix typo in previous ia64 build fix (my fault).Christian Limpach2007-05-091-1/+1
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu] Fix ia64 build.Christian Limpach2007-05-091-0/+1
| | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* [ioemu] Update to qemu 0.90.Christian Limpach2007-05-09252-9323/+18889
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu patches] Update patches upto changeset 15013:b78d611d1b.3.1.0-branchedChristian Limpach2007-05-081-5/+5
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* ioemu: Fix typo in the ISO_Level3_Shift patch which prevents AltGr key working.Keir Fraser2007-05-071-1/+1
| | | | Signed-off-by: Cedric Schieli <cschieli@gmail.com>
* [qemu patches] Update patches upto changeset 14986:1ddaf2650633.Christian Limpach2007-05-0368-1303/+3762
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* Handle ISO_Level3_Shift keysym as AltGr in ioemu/vncfb.kfraser@localhost.localdomain2007-04-302-0/+2
| | | | | | | | | | | | | The modern (xkb) way of mapping the AltGr key (113) seems to be using the ISO_Level3_Shift keysym (0xFE03) instead of the obsolete Mode_switch keysym (0xFF7E). This patch let the "keysym to scancode" translator handle the ISO_Level3_Shift correctly, enabling the use of characters like ~#{[|`\^@]} on a french keyboard. From: Cedric Schieli <cschieli@gmail.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm ioemu: Fix SCSI initialisation after c/s 14942.kfraser@localhost.localdomain2007-04-261-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm ioemu: Do not initialise the LSI SCSI interface if no SCSI discskfraser@localhost.localdomain2007-04-251-4/+5
| | | | | are attached to the guest. Signed-off-by: Keir Fraser <keir@xensource.com>
* [qemu-dm] Check for null pointer in dma handler function pointer.Christian Limpach2007-04-241-0/+2
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu-dm] Add bounds checks to block device reads/writes.Christian Limpach2007-04-241-0/+4
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [qemu-dm] Add bounds checks for cirrus bitblit memory accesses.Christian Limpach2007-04-243-39/+101
| | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* qemu: Do not kill ioemu if undefined LSI-SCI registers are read. Justkfraser@localhost.localdomain2007-04-241-0/+5
| | | | | return zeroes. This path is triggered by ASPI8DOS.SYS in DRDOS. Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: Fix a bug in the mmio emulation of SUB instruction.kfraser@localhost.localdomain2007-04-161-0/+18
| | | | Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>