diff options
author | Marcel Apfelbaum | 2016-09-07 17:02:25 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2016-09-09 19:58:34 +0200 |
commit | d9997d89a4a09a330a056929d06d4b7b0b7a8239 (patch) | |
tree | 5e4e10bea0a4a1c27cde5ba67458a52bbd4c3a84 /include/hw/compat.h | |
parent | target-i386: present virtual L3 cache info for vcpus (diff) | |
download | qemu-d9997d89a4a09a330a056929d06d4b7b0b7a8239.tar.gz qemu-d9997d89a4a09a330a056929d06d4b7b0b7a8239.tar.xz qemu-d9997d89a4a09a330a056929d06d4b7b0b7a8239.zip |
virtio-pci: reduce modern_mem_bar size
Currently each VQ Notification Virtio Capability is allocated
on a different page. The idea is to enable split drivers within
guests, however there are no known plans to do that.
The allocation will result in a 8MB BAR, more than various
guest firmwares pre-allocates for PCI Bridges hotplug process.
Reserve 4 bytes per VQ by default and add a new parameter
"page-per-vq" to be used with split drivers.
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/compat.h')
-rw-r--r-- | include/hw/compat.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/hw/compat.h b/include/hw/compat.h index 08dd4fbec2..a1d6694492 100644 --- a/include/hw/compat.h +++ b/include/hw/compat.h @@ -2,7 +2,11 @@ #define HW_COMPAT_H #define HW_COMPAT_2_7 \ - /* empty */ + {\ + .driver = "virtio-pci",\ + .property = "page-per-vq",\ + .value = "on",\ + }, #define HW_COMPAT_2_6 \ {\ |