]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Introduce @memReserve to <controller/>
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 11 Sep 2023 12:33:18 +0000 (14:33 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 19 Apr 2024 12:22:42 +0000 (14:22 +0200)
commit05c256f51ad107ec64626ddf6d7d0e05cebd1f20
treef05eb5ac20e004013960e0d2d27a885a34da0971
parent753064963ce35434c91e3b6ae6bfcd1754197db2
conf: Introduce @memReserve to <controller/>

There are PCI devices with pretty large non-prefetchable memory,
for instance:

  Memory at 9d800000 (64-bit, non-prefetchable) [size=8M]
  Memory at a6800000 (64-bit, non-prefetchable) [size=16K]

For cold plugged devices this is not a problem, because firmware
sets PCI controllers in a way that make devices behind them just
work. Problem arises if such PCI device is to be hot plugged.
Since the PCI device wasn't present at cold boot, firmware could
not take it into calculations and the amount of reserved memory
is not sufficient.

Introduce a know that allows users overriding value computed by
FW and thus allow hot plug of such PCI devices.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
docs/formatdomain.rst
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/schemas/domaincommon.rng
tests/qemuxmlconfdata/q35-usb2.x86_64-latest.xml
tests/qemuxmlconfdata/q35-usb2.xml