diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-06-24 07:54:15 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-06-24 08:15:09 +0200 |
commit | 59a5b0f7bf74f88da6670bcbf924d8cc1e75b1ee (patch) | |
tree | 37e2f1dba713b5d1b835d05b3acf8d560678abbe /drivers/virtio/virtio_pci_common.h | |
parent | 8b8e658b16336f0f50aba733f51db636ef121f50 (diff) | |
download | linux-stable-59a5b0f7bf74f88da6670bcbf924d8cc1e75b1ee.tar.gz linux-stable-59a5b0f7bf74f88da6670bcbf924d8cc1e75b1ee.tar.bz2 linux-stable-59a5b0f7bf74f88da6670bcbf924d8cc1e75b1ee.zip |
virtio-pci: alloc only resources actually used.
Move resource allocation from common code to legacy and modern code.
Only request resources actually used, i.e. bar0 in legacy mode and
the bar(s) specified by capabilities in modern mode.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio/virtio_pci_common.h')
-rw-r--r-- | drivers/virtio/virtio_pci_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/virtio/virtio_pci_common.h b/drivers/virtio/virtio_pci_common.h index 28ee4e56badf..b976d968e793 100644 --- a/drivers/virtio/virtio_pci_common.h +++ b/drivers/virtio/virtio_pci_common.h @@ -75,6 +75,8 @@ struct virtio_pci_device { /* Multiply queue_notify_off by this value. (non-legacy mode). */ u32 notify_offset_multiplier; + int modern_bars; + /* Legacy only field */ /* the IO mapping for the PCI config space */ void __iomem *ioaddr; |