On Wed, 10 Jun 2020 13:54:00 +0200 David Hildenbrand <[email protected]> wrote:
> VFIO is (except devices without a physical IOMMU or some mediated devices) > incompatible with discarding of RAM. The kernel will pin basically all VM > memory. Let's convert to ram_block_discard_disable(), which can now > fail, in contrast to qemu_balloon_inhibit(). > > Leave "x-balloon-allowed" named as it is for now. > > Cc: Cornelia Huck <[email protected]> > Cc: Alex Williamson <[email protected]> > Cc: Christian Borntraeger <[email protected]> > Cc: Tony Krowiak <[email protected]> > Cc: Halil Pasic <[email protected]> > Cc: Pierre Morel <[email protected]> > Cc: Eric Farman <[email protected]> > Signed-off-by: David Hildenbrand <[email protected]> > --- > hw/vfio/ap.c | 10 +++---- > hw/vfio/ccw.c | 11 ++++---- > hw/vfio/common.c | 53 +++++++++++++++++++---------------- > hw/vfio/pci.c | 6 ++-- > include/hw/vfio/vfio-common.h | 4 +-- > 5 files changed, 45 insertions(+), 39 deletions(-) Did not have time to review in detail, but looks sane. Acked-by: Cornelia Huck <[email protected]>
