]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
Introduce an alternative hole type using the platorm PCI device BAR
authorPaul Durrant <pdurrant@amazon.com>
Tue, 16 Nov 2021 16:35:42 +0000 (16:35 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 19 Nov 2021 11:25:00 +0000 (11:25 +0000)
commit1ceb790d300f99227ba18cbd075db1e376eac468
treee5b736ef26307a5196def477db4dcf5fee731cb7
parentb57ff62918e337cadfd769dc5fa33e1ca7943125
Introduce an alternative hole type using the platorm PCI device BAR

Using a memory hole burns 2M of RAM and is only helpful in the case where
the guest has pass-through devices causing Xen to make accesses to all PCI
BARs uncacheable. In the case where guest-visible devices are all emulated
this will not be the case and so we can save the 2M of RAM by using the
platform PCI device BAR as the hole.

This patch adds the necessary code to do that, defaulted off but enabled
by setting the XENBUS registry parameter DWORD:UseMemoryHole to 0.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
src/xenbus/fdo.c