]> xenbits.xensource.com Git - xen.git/commit
xen/arm: vsysreg: Add wrapper to handle sysreg access trapped by HCR_EL2.TVM
authorJulien Grall <julien.grall@arm.com>
Tue, 18 Dec 2018 18:04:15 +0000 (18:04 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 18 Dec 2018 22:32:22 +0000 (14:32 -0800)
commit66f5b576adf89ec8b71084160389e77ff1bb482f
tree320f7841127fac9ef8ecb7b63590782fbc92146a
parentfb1da213f33396a28e933d3facc7b5b78eff1a0f
xen/arm: vsysreg: Add wrapper to handle sysreg access trapped by HCR_EL2.TVM

A follow-up patch will require to emulate some accesses to system
registers trapped by HCR_EL2.TVM. When set, all NS EL1 writes to the
virtual memory control registers will be trapped to the hypervisor.

This patch adds the infrastructure to passthrough the access to the host
registers.

Note that HCR_EL2.TVM will be set in a follow-up patch dynamically.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm64/vsysreg.c