- Jan 24, 2011
-
-
Aurelien Jarno authored
The rule is: - don't save PC if the exception is only triggered by softmmu. - save PC if the exception can be triggered by an helper. Fix a 64-bit kernel crash when loading modules. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> (cherry picked from commit b835e919)
-
- Dec 28, 2010
-
-
Aurelien Jarno authored
Since commit 5a4bb580, Xorg crashes on a Debian Etch image. The commit itself is fine, but it triggers a bug due to wrong computation of flags for udiv(cc) and sdiv(cc). This patch only compute cc_src2 for the cc version of udiv/sdiv. It also moves the update of cc_dst and cc_op to the helper, as it is faster doing it here when there is already an helper. Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com> (cherry picked from commit 0fcec41e) Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
- Dec 27, 2010
-
-
Aurelien Jarno authored
The translation of REVSH shifted the low byte 8 steps left before performing an 8-bit sign extend, causing this part of the expression to alwas be 0. Reported-by:
Johan Bengtsson <teofrastius@gmail.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> (cherry picked from commit 1a855029) Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
- Dec 26, 2010
-
-
Paul Brook authored
Teach Makefile that cmd.o depends on a generated header (specifically config-host.h). Signed-off-by:
Paul Brook <paul@codesourcery.com> (cherry picked from commit 6e14404a) Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
- Oct 14, 2010
-
-
Anthony Liguori authored
Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
- Oct 12, 2010
-
-
Michael S. Tsirkin authored
fix up errors returned to include errno, not just -1 Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> (cherry picked from commit c8852121)
-
Michael S. Tsirkin authored
When using irqfd with vhost-net to inject interrupts, a single evenfd might inject multiple interrupts. Implementing this is much easier with a single per-device callback to set guest notifiers. Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> (cherry picked from commit 54dd9321)
-
Stefan Weil authored
I reviewed the latest sources of Linux, FreeBSD and NetBSD. They all reset the multiple IA bit (multi_ia in BSD) to zero, but I did not find code which sets this bit to one (like it is done by some routers). Running Windows guests also did not set this bit. Intel's Open Source Software Developer Manual does not give much information on the semantics related to this bit, so I had to guess how it works. The guess was good enough to make the router emulation work. Related changes in this patch: * Update naming and documentation of the internal hash register. It is not limited to multicast, but also used for multiple IA. * Dump complete configuration register when debug traces are enabled. * Debug output when multiple IA bit is set during CmdConfigure. * Debug output when frames are received because multiple IA bit is set, or when they are ignored although it is set. Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Stefan Weil <weil@mail.berlios.de> Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> (cherry picked from commit 010ec629)
-
Michael S. Tsirkin authored
Move all of vhost-net start/stop logic to a single routine, and call it from everywhere. Additionally, start/stop vhost-net on link up/down: we should not transmit anything if user asked us to put the link down. Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Acked-by:
Alex Williamson <alex.williamson@redhat.com>
-
Michael S. Tsirkin authored
As status is set to 0 on reset, invoke the relevant callback. This makes for a cleaner code in devices as they don't need to duplicate the code in their reset routine, as well as excercises this path a little more. In particular this makes it possible to unify vhost-net handling code with the following patch. Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> (cherry picked from commit e0c472d8)
-
Michael S. Tsirkin authored
With -netdev, virtio devices present offload features to guest, depending on the backend used. Thus, removing host netdev peer while guest is active leads to guest-visible inconsistency and/or crashes. As a solution, while guest (NIC) peer device exists, we prevent the host peer from being deleted. This patch does this by adding peer_deleted flag in nic state: if host device is going away while guest device is around, set this flag and keep a shell of the host device around for as long as guest device exists. The link is put down so all packets will get discarded. At the moment, management can detect that device deletion is delayed by doing info net. As a next step, we shall add commands that control hotplug/unplug without removing the device, and an event to report that guest has responded to the hotplug event. Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Acked-by:
Alex Williamson <alex.williamson@redhat.com> (cherry picked from commit a083a89d)
-
Anthony Liguori authored
-
Yoshiaki Tamura authored
Setting fd = -1 to qemu_set_fd_handler2() causes bus error at FD_SET in main_loop_wait(). Signed-off-by:
Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit ac71103d)
-
Eduardo Habkost authored
The addition of memory stats reporting to the virtio balloon causes the 'info balloon' command to become asynchronous. This is a regression because in some cases it can hang the user monitor. This is an alternative to Adam Litke's patch. Adam's patch disabled the corresponding (guest-visible) virtio feature bit, causing issues for migration. Original discussion is available at: http://marc.info/?l=qemu-devel&m=128448124328314&w=2 Signed-off-by:
Eduardo Habkost <ehabkost@redhat.com> Acked-by:
Adam Litke <agl@us.ibm.com> Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com> (cherry picked from commit 07b0403d)
-
Anthony Liguori authored
This reverts commit 79368c81. Conflicts: block.c I haven't been able to come up with a solution yet for the corruption caused by unaligned requests from the IDE disk so revert until a solution can be written. Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 8b33d9ee)
-
Avi Kivity authored
QEMUFileBuffered stops writing when the underlying QEMUFile is not ready, and tells its producer so. However, when the underlying QEMUFile becomes ready, it neglects to pass that information along, resulting in stoppage of all data until the next tick (a tenths of a second). Usually this doesn't matter, because most QEMUFiles used with QEMUFileBuffered are almost always ready, but in the case of exec: migration this is not true, due to the small pipe buffers used to connect to the target process. The result is very slow migration. Fix by detecting the readiness notification and propagating it. The detection is a little ugly since QEMUFile overloads put_buffer() to send it, but that's the suject for a different patch. Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 5e77aaa0)
-
Artyom Tarasenko authored
According to scc_escc_um.pdf: - Reset Highest IUS must update irq status to allow processing of the next priority interrupt. - rx interrupt has always higher priority than tx on same channel The documentation only explicitly says that Reset Highest IUS command (0x38) clears IUS bits, not that it clears the corresponding interrupt too, so don't clear interrupts on this command. The patch allows SunOS 4.1.4 to use the serial ports Signed-off-by:
Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com> (cherry picked from commit 9fc391f8)
-
Artyom Tarasenko authored
The timer #0 is the system timer, so the timer #num_cpu is the timer of the last CPU, and it must be initialized in slavio_timer_reset. Don't mark non-existing timers as running. Signed-off-by:
Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com> (cherry picked from commit 5933e8a9)
-
Luiz Capitulino authored
Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com> (cherry picked from commit a18b2ce2)
-
Eduardo Habkost authored
The addition of memory stats reporting to the virtio balloon causes the 'info balloon' command to become asynchronous. This is a regression because in some cases it can hang the user monitor. This is an alternative to Adam Litke's patch. Adam's patch disabled the corresponding (guest-visible) virtio feature bit, causing issues for migration. Original discussion is available at: http://marc.info/?l=qemu-devel&m=128448124328314&w=2 Signed-off-by:
Eduardo Habkost <ehabkost@redhat.com> Acked-by:
Adam Litke <agl@us.ibm.com> Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com> (cherry picked from commit 07b0403d)
-
Luiz Capitulino authored
A number of changes I prefer to do in one shot: - Fix example - Small clarifications - Add multiple monitors example - Add 'Development Process' section Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit d29f3196)
-
Luiz Capitulino authored
Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 05705ce2)
-
Miguel Di Ciurcio Filho authored
This code was originally developed by Daniel P. Berrange <berrange@redhat.com> Signed-off-by:
Miguel Di Ciurcio Filho <miguel.filho@gmail.com> Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 0ec0291d)
-
Miguel Di Ciurcio Filho authored
Update the documentation of 'query-version' to output the string version broken down. Signed-off-by:
Miguel Di Ciurcio Filho <miguel.filho@gmail.com> Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 6597e1a6)
-
Alex Williamson authored
If we save more than once we need to reset the last block info or else only the first save has the actual block info and each subsequent save will only use continue flags, making them unloadable independently. Found-by:
Miguel Di Ciurcio Filho <miguel.filho@gmail.com> Signed-off-by:
Alex Williamson <alex.williamson@redhat.com> Acked-by:
Glauber Costa <glommer@redhat.com> Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 760e77ea)
-
Marcelo Tosatti authored
If ->write fails, declare migration status as MIG_STATE_ERROR. Also, in buffered_file.c, ->close the object in case of an error. Fixes "migrate -d "exec:dd of=file", where dd fails to open file. Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit e447b1a6)
-
Amit Shah authored
When a 'cont' is issued on a VM that's just waiting for an incoming migration, the VM reboots and boots into the guest, possibly corrupting its storage since it could be shared with another VM running elsewhere. Ensure that a VM started with '-incoming' is only run when an incoming migration successfully completes. A new qerror, QERR_MIGRATION_EXPECTED, is added to signal that 'cont' failed due to no incoming migration has been attempted yet. Reported-by:
Laine Stump <laine@redhat.com> Signed-off-by:
Amit Shah <amit.shah@redhat.com> Reviewed-by:
Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net> (cherry picked from commit 8e84865e)
-
Anthony Liguori authored
Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
- Oct 11, 2010
-
-
Anthony Liguori authored
Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
-
Avi Kivity authored
stat() fields can be more or less anything depending on configuration, cast explicitly to uint64_t to avoid printf() format mismatches. Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com> (cherry picked from commit ad0a4ac1)
-
Jes Sorensen authored
There is no need to check for dest < 0 or vector >= 0 as both are uint16_t. This should fix problems with broken build with aggressive compiler flags. Reported by Xudong Hao <xudong.hao@intel.com> Signed-off-by:
Jes Sorensen <Jes.Sorensen@redhat.com> Acked-by:
Cam Macdonell <cam@cs.ualberta.ca> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com> (cherry picked from commit 1b27d7a1)
-
Cam Macdonell authored
Signed-off-by:
Cam Macdonell <cam@cs.ualberta.ca> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com> (cherry picked from commit 3dcbf8f9)
-
Cam Macdonell authored
Signed-off-by:
Cam Macdonell <cam@cs.ualberta.ca> Signed-off-by:
Blue Swirl <blauwirbel@gmail.com> (cherry picked from commit 1fd74012)
-
Cam Macdonell authored
resend for bug fix related to removal of irqfd Support an inter-vm shared memory device that maps a shared-memory object as a PCI device in the guest. This patch also supports interrupts between guest by communicating over a unix domain socket. This patch applies to the qemu-kvm repository. -device ivshmem,size=<size in format accepted by -m>[,shm=<shm name>] Interrupts are supported between multiple VMs by using a shared memory server by using a chardev socket. -device ivshmem,size=<size in format accepted by -m>[,shm=<shm name>] [,chardev=<id>][,msi=on][,ioeventfd=on][,vectors=n][,role=peer|master] -chardev socket,path=<path>,id=<id> The shared memory server, sample programs and init scripts are in a git repo here: www.gitorious.org/nahanni Signed-off-by:
Cam Macdonell <cam@cs.ualberta.ca> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 6cbf4c8c)
-
Cam Macdonell authored
A non-migratable device should be removed before migration and re-added after. Signed-off-by:
Cam Macdonell <cam@cs.ualberta.ca> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 24312968)
-
Cam Macdonell authored
Signed-off-by:
Cam Macdonell <cam@cs.ualberta.ca> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 44f1a3d8)
-
Cam Macdonell authored
Signed-off-by:
Cam Macdonell <cam@cs.ualberta.ca> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit b6828931)
-
Cam Macdonell authored
Provide a function to add an allocated region of memory to the qemu RAM. This patch is copied from Marcelo's qemu_ram_map() in qemu-kvm and given the clearer name qemu_ram_alloc_from_ptr(). Signed-off-by:
Cam Macdonell <cam@cs.ualberta.ca> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 84b89d78)
-
- Sep 13, 2010
-
-
Kevin Wolf authored
The qcow file used for write support in vvfat is a temporary file, so we can use cache=unsafe there. Without this, write support is just too slow to be of any use. Signed-off-by:
Kevin Wolf <mail@kevin-wolf.de> (cherry picked from commit 35ccd8aed64727dbefa1b274a8000b46318bfea1)
-