All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/5] xen: pvh: Add machine option to disable the mapcache
@ 2026-03-04  1:52 Edgar E. Iglesias
  2026-03-04  1:52 ` [PATCH v1 1/5] xen: mapcache: Assert mapcache existance Edgar E. Iglesias
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Edgar E. Iglesias @ 2026-03-04  1:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: sstabellini, anthony, edgar.iglesias, xen-devel

From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>

This adds a mapcache option to the PVH machines allowing users to disable the
mapcache. To remain backwards compatible, the option defaults to "on".

When disabled, all guest memory is mapped at startup rather than on demand.
Starting QEMU may take longer in this mode, but runtime overhead is reduced and
it also enables virtio vhost backends to work.

As a trade-off, grants are unavailable without the mapcache and guests with
large amounts of RAM can take quite a while to start.

Cheers,
Edgar
 
Edgar E. Iglesias (5):
  xen: mapcache: Assert mapcache existance
  xen: mapcache: Add function to check if the mapcache is enabled
  physmem: xen: Conditionalize use of the mapcache
  hw/xen-hvm: Add a mapcache arg to xen_register_ioreq()
  hw/xen: xenpvh: Add prop to enable/disable the mapcache

 hw/i386/xen/xen-hvm.c           |   2 +-
 hw/xen/xen-hvm-common.c         |  18 +++--
 hw/xen/xen-mapcache.c           |  16 ++++
 hw/xen/xen-pvh-common.c         | 134 +++++++++++++++++++++++++++++---
 hw/xen/xen_stubs.c              |   5 ++
 include/hw/xen/xen-hvm-common.h |   3 +-
 include/hw/xen/xen-pvh-common.h |   2 +
 include/system/xen-mapcache.h   |   1 +
 system/physmem.c                |  13 ++--
 9 files changed, 169 insertions(+), 25 deletions(-)

-- 
2.43.0



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

end of thread, other threads:[~2026-03-05  0:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04  1:52 [PATCH v1 0/5] xen: pvh: Add machine option to disable the mapcache Edgar E. Iglesias
2026-03-04  1:52 ` [PATCH v1 1/5] xen: mapcache: Assert mapcache existance Edgar E. Iglesias
2026-03-04 23:58   ` Stefano Stabellini
2026-03-04  1:52 ` [PATCH v1 2/5] xen: mapcache: Add function to check if the mapcache is enabled Edgar E. Iglesias
2026-03-04 23:59   ` Stefano Stabellini
2026-03-04  1:52 ` [PATCH v1 3/5] physmem: xen: Conditionalize use of the mapcache Edgar E. Iglesias
2026-03-04 19:10   ` Peter Xu
2026-03-05  0:07   ` Stefano Stabellini
2026-03-05  0:48     ` Edgar E. Iglesias
2026-03-05  0:52       ` Stefano Stabellini
2026-03-04  1:52 ` [PATCH v1 4/5] hw/xen-hvm: Add a mapcache arg to xen_register_ioreq() Edgar E. Iglesias
2026-03-05  0:25   ` Stefano Stabellini
2026-03-04  1:52 ` [PATCH v1 5/5] hw/xen: xenpvh: Add prop to enable/disable the mapcache Edgar E. Iglesias
2026-03-05  0:26   ` Stefano Stabellini

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.