ns16550: make PCI device hiding uniform
authorJan Beulich <jbeulich@suse.com>
Tue, 3 Sep 2019 13:58:08 +0000 (15:58 +0200)
committerJulien Grall <julien.grall@arm.com>
Sun, 29 Sep 2019 09:03:56 +0000 (10:03 +0100)
commitd5b7d10cb49cf8fcf1104606fb27b80233bb98c1
tree2f3eef838adc88ce027aeeb256f6ebc674a31bf7
parent7a4e6711114905b3cbbe48e81c3222361a7f3579
ns16550: make PCI device hiding uniform

The difference between pci_hide_device() and pci_ro_device() is that
the former only prevents a device from getting assigned to a guest,
while the latter additionally arranges for Dom0 write attempts to the
device's config space to be ignored/discarded. Whether we want one or
the other certainly doesn't depend on whether the device is in our set
of known devices. All that matters is whether we use a PCI device: Call
pci_ro_device() in any such case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/drivers/char/ns16550.c