From patchwork Tue Jul 23 21:35:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 11055337 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 70C7214F6 for ; Tue, 23 Jul 2019 21:38:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 638C11FF14 for ; Tue, 23 Jul 2019 21:38:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5777228737; Tue, 23 Jul 2019 21:38:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0F43028727 for ; Tue, 23 Jul 2019 21:38:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hq2S4-0001vF-0H; Tue, 23 Jul 2019 21:36:04 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hq2S2-0001vA-HZ for xen-devel@lists.xenproject.org; Tue, 23 Jul 2019 21:36:02 +0000 X-Inumbo-ID: dcf360ae-ad91-11e9-93d8-a38452e62f58 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id dcf360ae-ad91-11e9-93d8-a38452e62f58; Tue, 23 Jul 2019 21:36:00 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C868A28; Tue, 23 Jul 2019 14:35:59 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C36173F71F; Tue, 23 Jul 2019 14:35:58 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 23 Jul 2019 22:35:46 +0100 Message-Id: <20190723213553.22300-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH 0/7] xen/arm: Xen hardening for newer Armv8 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , George Dunlap , Ian Jackson , Julien Grall , Volodymyr Babchuk MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi all, This is a not-yet complete series to harden Xen for later revision of Armv8. The main goals are: - Reducing the number of BUG_ON() to check guest state - Fix system registers size as they are always 64-bit on AArch64 (not 32-bit!). There are more work to do. I will send them in smaller batch as I find spare time to rework bits of Xen. Note that patch #1 was already sent separately but added here for convenience. Cheers, Julien Grall (7): xen/public: arch-arm: Restrict the visibility of struct vcpu_guest_core_regs xen/arm: SCTLR_EL1 is a 64-bit register on Arm64 xen/arm: Rework psr_mode_is_32bit() xen/arm: traps: Avoid using BUG_ON() in _show_registers() xen/arm: traps: Avoid BUG_ON() in do_trap_brk() xen/arm: vsmc: The function identifier is always 32-bit xen/arm: types: Specify the zero padding in the definition of PRIregister tools/xentrace/xenctx.c | 4 ++- xen/arch/arm/guest_walk.c | 2 +- xen/arch/arm/traps.c | 73 ++++++++++++++++++++----------------------- xen/arch/arm/vsmc.c | 4 +-- xen/include/asm-arm/domain.h | 3 +- xen/include/asm-arm/p2m.h | 4 +-- xen/include/asm-arm/regs.h | 9 +++++- xen/include/asm-arm/types.h | 4 +-- xen/include/public/arch-arm.h | 28 ++++++++--------- 9 files changed, 68 insertions(+), 63 deletions(-)