Received: from eggs.gnu.org ([2001:4830:134:3::10]:45062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnlfe-00019F-LG for qemu-devel@nongnu.org; Tue, 03 Dec 2013 03:49:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnlfW-00073a-1f for qemu-devel@nongnu.org; Tue, 03 Dec 2013 03:49:30 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:61653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnlfV-00073O-S4 for qemu-devel@nongnu.org; Tue, 03 Dec 2013 03:49:21 -0500 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MX8004M6366OQ30@mailout3.w1.samsung.com> for qemu-devel@nongnu.org; Tue, 03 Dec 2013 08:49:18 +0000 (GMT) From: Sergey Fedorov Date: Tue, 03 Dec 2013 12:48:34 +0400 Message-id: <1386060535-15908-1-git-send-email-s.fedorov@samsung.com> Subject: [Qemu-devel] [RFC PATCH 00/21] target-arm: add CPU core TrustZone support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, a.basov@samsung.com, Sergey Fedorov , johannes.winter@iaik.tugraz.at This patch set implements a basic support of CPU core TrustZone feature. The following major functionalities are implemented: * CPU monitor mode * Separate code translation for each secure state * CPACR & NSACR co-processor access control * Separate TLB for each secure state * Co-processor register banking * SMC instruction * FIQ/IRQ routing to monitor mode There is no support for banked co-processor register migration, save/load its VM state yet. That is an open question how to implement this functionality. Any suggestions is greatly appreciated. This patch set is a request for comments for the proof of concept. Sergey Fedorov (18): target-arm: move SCR & VBAR into TrustZone register list target-arm: adjust TTBCR for TrustZone feature target-arm: add arm_is_secure() helper target-arm: reject switching to monitor mode from non-secure state target-arm: adjust arm_current_pl() for TrustZone target-arm: adjust SCR CP15 register access rights target-arm: add non-secure Translation Block flag target-arm: implement CPACR register logic target-arm: add NSACR support target-arm: add SDER definition target-arm: split TLB for secure state target-arm: add banked coprocessor register type target-arm: convert appropriate coprocessor registers to banked type target-arm: use c13_context field for CONTEXTIDR target-arm: switch banked CP registers target-arm: add MVBAR support target-arm: implement SMC instruction target-arm: implement IRQ/FIQ routing to Monitor mode Svetlana Fedoseeva (3): target-arm: add TrustZone CPU feature target-arm: preserve RAO/WI bits of ARMv7 SCTLR target-arm: add CPU Monitor mode target-arm/cpu.c | 6 +- target-arm/cpu.h | 126 ++++++++++++---- target-arm/helper.c | 308 +++++++++++++++++++++++++++++--------- target-arm/machine.c | 12 +- target-arm/translate.c | 388 ++++++++++++++++++++++++++++++------------------ target-arm/translate.h | 2 + 6 files changed, 585 insertions(+), 257 deletions(-) -- 1.7.9.5