Skip to content
Commit 59a5b0f7 authored by Gerd Hoffmann's avatar Gerd Hoffmann Committed by Michael S. Tsirkin
Browse files

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: default avatarGerd Hoffmann <kraxel@redhat.com>

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 8b8e658b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment