Skip to content

x86/ept: force WB to foreign and grant mappings

Roger Pau Monne xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/mtrr: remove stale function prototypexen/include/asm-x86/mtrr.h+0 -21 reply
2/3x86/mtrr: move epte_get_entry_emt to p2m-ept.cxen/arch/x86/hvm/mtrr.c xen/arch/x86/hvm/vmx/vmx.c xen/arch/x86/mm/p2m-ept.c +2 more+118 -1142 replies
3/3x86/ept: force WB cache attributes for grant and foreign mapsxen/arch/x86/hvm/vmx/vmx.c xen/arch/x86/mm/p2m-ept.c xen/include/asm-x86/hvm/vmx/vmx.h+32 -75 replies

Reviews trailers per patch

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

PatchJan BeulichKevin Tian
1/3A-b
2/3R-b R-b
3/3R-b R-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 0/3] x86/ept: force WB to foreign and grant mappings

Hello,

The aim of this series is to force the cache attribute of foreign and grant mappings to WB for HVM/PVH guests. This is required because those mappings will be likely be using unpopulated memory ranges in the p2m, and those are usually UC in the MTRR state.

Having the guest set the correct MTRR attributes is also unlikely, because the number of MTRR ranges is finite.

Roger Pau Monne (3):
x86/mtrr: remove stale function prototype
x86/mtrr: move epte_get_entry_emt to p2m-ept.c x86/ept: force WB cache attributes for grant and foreign maps

 xen/arch/x86/hvm/mtrr.c           | 107 +---------------------
 xen/arch/x86/hvm/vmx/vmx.c        |   6 +-
 xen/arch/x86/mm/p2m-ept.c         | 145 ++++++++++++++++++++++++++++--
 xen/include/asm-x86/hvm/vmx/vmx.h |   2 +
 xen/include/asm-x86/mtrr.h        |   7 +-
 5 files changed, 147 insertions(+), 120 deletions(-)
Signature · 1 line
2.31.1