virtio-pci: cache msix messages
Some guests mask a vector then unmask without changing it.Store vectors to avoid kvm system calls in this case.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
virtio: backend virtqueue notifier masking
some backends (notably vhost) can mask eventsat their source in a way that is more efficientthan masking through kvm.Specifically- masking in kvm uses rcu write side so it has high latency- in kvm on unmask we always send an interrupt...
virtio-net: set/clear vhost_started in reverse order
As vhost started is cleared last thing on stop,set it first things on start. This makes itpossible to use vhost_started while start is inprogress which is used by follow-up patches.
vhost: set started flag while start is in progress
This makes it possible to use started flag for sanity checkingof callbacks that happen during start/stop.
virtio: don't waste irqfds on control vqs
Pass nvqs to set_guest_notifiers. This makes it possible tosave on irqfds by not allocating one for the control vqfor virtio-net.
msix: add api to access msix message
Will be used by virtio pci.
Revert "virtio-pci: replace byte swap hack"
This reverts commit 9807caccd605d09a72495637959568d690e10175.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
virtio-pci: replace byte swap hack
Remove byte swaps by declaring the config spaceas native endian.
hw/i386: Fix broken build for non POSIX hosts
pc-testdev.c cannot be compiled with MinGW (and other non POSIX hosts):
CC i386-softmmu/hw/i386/../pc-testdev.oqemu/hw/i386/../pc-testdev.c:38:22: warning: sys/mman.h: file not foundqemu/hw/i386/../pc-testdev.c: In function ‘test_flush_page’:...
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
View revisions
Also available in: Atom