Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3430C43215 for ; Thu, 14 Nov 2019 15:47:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B754620718 for ; Thu, 14 Nov 2019 15:47:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727054AbfKNPrs (ORCPT ); Thu, 14 Nov 2019 10:47:48 -0500 Received: from foss.arm.com ([217.140.110.172]:45320 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727022AbfKNPrr (ORCPT ); Thu, 14 Nov 2019 10:47:47 -0500 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 A3F05328; Thu, 14 Nov 2019 07:47:46 -0800 (PST) Received: from [10.1.196.63] (e123195-lin.cambridge.arm.com [10.1.196.63]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9842A3F52E; Thu, 14 Nov 2019 07:47:45 -0800 (PST) Subject: Re: [kvm-unit-tests PATCH 09/17] arm: gic: Add test for flipping GICD_CTLR.DS To: Peter Maydell Cc: Vladimir Murzin , Andre Przywara , kvm-devel , Marc Zyngier , Paolo Bonzini , kvmarm@lists.cs.columbia.edu, arm-mail-list References: <20191108144240.204202-1-andre.przywara@arm.com> <20191108144240.204202-10-andre.przywara@arm.com> <2e14ccd4-89f4-aa90-cc58-bebf0e2eeede@arm.com> <7ca57a0c-3934-1778-e3f9-a3eee0658002@arm.com> <20191114141745.32d3b89c@donnerap.cambridge.arm.com> <90cdc695-f761-26bd-d2a7-f8655ce04463@arm.com> <187393bb-a32d-092d-d0ea-44c58a54d1de@arm.com> From: Alexandru Elisei Message-ID: <241e3df3-e3e3-14a0-3fbe-5398a1bf9d00@arm.com> Date: Thu, 14 Nov 2019 15:47:40 +0000 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Hi, On 11/14/19 3:27 PM, Peter Maydell wrote: > On Thu, 14 Nov 2019 at 15:21, Alexandru Elisei wrote: >> TCG emulates a GIC with a single security state for me: >> >> /usr/bin/qemu-system-aarch64 -nodefaults -machine virt,gic-version=3,accel=tcg >> -cpu cortex-a57 -device virtio-serial-device -device virtconsole,chardev=ctd >> -chardev testdev,id=ctd -device pci-testdev -display none -serial stdio -kernel >> arm/gic.flat -append irq > The virt board doesn't do EL3 by default, but if you add -machine secure=true > to your command line then it it should emulate it, including a > trustzone-aware GIC. > > thanks > -- PMM Indeed, and that made the test fail because apparently qemu implements it as RAZ/WI (which is allowed by the architecture). Thank you for the suggestion! Thanks, Alex