qemu-patch-raspberry4/hw/virtio
Nicholas Bellinger af60314291 vhost: Add vhost_commit callback for SeaBIOS ROM region re-mapping
This patch follows MST's recommendation to move checks for
vhost_verify_ring_mappings() -> cpu_physical_memory_map() operations
from MemoryListener->region_[add,del]() -> vhost_set_memory() into
final MemoryListener->commit() -> vhost_commit() callback.

It addresses the case where virtio-scsi vq ioport RAM re-mapping
to read-only SeaBIOS ROM triggers a cpu_physical_memory_map()
NIL MemoryRegionSection pointer failure.

Also save vhost_dev->mem_changed_[start,end]_addr values in
vhost_set_memory() for final ranges_overlap checks.  (Thanks Paolo!)

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Asias He <asias@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2013-04-19 10:44:17 +02:00
..
dataplane hw: move virtio devices to hw/ subdirectories 2013-04-08 18:13:12 +02:00
Makefile.objs hw: move virtio devices to hw/ subdirectories 2013-04-08 18:13:12 +02:00
vhost.c vhost: Add vhost_commit callback for SeaBIOS ROM region re-mapping 2013-04-19 10:44:17 +02:00
virtio-balloon.c hw: move virtio devices to hw/ subdirectories 2013-04-08 18:13:12 +02:00
virtio-bus.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
virtio-pci.c virtio-net-pci: switch to the new API. 2013-04-17 10:28:58 -05:00
virtio-pci.h virtio-net-pci: switch to the new API. 2013-04-17 10:28:58 -05:00
virtio-rng.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
virtio.c hw: move virtio devices to hw/ subdirectories 2013-04-08 18:13:12 +02:00