[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 6/6] xen/arm: platforms/tegra: Ensure the hwdom can only affect its own interrupts
Hello, On 06/04/2017 20:47, Chris Patterson wrote: From: Chris Patterson <pattersonc@xxxxxxxxxxxx> Several Tegra hardware devices, and the Tegra device tree, expect the presence of a Tegra Legacy Interrupt Controller (LIC) in the hardware domain. Accordingly, we'll need to expose (most of) the LIC's registers to the hardware domain. As the Tegra LIC provides the ability to modify interrupt delivery (e.g. by masking interrupts, forcing asserting/clearing them, or adjusting their prority), it's important that the hardware domain's access be mediated. This commit adds read/write handlers that prohibit modification of register sections corresponding to interrupts not owned by the hardware domain. Note that this is written to be domain agnostic; this allows the potential to e.g. map the ictlr into multiple domains if this is desired for passthrough in the future. Authored-by: Kyle Temkin <temkink@xxxxxxxxxxxx> See my question on patch #2. Signed-off-by: Kyle Temkin <temkink@xxxxxxxxxxxx> Signed-off-by: Chris Patterson <pattersonc@xxxxxxxxxxxx> --- changes since rfc: - documentation, formatting & code style cleanup - drop tegra_init changes (folded into patch 4) --- xen/arch/arm/platforms/Makefile | 2 + xen/arch/arm/platforms/tegra-mlic.c | 261 +++++++++++++++++++++++++++++ xen/arch/arm/platforms/tegra.c | 13 ++ xen/include/asm-arm/platforms/tegra-mlic.h | 34 ++++ 4 files changed, 310 insertions(+) create mode 100644 xen/arch/arm/platforms/tegra-mlic.c create mode 100644 xen/include/asm-arm/platforms/tegra-mlic.h diff --git a/xen/arch/arm/platforms/Makefile b/xen/arch/arm/platforms/Makefile index d7033d2..5701e62 100644 --- a/xen/arch/arm/platforms/Makefile +++ b/xen/arch/arm/platforms/Makefile @@ -7,6 +7,8 @@ obj-$(CONFIG_ARM_32) += rcar2.o obj-$(CONFIG_ARM_64) += seattle.o obj-$(CONFIG_ARM_32) += sunxi.o obj-$(CONFIG_ARM_32) += tegra.o +obj-$(CONFIG_ARM_32) += tegra-mlic.o I think it would make sense to introduce a tegra directory where tegra.c and tegra-mlic would live. obj-$(CONFIG_ARM_64) += tegra.o +obj-$(CONFIG_ARM_64) += tegra-mlic.o obj-$(CONFIG_ARM_64) += xgene-storm.o obj-$(CONFIG_ARM_64) += xilinx-zynqmp.o Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |