pci: add pci_register_bar_simple() API
This is similar to pci_register_bar(), but automatically registers a singlememory region spanning the entire BAR.
Signed-off-by: Avi Kivity <avi@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
rtl8139: convert to pci_register_bar_simple()
cirrus-vga: convert to pci_register_bar_simple()
cirrus_vga: flag on-device ram for dirty logging
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
vhost: optimize out no-change assignment
Cirrus VGA (at least) calls register memory regionwith the same values again and again. Theregistration in vhost-net slows this a lot,optimize by checking that the same data is already registered.
vhost: skip memory which needs dirty logging
vhost doesn't support write logging(except for migration), anyway.
cpu: add set_memory flag to request dirty logging
Pass the flag to all cpu notifiers, doingnothing at this point. Will be used byfollow-up patches.
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>...
View revisions
Also available in: Atom