Commit 59a5b0f7 authored by Committed by Michael S. Tsirkin
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 <firstname.lastname@example.org> Signed-off-by: Michael S. Tsirkin <email@example.com>
Showing with 32 additions and 14 deletions