hw/gen_pcie_root_port: make IO RO 0 on IO disabled
commit8e36c336d943c3bfe0d06f5465cc64d44b306e13
authorMarcel Apfelbaum <marcel@redhat.com>
Mon, 2 Oct 2017 10:31:35 +0000 (2 13:31 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 15 Oct 2017 02:54:43 +0000 (15 05:54 +0300)
treea73dacf224e235bb072d6e879e82161bea23ace8
parent2fefa16cec5a719f5cbc26c0672dd2099cd2ed9b
hw/gen_pcie_root_port: make IO RO 0 on IO disabled

IO_LIMIT and IO_BASE registers should not be writable if
gen_pcie_root_port's io-reserve property is set to 0.
The COMMAND register should have the IO flag read only.

Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-bridge/gen_pcie_root_port.c