qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] virtio-balloon: don't start free page hinting if postcopy is possible
@ 2021-07-08  9:53 David Hildenbrand
  2021-07-08  9:53 ` [PATCH v2 1/2] " David Hildenbrand
  2021-07-08  9:53 ` [PATCH v2 2/2] virtio-balloon: free page hinting cleanups David Hildenbrand
  0 siblings, 2 replies; 4+ messages in thread
From: David Hildenbrand @ 2021-07-08  9:53 UTC (permalink / raw)
  To: qemu-devel
  Cc: Juan Quintela, Michael S. Tsirkin, David Hildenbrand,
	Dr. David Alan Gilbert, Peter Xu, Wei Wang, Alexander Duyck,
	Philippe Mathieu-Daudé

This is the follow up on [1]:
  [PATCH v1 0/2] virtio-balloon: disallow postcopy with
  VIRTIO_BALLOON_F_FREE_PAGE_HINT

Working on getting migration for virtio-mem completely right [2] I realized
that virtio-balloon with VIRTIO_BALLOON_F_FREE_PAGE_HINT paired with
postcopy might be shaky. Actually testing it, I directly found two issues,
one of both being far from trivial to fix.

Let's not start free page hinting if postcopy is possible.

v1 -> v2:
- "virtio-balloon: don't start free page hinting if postcopy is possible"
-- Instead of bailing out when starting postcopy, don't start free page
   hinting if the postcopy capability is enabled and we might see the
   switch to postcopy for the current migration (where we might mess with
   the dirty bitmap)
- "virtio-balloon: free page hinting cleanups"
-- Added

[1] https://lkml.kernel.org/r/20210707140655.30982-1-david@redhat.com
[2] https://lkml.kernel.org/r/20210616162940.28630-1-david@redhat.com


David Hildenbrand (2):
  virtio-balloon: don't start free page hinting if postcopy is possible
  virtio-balloon: free page hinting cleanups

 hw/virtio/virtio-balloon.c | 41 +++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 20 deletions(-)

-- 
2.31.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-08 19:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-08  9:53 [PATCH v2 0/2] virtio-balloon: don't start free page hinting if postcopy is possible David Hildenbrand
2021-07-08  9:53 ` [PATCH v2 1/2] " David Hildenbrand
2021-07-08 18:51   ` Peter Xu
2021-07-08  9:53 ` [PATCH v2 2/2] virtio-balloon: free page hinting cleanups David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).