Skip to content

Balloon inhibit enhancements, vfio restriction

Alex Williamson kvm qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 17 repliesIn review
  2. v24 patches 16 repliesSuperseded
  3. v1 RFC3 patches 25 repliesSuperseded

Changes in v3 from the cover letter

- Drop "nested" term in commit log (David)
- Adopt suggested wording in ccw code (Cornelia)
- Explain balloon inhibitor usage in vfio common (Peter)
- Fix to call inhibitor prior to re-using existing containers to avoid gap that pinning may have occurred in set container ioctl (self) - Peter, this change is the reason I didn't include your R-b.
- Add R-b to patches 1 & 2

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4balloon: Allow multiple inhibit usersballoon.c+10 -33 replies
2/4kvm: Use inhibit to prevent ballooning without synchronous mmuaccel/kvm/kvm-all.c hw/virtio/virtio-balloon.c+5 -32 replies
3/4vfio: Inhibit ballooning based on group attachment to a containerhw/vfio/common.c+30 -01 reply
4/4vfio/ccw/pci: Allow devices to opt-in for ballooninghw/vfio/ccw.c hw/vfio/common.c hw/vfio/pci.c +2 more+59 -20 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchDavid HildenbrandPeter XuCornelia HuckPaolo Bonzini
1/4R-b R-b R-b
2/4R-b R-b R-b A-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/4] Balloon inhibit enhancements, vfio restriction

v3:
- Drop "nested" term in commit log (David)
- Adopt suggested wording in ccw code (Cornelia)
- Explain balloon inhibitor usage in vfio common (Peter)
- Fix to call inhibitor prior to re-using existing containers to avoid gap that pinning may have occurred in set container ioctl (self) - Peter, this change is the reason I didn't include your R-b.
- Add R-b to patches 1 & 2

v2:
- Use atomic ops for balloon inhibit counter (Peter)
- Allow endpoint driver opt-in for ballooning, vfio-ccw opt-in by default, vfio-pci opt-in by device option, only allowed for mdev devices, no support added for platform as there are no platform mdev devices.

See patch 3/4 for detailed explanation why ballooning and device assignment typically don't mix. If this eventually changes, flags on the iommu info struct or perhaps device info struct can inform us for automatic opt-in. Thanks,

Alex

Alex Williamson (4):
balloon: Allow multiple inhibit users
kvm: Use inhibit to prevent ballooning without synchronous mmu
vfio: Inhibit ballooning based on group attachment to a container vfio/ccw/pci: Allow devices to opt-in for ballooning

 accel/kvm/kvm-all.c           |  4 +++
 balloon.c                     | 13 ++++++---
 hw/vfio/ccw.c                 |  9 +++++++
 hw/vfio/common.c              | 51 +++++++++++++++++++++++++++++++++++
 hw/vfio/pci.c                 | 26 +++++++++++++++++-
 hw/vfio/trace-events          |  1 +
 hw/virtio/virtio-balloon.c    |  4 +--
 include/hw/vfio/vfio-common.h |  2 ++
 8 files changed, 103 insertions(+), 7 deletions(-)
Signature · 1 line
2.18.0