diff options
| author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2017-06-29 15:07:15 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2017-07-03 22:29:49 +0300 |
| commit | 91685323b142a655378b673bfcc5b424c77dfe1a (patch) | |
| tree | 8ad8ba8bff7e2ae246718cbf721a7cabf17e63f2 /hw/net/virtio-net.c | |
| parent | c0e9067902a35f4b5cc24b0bc84dbc5872e9cf86 (diff) | |
| download | focaccia-qemu-91685323b142a655378b673bfcc5b424c77dfe1a.tar.gz focaccia-qemu-91685323b142a655378b673bfcc5b424c77dfe1a.zip | |
fw_cfg: don't map the fw_cfg IO ports in fw_cfg_io_realize()
As indicated by Laszlo it is a QOM bug for the realize() method to actually map the device. Set up the IO regions within fw_cfg_io_realize() and defer the mapping with sysbus_add_io() to the caller, as already done in fw_cfg_init_mem_wide(). This makes the iobase and dma_iobase properties now obsolete so they can be removed. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Tested-by: Gabriel Somlo <somlo@cmu.edu>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions