]> xenbits.xensource.com Git - xen.git/commit
xen/arm: flush icache as well when XEN_DOMCTL_cacheflush is issued
authorTamas K Lengyel <tamas.lengyel@zentific.com>
Fri, 27 Jan 2017 18:25:23 +0000 (11:25 -0700)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 30 Jan 2017 21:17:39 +0000 (13:17 -0800)
commitfe6e8188f3ad91e166338b9962a06afab9b776cd
tree59590feeaa6187bdac1e5ab1932934d8eda131b4
parenta43a9ce34b0f8b3006101c34c2de39d9a3c8c686
xen/arm: flush icache as well when XEN_DOMCTL_cacheflush is issued

When the toolstack modifies memory of a running ARM VM it may happen
that the underlying memory of a current vCPU PC is changed. Without
flushing the icache the vCPU may continue executing stale instructions.

Also expose the xc_domain_cacheflush through xenctrl.h.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
tools/libxc/include/xenctrl.h
tools/libxc/xc_domain.c
tools/libxc/xc_private.h
xen/arch/arm/mm.c