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