]> xenbits.xensource.com Git - xen.git/commit
xen/arm: vcpreg: Add wrappers to handle co-proc access trapped by HCR_EL2.TVM
authorJulien Grall <julien.grall@arm.com>
Tue, 18 Dec 2018 18:04:14 +0000 (18:04 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 18 Dec 2018 22:32:18 +0000 (14:32 -0800)
commitfb1da213f33396a28e933d3facc7b5b78eff1a0f
treee134a9af70edfae34f0d55c456e372a34807defd
parent221c2fc433904937966e40c6a2538650253b7204
xen/arm: vcpreg: Add wrappers to handle co-proc access trapped by HCR_EL2.TVM

A follow-up patch will require to emulate some accesses to some
co-processors 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 host
registers. For convenience a bunch of helpers have been added to
generate the different helpers.

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/vcpreg.c
xen/include/asm-arm/cpregs.h