]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio
authorShannon Zhao <shannon.zhao@linaro.org>
Thu, 7 Apr 2016 12:03:22 +0000 (20:03 +0800)
committerBob Liu <bob.liu@oracle.com>
Thu, 20 Oct 2016 07:53:51 +0000 (03:53 -0400)
Add a new type of Xen map space for Dom0 to map device's MMIO region.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Tested-by: Julien Grall <julien.grall@arm.com>
(cherry picked from commit 712a5b77cb5a1d3028a8c202f4f839802a03f19f)
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Orabug: 24820937

include/xen/interface/memory.h

index 2ecfe4f700d94ce9adefdf423e235fe7c5e3d14c..9aa8988cb340ea6bbefbfbbdad88be127452e3c8 100644 (file)
@@ -160,6 +160,7 @@ DEFINE_GUEST_HANDLE_STRUCT(xen_machphys_mapping_t);
 #define XENMAPSPACE_gmfn_foreign 4 /* GMFN from another dom,
                                    * XENMEM_add_to_physmap_range only.
                                    */
+#define XENMAPSPACE_dev_mmio     5 /* device mmio region */
 
 /*
  * Sets the GPFN at which a particular page appears in the specified guest's