#
d743c382 |
| 09-Jan-2012 |
Avi Kivity <avi@redhat.com> |
vhost: fix incorrect userspace address
MemoryListener::region_add() gives us a slice of a MemoryRegion, not a region. Adjust the userspace address to reflect that.
Signed-off-by: Avi Kivity <avi@r
vhost: fix incorrect userspace address
MemoryListener::region_add() gives us a slice of a MemoryRegion, not a region. Adjust the userspace address to reflect that.
Signed-off-by: Avi Kivity <avi@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
2817b260 |
| 19-Dec-2011 |
Avi Kivity <avi@redhat.com> |
vhost: avoid cpu_get_physical_page_desc()
This reaches into the innards of the memory core, which are being changed. Switch to a memory API version.
Signed-off-by: Avi Kivity <avi@redhat.com>
|
#
04097f7c |
| 18-Dec-2011 |
Avi Kivity <avi@redhat.com> |
vhost: convert to MemoryListener API
Drop the use of cpu_register_phys_memory_client() in favour of the new MemoryListener API. The new API simplifies the caller, since there is no need to deal wit
vhost: convert to MemoryListener API
Drop the use of cpu_register_phys_memory_client() in favour of the new MemoryListener API. The new API simplifies the caller, since there is no need to deal with splitting and merging slots; however this is not exploited in this patch.
Signed-off-by: Avi Kivity <avi@redhat.com>
show more ...
|
#
b0b3db79 |
| 11-Aug-2011 |
Michael S. Tsirkin <mst@redhat.com> |
vhost-net: cleanup host notifiers at last step
When the vhost notifier is disabled, the userspace handler runs immediately: virtio_pci_set_host_notifier_internal might call virtio_queue_notify_vq. S
vhost-net: cleanup host notifiers at last step
When the vhost notifier is disabled, the userspace handler runs immediately: virtio_pci_set_host_notifier_internal might call virtio_queue_notify_vq. Since the VQ state and the tap backend state aren't recovered yet, this causes "Guest moved used index from XXX to YYY" assertions.
The solution is to split out host notifier handling from vhost VQ setup and disable notifiers as our last step when we stop vhost-net. For symmetry enable them first thing on start.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
7267c094 |
| 21-Aug-2011 |
Anthony Liguori <aliguori@us.ibm.com> |
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
#
cb4b4fde |
| 03-Aug-2011 |
Michael S. Tsirkin <mst@redhat.com> |
vhost: remove an incorrect assert
The 'to' can go negative when the first region gets removed (it gets incremented by to 0 immediately afterward), which makes the assertion fail. Nothing breaks if t
vhost: remove an incorrect assert
The 'to' can go negative when the first region gets removed (it gets incremented by to 0 immediately afterward), which makes the assertion fail. Nothing breaks if to < 0 here so just remove the assert.
Tested-by: David Ahern <daahern@cisco.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
c1be973a |
| 21-Jun-2011 |
Michael S. Tsirkin <mst@redhat.com> |
vhost: fix double free on device stop
vhost dev stop failed to clear the log field. Typically not an issue as dev start overwrites this field, but if logging gets disabled before the following start
vhost: fix double free on device stop
vhost dev stop failed to clear the log field. Typically not an issue as dev start overwrites this field, but if logging gets disabled before the following start, it doesn't so this causes a double free.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
4e789564 |
| 31-Mar-2011 |
Michael S. Tsirkin <mst@redhat.com> |
vhost: optimize out no-change assignment
Cirrus VGA (at least) calls register memory region with the same values again and again. The registration in vhost-net slows this a lot, optimize by checking
vhost: optimize out no-change assignment
Cirrus VGA (at least) calls register memory region with the same values again and again. The registration in vhost-net slows this a lot, optimize by checking that the same data is already registered.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
f5a4e64f |
| 06-Apr-2011 |
Michael S. Tsirkin <mst@redhat.com> |
vhost: skip memory which needs dirty logging
vhost doesn't support write logging (except for migration), anyway.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
#
0fd542fb |
| 06-Apr-2011 |
Michael S. Tsirkin <mst@redhat.com> |
cpu: add set_memory flag to request dirty logging
Pass the flag to all cpu notifiers, doing nothing at this point. Will be used by follow-up patches.
Signed-off-by: Michael S. Tsirkin <mst@redhat.c
cpu: add set_memory flag to request dirty logging
Pass the flag to all cpu notifiers, doing nothing at this point. Will be used by follow-up patches.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
7b67b18a |
| 16-Mar-2011 |
Michael S. Tsirkin <mst@redhat.com> |
vhost: fix dirty page handling
vhost was passing a physical address to cpu_physical_memory_set_dirty, which is wrong: we need to translate to ram address first.
Signed-off-by: Michael S. Tsirkin <m
vhost: fix dirty page handling
vhost was passing a physical address to cpu_physical_memory_set_dirty, which is wrong: we need to translate to ram address first.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Note: this lead to crashes during migration, so the patch is needed on the stable branch too.
show more ...
|
#
e5896b12 |
| 07-Feb-2011 |
Anthony PERARD <anthony.perard@citrix.com> |
Introduce log_start/log_stop in CPUPhysMemoryClient
In order to use log_start/log_stop with Xen as well in the vga code, this two operations have been put in CPUPhysMemoryClient.
The two new functi
Introduce log_start/log_stop in CPUPhysMemoryClient
In order to use log_start/log_stop with Xen as well in the vga code, this two operations have been put in CPUPhysMemoryClient.
The two new functions cpu_physical_log_start,cpu_physical_log_stop are used in hw/vga.c and replace the kvm_log_start/stop. With this, vga does no longer depends on kvm header.
[ Jan: rebasing and style fixlets ]
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
show more ...
|
#
5430a28f |
| 01-Feb-2011 |
mst@redhat.com <mst@redhat.com> |
vhost: force vhost off for non-MSI guests
When MSI is off, each interrupt needs to be bounced through the io thread when it's set/cleared, so vhost-net causes more context switches and higher CPU ut
vhost: force vhost off for non-MSI guests
When MSI is off, each interrupt needs to be bounced through the io thread when it's set/cleared, so vhost-net causes more context switches and higher CPU utilization than userspace virtio which handles networking in the same thread.
We'll need to fix this by adding level irq support in kvm irqfd, for now disable vhost-net in these configurations.
Added a vhostforce flag to force vhost-net back on.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
0c600ce2 |
| 27-Nov-2010 |
Jason Wang <jasowang@redhat.com> |
vhost: Fix address calculation in vhost_dev_sync_region()
We still need advance address even we find there's no dirty pages in current chunk.
Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-
vhost: Fix address calculation in vhost_dev_sync_region()
We still need advance address even we find there's no dirty pages in current chunk.
Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
c8852121 |
| 06-Oct-2010 |
Michael S. Tsirkin <mst@redhat.com> |
vhost: error code
fix up errors returned to include errno, not just -1
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
#
54dd9321 |
| 06-Oct-2010 |
Michael S. Tsirkin <mst@redhat.com> |
virtio: change set guest notifier to per-device
When using irqfd with vhost-net to inject interrupts, a single evenfd might inject multiple interrupts. Implementing this is much easier with a single
virtio: change set guest notifier to per-device
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>
show more ...
|
#
bf1b0071 |
| 18-Sep-2010 |
Blue Swirl <blauwirbel@gmail.com> |
Introduce range.h
Extract range functions from pci.h. These will be used by later patches by non-PCI devices. Adjust current users.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
|
#
708f2ada |
| 28-Jul-2010 |
Mike McCormack <mikem@ring3k.org> |
Remove unused eventfd.h
This header is not present on my system and causes a build failure, but is also not used in these files, so remove it.
Signed-off-by: Mike McCormack <mikem@ring3k.org> Signe
Remove unused eventfd.h
This header is not present on my system and causes a build failure, but is also not used in these files, so remove it.
Signed-off-by: Mike McCormack <mikem@ring3k.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
show more ...
|
#
d154e0ba |
| 16-Jul-2010 |
Michael S. Tsirkin <mst@redhat.com> |
vhost: fix miration during device start
We need to know ring layout to allocate log buffer. So init rings first.
Also fixes a theoretical memory-leak-on-error.
https://bugzilla.redhat.com/show_bug
vhost: fix miration during device start
We need to know ring layout to allocate log buffer. So init rings first.
Also fixes a theoretical memory-leak-on-error.
https://bugzilla.redhat.com/show_bug.cgi?id=615228
Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Tested-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
11078ae3 |
| 08-Apr-2010 |
Marcelo Tosatti <mtosatti@redhat.com> |
vhost.c: include <linux/vhost.h> last
So the userspace headers define KERNEL_STRICT_NAMES and there's no conflict on type definition for older kernels.
Signed-off-by: Marcelo Tosatti <mtosatti@redh
vhost.c: include <linux/vhost.h> last
So the userspace headers define KERNEL_STRICT_NAMES and there's no conflict on type definition for older kernels.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
show more ...
|
#
2b3af999 |
| 01-Apr-2010 |
Stefan Weil <weil@mail.berlios.de> |
win32: Fix compiler errors from u_int64_t
u_int64_t raises compiler error messages:
CC libhw32/virtio.o /qemu/ar7/hw/virtio.c: In function ‘virtio_queue_get_avail_size’: /qemu/ar7/hw/virtio.c:
win32: Fix compiler errors from u_int64_t
u_int64_t raises compiler error messages:
CC libhw32/virtio.o /qemu/ar7/hw/virtio.c: In function ‘virtio_queue_get_avail_size’: /qemu/ar7/hw/virtio.c:776: error: ‘u_int64_t’ undeclared (first use in this function) /qemu/ar7/hw/virtio.c:776: error: (Each undeclared identifier is reported only once /qemu/ar7/hw/virtio.c:776: error: for each function it appears in.)
Replacing u_int64_t by uint64_t helps.
Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
d5970055 |
| 17-Mar-2010 |
Michael S. Tsirkin <mst@redhat.com> |
vhost: vhost net support
This adds vhost net device support in qemu. Will be tied to tap device and virtio by following patches. Raw backend is currently missing, will be worked on/submitted separa
vhost: vhost net support
This adds vhost net device support in qemu. Will be tied to tap device and virtio by following patches. Raw backend is currently missing, will be worked on/submitted separately.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|