virtio-pci: do not access iomem via struct virtio_pci_device directly
authorJason Wang <jasowang@redhat.com>
Mon, 4 Jan 2021 06:54:45 +0000 (14:54 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 23 Feb 2021 12:52:57 +0000 (07:52 -0500)
commit64f2087aaa2c2a504f637736f48e71da0cd4afe0
treea618950e2cf7f0de13e313eaa205425305a106e5
parent489084dd3f7e4bd649814bd62839aef4456659e8
virtio-pci: do not access iomem via struct virtio_pci_device directly

Instead of accessing iomem via struct virito_pci_device directly,
tweak to call the io accessors through the iomem structure. This will
ease the splitting of modern virtio device logic.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210104065503.199631-2-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_pci_modern.c