]> xenbits.xensource.com Git - people/iwj/xen.git/commit
x86/mm: add HYPERVISOR_memory_op to acquire guest resources
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 27 Sep 2017 09:00:54 +0000 (10:00 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 3 Apr 2018 16:04:00 +0000 (17:04 +0100)
commit3f8f12281dd20da62366f555cf13be0e87d68a91
tree89311914ef3adb8c39fac72cb6950b56d3c7648a
parent3fefa0f15d0fa5c0688f9c03a91a9ae3be16b4bf
x86/mm: add HYPERVISOR_memory_op to acquire guest resources

Certain memory resources associated with a guest are not necessarily
present in the guest P2M.

This patch adds the boilerplate for new memory op to allow such a resource
to be priv-mapped directly, by either a PV or HVM tools domain.

NOTE: Whilst the new op is not intrinsically specific to the x86 architecture,
      I have no means to test it on an ARM platform and so cannot verify
      that it functions correctly.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien.grall@arm.com>
13 files changed:
tools/flask/policy/modules/xen.if
xen/arch/x86/mm/p2m.c
xen/common/compat/memory.c
xen/common/memory.c
xen/include/asm-arm/p2m.h
xen/include/asm-x86/p2m.h
xen/include/public/memory.h
xen/include/xlat.lst
xen/include/xsm/dummy.h
xen/include/xsm/xsm.h
xen/xsm/dummy.c
xen/xsm/flask/hooks.c
xen/xsm/flask/policy/access_vectors