Skip to content

xen: pvh: Add machine option to disable the mapcache

Edgar E. Iglesias qemu-devel xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xen: mapcache: Assert mapcache existancehw/xen/xen-mapcache.c+10 -01 reply
2/5xen: mapcache: Add function to check if the mapcache is enabledhw/xen/xen-mapcache.c hw/xen/xen_stubs.c include/system/xen-mapcache.h+12 -01 reply
3/5physmem: xen: Conditionalize use of the mapcachesystem/physmem.c+7 -64 replies
4/5hw/xen-hvm: Add a mapcache arg to xen_register_ioreq()hw/i386/xen/xen-hvm.c hw/xen/xen-hvm-common.c hw/xen/xen-pvh-common.c +1 more+17 -91 reply
5/5hw/xen: xenpvh: Add prop to enable/disable the mapcachehw/xen/xen-pvh-common.c include/hw/xen/xen-pvh-common.h+124 -111 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchPeter XuStefano Stabellini
1/5R-b
2/5R-b
3/5A-b R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/5] xen: pvh: Add machine option to disable the mapcache

From: "Edgar E. Iglesias" <[email protected]>

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(-)
Signature · 1 line
2.43.0