qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Reducing vdpa migration downtime because of memory pin / maps
@ 2023-04-05 11:37 Eugenio Perez Martin
  2023-04-10  2:14 ` Jason Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Eugenio Perez Martin @ 2023-04-05 11:37 UTC (permalink / raw)
  To: qemu-level
  Cc: Jason Wang, Michael Tsirkin, Si-Wei Liu, Longpeng, Gonglei (Arei),
	Eli Cohen, Parav Pandit, Juan Quintela, David Gilbert

Hi!

As mentioned in the last upstream virtio-networking meeting, one of
the factors that adds more downtime to migration is the handling of
the guest memory (pin, map, etc). At this moment this handling is
bound to the virtio life cycle (DRIVER_OK, RESET). In that sense, the
destination device waits until all the guest memory / state is
migrated to start pinning all the memory.

The proposal is to bind it to the char device life cycle (open vs
close), so all the guest memory can be pinned for all the guest / qemu
lifecycle.

This has two main problems:
* At this moment the reset semantics forces the vdpa device to unmap
all the memory. So this change needs a vhost vdpa feature flag.
* This may increase the initialization time. Maybe we can delay it if
qemu is not the destination of a LM. Anyway I think this should be
done as an optimization on top.

Any ideas or comments in this regard?

Thanks!



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

end of thread, other threads:[~2023-08-02 12:44 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-05 11:37 Reducing vdpa migration downtime because of memory pin / maps Eugenio Perez Martin
2023-04-10  2:14 ` Jason Wang
2023-04-10  3:16   ` longpeng2--- via
2023-04-10  3:21     ` Jason Wang
2023-04-10  9:04       ` Eugenio Perez Martin
2023-04-11  2:25         ` Jason Wang
2023-04-11  6:28           ` Eugenio Perez Martin
2023-04-11  6:36             ` Jason Wang
2023-04-11 12:33 ` Eugenio Perez Martin
2023-04-12  5:56   ` Jason Wang
2023-04-12  6:18     ` Jason Wang
2023-04-13  7:27       ` Eugenio Perez Martin
2023-06-06 22:44 ` Si-Wei Liu
2023-06-07  8:08   ` Eugenio Perez Martin
2023-06-08 22:40     ` Si-Wei Liu
2023-06-09  3:18       ` Jason Wang
2023-06-09 14:32       ` Eugenio Perez Martin
2023-06-27  6:36         ` Si-Wei Liu
2023-07-05 18:03           ` Eugenio Perez Martin
2023-07-06  0:13             ` Si-Wei Liu
2023-07-06  5:46               ` Eugenio Perez Martin
2023-07-08  9:14                 ` Si-Wei Liu
2023-07-10  6:04                   ` Eugenio Perez Martin
2023-07-17 19:56                     ` Si-Wei Liu
2023-07-19 10:40                       ` Eugenio Perez Martin
2023-07-20  0:48                         ` Si-Wei Liu
2023-08-02 12:42                           ` Eugenio Perez Martin

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).