From mboxrd@z Thu Jan 1 00:00:00 1970 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=-4.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 445D3C4338F for ; Wed, 4 Aug 2021 07:01:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0964060EEA for ; Wed, 4 Aug 2021 07:01:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0964060EEA Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ty/d0QVFcRmHrV2Up9mMIl1fUhopQvA/DvGp3F18UTs=; b=syhimMuCj74cSU LCl59NXi94nOk4wZdLSmOSmULf4aozmf8hlpN0yhsCpIelLoIxJ9LIlgKosFoJRISwG9ShzQMsOPH ZUqHckE/U7yY3xEIoeTUH9PEctDh2QRWmo3ocJe8nHBj9+S1TzNVf8EG8HvdZLT1UoQZRJzz+kBp5 ra8SQ811yyOidNepVP3IYiUGBu7zGVaSEzl+QM1r15sn3Mg/yXltwEjt9bmLBbjUmYbBwCI3WOXpy +kxGpx72VCnQMyhx73uL7rM1XCaFz2z8xkjcYfnANYiUWSypEG+34wHdqN92A0fT3u98PBvGqgoES d2ML+lVCbOEWN/HS66nA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBAsf-004yQM-2y; Wed, 04 Aug 2021 06:59:57 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBAsb-004yPv-Tm for linux-arm-kernel@lists.infradead.org; Wed, 04 Aug 2021 06:59:55 +0000 Received: by mail-lf1-x129.google.com with SMTP id b6so2706984lff.10 for ; Tue, 03 Aug 2021 23:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FyMnszXXyHK4JDa0x/iclyGuG1G0X7e/HsoyPTG9034=; b=O4ScIbiiu9dQgWr9MYBsJ7D7L5y53rgIr6rBY0Al0x6bLaD/QC54vpgVaAnYS29zlG wkTjmNUfxliTIQ0aQU0OZEKx3pSAgIwaYbrBd1b1EdRvMIRH/oScbeKx6KYqu9swRn2z AZxgEa8Lx7vQXXGr8x6tIAiHo+Z7DH/t638EfZLab02YuiXMkqPWdCqWjfTQi3GF7qc2 2aPloOXQpeBfUEMuah/ScHkmRqOGL7yVTNpRmH80JSlRIDGcHGk3W53rikKcZOO4W5AF BrdYfrxYYa6MBdMuPOubwecXugERvoLpUwVVLNrk/9pAsbsWG8GIQ1HzzXBMUjA62zoJ RdMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FyMnszXXyHK4JDa0x/iclyGuG1G0X7e/HsoyPTG9034=; b=VmVljXRfIIg3Nf7aqYmXRzh9pHx9ToVFPH65MhmfV8MiimFa6KdjIqkvkQwJnh3/Oh bdP5zPoUyrYJAGu31NXqhHRo5ks/NUS0Mpr7RTNLTIk/Og18x5wz11InEeAKXndPuHh9 bUdAIMy94C+ZD4/In4i/x+j+8X4FVTHYVB07UXBlAeHpsdXbvbsOycKkGhDxxPC5BVee 5LStxwERqm1YKdiBCp9ZzD40DyECJ3Ru04gu6aeuzkY4vWVod4TCqxZ0yJeJKIo2sKI8 yMjIvRytEmzT4JAV1pcjR1D0wC+DY2EPB72JqFjBXcyFK5a2iWWaT70oVrzHWHWfh9JU sQAA== X-Gm-Message-State: AOAM533h+Mt8tu2BRCi72oea1QvKay8t6hqoOAAFlB3yJLig/QXS7o6z rqL0xbGLErBBW5clGc4kfK83ckdt9KEuK8VTjIgn/w== X-Google-Smtp-Source: ABdhPJw2rUXELmIWFkaMKtzqgTKfHrd105kgYzO8xlzBjLxsLAtt/jBBP3NH6qpDRWX+ZhCBAP9JdOZwYa8M2d7kCpc= X-Received: by 2002:a05:6512:314a:: with SMTP id s10mr1127161lfi.57.1628060388794; Tue, 03 Aug 2021 23:59:48 -0700 (PDT) MIME-Version: 1.0 References: <20210729173300.181775-1-oupton@google.com> <20210729173300.181775-12-oupton@google.com> <875yws2h5w.wl-maz@kernel.org> <87wnp722tm.wl-maz@kernel.org> In-Reply-To: From: Oliver Upton Date: Tue, 3 Aug 2021 23:59:37 -0700 Message-ID: Subject: Re: [PATCH v5 11/13] KVM: arm64: Provide userspace access to the physical counter offset To: Marc Zyngier Cc: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, Paolo Bonzini , Sean Christopherson , Peter Shier , Jim Mattson , David Matlack , Ricardo Koller , Jing Zhang , Raghavendra Rao Anata , James Morse , Alexandru Elisei , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, Andrew Jones X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210803_235954_013342_FFB84F32 X-CRM114-Status: GOOD ( 16.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Marc, On Fri, Jul 30, 2021 at 9:48 AM Oliver Upton wrote: > > On Fri, Jul 30, 2021 at 9:18 AM Marc Zyngier wrote: > > You want the ARM FVP model, or maybe even the Foundation model. It has > > support all the way to ARMv8.7 apparently. I personally use the FVP, > > get in touch offline and I'll help you with the setup. > > > > In general, I tend to trust the ARM models a lot more than QEMU for > > the quality of the emulation. You can tune it in some bizarre way > > (the cache modelling is terrifying), and it will definitely do all > > kind of crazy reordering and speculation. > > Awesome, thanks. I'll give this a try. > I have another spin of this series ready to kick out the door that implements ECV support but ran into some issues testing it... Seems that the ARM Foundation model only implements ECV=0x01, when we need ECV=0x02 for CNTPOFF_EL2 to be valid. Any thoughts, or shall I just send out the series and stare at it long enough to make sure the ECV parts look right ;-) -- Thanks, Oliver _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel