piix_pci: load path clean up
The previous patch didn't change the behavior when load,it resulted in ugly code. This patch cleans it up.
With this patch, pic irq lines are manipulated when loaded.It is expected that it won't change the behaviour because...
piix_pci: optimize set irq path
optimize irq routing in piix_pic.c which has been a TODO.So far piix3 tracks each pirq level and checks whether a given pic pins isasserted by seeing if each pirq is mapped into the pic pin.This is independent on irq routing, but data path is on slow path....
piix_pci: eliminate PIIX3State::pci_irq_levels
PIIX3State::pci_irq_levels are redundant which is already tracked byPCIBus layer. So eliminate them.
Cc: Juan Quintela <quintela@redhat.com>Cc: Michael S. Tsirkin <mst@redhat.com>Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>...
pci: add accessor function to get irq levels
Introduce accessor function to know INTx levels.It will be used later by q35.Although piix_pci tracks the intx line levels, it can be eliminatedby this helper function.
Cc: Michael S. Tsirkin <mst@redhat.com>...
virtio-pci: fix bus master work around on load
Commit c81131db15dd1844d0db1d51f3cd7a105cfd2cf3detects old guests by comparing virtio andPCI status. It attempts to do this on load,as well, but load_config callback in a bindingis invoked too early and so the virtio status...
e1000: check buffer availability
Reduce spurious packet drops on RX ring emptyby verifying that we have at least 1 bufferahead of the time.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
virtio-serial: don't crash on invalid input
Fix crash on invalid input in virtio-serial.Discovered by code review, untested.
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.
Note: this lead to crashes during migration, so the patch...
cirrus_vga: remove unneeded reset
cirrus_reset is already called by the reset framework,so there is no need to call it in cirrus_init_common.
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>
pci: use uint8_t for devfn_min
use uint8_t for devfn_min instead of int.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
View all revisions | View revisions
Also available in: Atom