]> Git Repo - qemu.git/commit
fw_cfg: don't map the fw_cfg IO ports in fw_cfg_io_realize()
authorMark Cave-Ayland <[email protected]>
Thu, 29 Jun 2017 14:07:15 +0000 (15:07 +0100)
committerMichael S. Tsirkin <[email protected]>
Mon, 3 Jul 2017 19:29:49 +0000 (22:29 +0300)
commit91685323b142a655378b673bfcc5b424c77dfe1a
tree8ad8ba8bff7e2ae246718cbf721a7cabf17e63f2
parentc0e9067902a35f4b5cc24b0bc84dbc5872e9cf86
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 <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Reviewed-by: Eduardo Habkost <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Tested-by: Gabriel Somlo <[email protected]>
hw/nvram/fw_cfg.c
This page took 0.035778 seconds and 4 git commands to generate.