[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [RFC for-4.8 0/6] xen/arm: Add support for mapping mmio-sram nodes into dom0
From: "Edgar E. Iglesias" <edgar.iglesias@xxxxxxxxxx> This series adds support for mapping mmio-sram nodes into dom0 as MEMORY, cached and with RWX perms. Dom0 can then choose to further restrict these mappings if needed. We only look at the outer mmio-sram region. The sub-area nodes that describe allocations within the mmio-sram region are only meaningful to the guest AFAICT. In an attempt to avoid growing the already fairly large domain_build.c file, I've tried to implement a distributed way to deal with these kind of special/custom mapping needs. These can live outside of domain_build.c and are registerd by means of a .map method in the device_spec. If this approach is not good, I'm happy to bin it and try something else. Comments welcome! Best regards, Edgar Edgar E. Iglesias (6): xen/arm: Add device_get_desc() xen/arm: Add an optional map function to the device descriptor xen/arm: Add a DEVICE_MEMORY class xen/arm: Add helper functions to map RWX memory regions xen/arm: Add an mmio-sram device xen/arm: Avoid multiple dev class lookups in handle_node xen/arch/arm/Makefile | 1 + xen/arch/arm/device.c | 15 ++++++++ xen/arch/arm/domain_build.c | 19 +++++++-- xen/arch/arm/mmio-sram.c | 92 ++++++++++++++++++++++++++++++++++++++++++++ xen/arch/arm/p2m.c | 26 +++++++++++++ xen/include/asm-arm/device.h | 12 ++++++ xen/include/asm-arm/p2m.h | 10 +++++ 7 files changed, 172 insertions(+), 3 deletions(-) create mode 100644 xen/arch/arm/mmio-sram.c -- 2.5.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |