[PATCH v4 0/4] xen/arm: Properly disable M2P on Arm

Julien Grall posted 4 patches 3 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/xen tags/patchew/20200921180214.4842-1-julien@xen.org
Maintainers: Jan Beulich <jbeulich@suse.com>, Andrew Cooper <andrew.cooper3@citrix.com>, Stefano Stabellini <sstabellini@kernel.org>, Ian Jackson <iwj@xenproject.org>, Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>, "Roger Pau Monné" <roger.pau@citrix.com>, Julien Grall <julien@xen.org>, Wei Liu <wl@xen.org>, George Dunlap <george.dunlap@citrix.com>
There is a newer version of this series
xen/arch/x86/Kconfig         |  1 +
xen/common/Kconfig           |  3 +++
xen/common/domctl.c          |  9 +++++++--
xen/common/memory.c          |  7 +++++++
xen/include/asm-arm/domain.h |  5 +++++
xen/include/asm-arm/mm.h     | 13 -------------
xen/include/asm-x86/mm.h     |  5 -----
xen/include/public/domctl.h  |  6 ++++++
xen/include/xen/domain.h     | 12 ++++++++++++
xen/include/xen/mm.h         | 13 +++++++++++++
10 files changed, 54 insertions(+), 20 deletions(-)
[PATCH v4 0/4] xen/arm: Properly disable M2P on Arm
Posted by Julien Grall 3 years, 7 months ago
From: Julien Grall <jgrall@amazon.com>

Hi all,

Arm never supported a M2P yet there are some helpers implemented to deal with
the common code. However, the implementation of mfn_to_gmfn is completely
bogus.

This series aims to properly disable the M2P on Arm. See patch #2 for the
rationale regarding the lack of M2P on Arm.

I have dropped the typesafe patches from this series to focus on just the M2P.

Cheers,

Julien Grall (4):
  xen: XENMEM_exchange should only be used/compiled for arch supporting
    PV guest
  xen: Introduce HAS_M2P config and use to protect mfn_to_gmfn call
  xen: Remove mfn_to_gmfn macro
  xen/mm: Provide dummy M2P-related helpers when !CONFIG_HAVE_M2P

 xen/arch/x86/Kconfig         |  1 +
 xen/common/Kconfig           |  3 +++
 xen/common/domctl.c          |  9 +++++++--
 xen/common/memory.c          |  7 +++++++
 xen/include/asm-arm/domain.h |  5 +++++
 xen/include/asm-arm/mm.h     | 13 -------------
 xen/include/asm-x86/mm.h     |  5 -----
 xen/include/public/domctl.h  |  6 ++++++
 xen/include/xen/domain.h     | 12 ++++++++++++
 xen/include/xen/mm.h         | 13 +++++++++++++
 10 files changed, 54 insertions(+), 20 deletions(-)

-- 
2.17.1