All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] vhost-user: warn when guest RAM is not shared
@ 2021-02-22 16:10 Stefan Hajnoczi
  2021-02-22 16:10 ` [PATCH 1/3] tests/qtest/vhost-user-test: use share=on with memfd Stefan Hajnoczi
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2021-02-22 16:10 UTC (permalink / raw)
  To: qemu-devel
  Cc: kwolf, Laurent Vivier, Thomas Huth, Michael S. Tsirkin,
	Stefan Hajnoczi, Paolo Bonzini, Marc-André Lureau

vhost-user requires -object memory-backend-*,share=on option so that QEMU uses
mmap(MAP_SHARED) on guest RAM that is shared with the vhost-user device backend
process. This is needed so the QEMU process sees changes made by the vhost-user
device backend process, and vice versa.

Today QEMU and the vhost-user device process will start up and then fail with a
confusing error message if the user forgot to specify share=on.

This patch series adds a warning letting the user know that share=on is
required.

Stefan Hajnoczi (3):
  tests/qtest/vhost-user-test: use share=on with memfd
  memory: add memory_region_is_mapped_shared()
  vhost-user: warn when guest RAM is not shared

 include/exec/memory.h         | 11 +++++++++++
 hw/virtio/vhost-user.c        | 20 ++++++++++++++++----
 softmmu/memory.c              |  6 ++++++
 tests/qtest/vhost-user-test.c |  2 +-
 4 files changed, 34 insertions(+), 5 deletions(-)

-- 
2.29.2


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

end of thread, other threads:[~2021-05-11  8:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22 16:10 [PATCH 0/3] vhost-user: warn when guest RAM is not shared Stefan Hajnoczi
2021-02-22 16:10 ` [PATCH 1/3] tests/qtest/vhost-user-test: use share=on with memfd Stefan Hajnoczi
2021-02-24 10:22   ` Marc-André Lureau
2021-02-24 15:31     ` Stefan Hajnoczi
2021-03-08  6:31   ` Thomas Huth
2021-03-15 15:34     ` Stefan Hajnoczi
2021-02-22 16:10 ` [PATCH 2/3] memory: add memory_region_is_mapped_shared() Stefan Hajnoczi
2021-02-24 10:33   ` Marc-André Lureau
2021-02-24 15:40     ` Stefan Hajnoczi
2021-02-22 16:10 ` [PATCH 3/3] vhost-user: warn when guest RAM is not shared Stefan Hajnoczi
2021-02-24 10:38   ` Marc-André Lureau
2021-05-11  8:21 ` [PATCH 0/3] " Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.