Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FAD8C433F5 for ; Fri, 29 Apr 2022 15:39:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233434AbiD2Pmp (ORCPT ); Fri, 29 Apr 2022 11:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231540AbiD2Pmo (ORCPT ); Fri, 29 Apr 2022 11:42:44 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6AB97D64EF for ; Fri, 29 Apr 2022 08:39:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651246765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JBL72uy5ImMZv8VAWZdys+gULaq3Qe+E3D81Kp3hvvs=; b=jN0UGtp3W34sQbHqB5r0qgKX8oRf1tOy5gRV7Iql/69fWtjcjJiYbymQuLHA5wqIDw7Tgu wNby6W3yFNaYUhVES35PDUtfQ8wq0VCCYyQqOXEerG5LzLR2eFmZm/ZviCllqM/2siwRhn CEit9UBImw7Bh6mzheYlFomEpIl2cpw= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-671-azqk1N4IOFCDgE4-6BZTsw-1; Fri, 29 Apr 2022 11:39:24 -0400 X-MC-Unique: azqk1N4IOFCDgE4-6BZTsw-1 Received: by mail-ed1-f72.google.com with SMTP id r30-20020a50d69e000000b00425e1e97671so4741693edi.18 for ; Fri, 29 Apr 2022 08:39:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=JBL72uy5ImMZv8VAWZdys+gULaq3Qe+E3D81Kp3hvvs=; b=YpvwAZBO5yIxPL5hfcMmVkB+qrvesYfRk3AmSOAIC+SxLwU7X930FYCQzwEpet8pR8 8AjsusNPY4gJvgfHPowqhjKN4MGbcy9FURbMK925ItXPZiPgOu7SU1Y4i4lf2wraOhHg kNKPTHQ78S4ePK5s9l1W3CqC0GDcJ095OjviAT7jBd42H5hQscUUXSDGCx5CHaiBwKee Hn96aDEqefi+yAQ9QojejXKrf1Ttea/3P2VsyKGJFoJiKkhvf6Ehk60ZJ4Ennzegp3SX 8xzxj6PclRdSDPMSvPBq1ctwUAF10bn5eKSbUG06LpOAkI3bE9lICLxZArBlaO/tyL+k L7IQ== X-Gm-Message-State: AOAM5326mhxfHZLpyfpKbXtkqi8NYpGbi3qHfsvs3ck+90j9F7DuJwtj T9W6j1Gkc6qsKV94gRtzbohXDli6yivoLzjDK1usbWv3H/DEAL2jJpBlt1yOa0Q7bNrkToPx+dQ MntxvuuozfmYc X-Received: by 2002:a05:6402:358f:b0:426:2b74:2c03 with SMTP id y15-20020a056402358f00b004262b742c03mr8860848edc.402.1651246762157; Fri, 29 Apr 2022 08:39:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnIPV1ktpBLiiyAWxokXctmbqVg3u3ZDB9FscRhShNh1tFY7vRckRzsB4CZ2EDa+dzsLN61A== X-Received: by 2002:a05:6402:358f:b0:426:2b74:2c03 with SMTP id y15-20020a056402358f00b004262b742c03mr8860826edc.402.1651246761892; Fri, 29 Apr 2022 08:39:21 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:1c09:f536:3de6:228c? ([2001:b07:6468:f312:1c09:f536:3de6:228c]) by smtp.googlemail.com with ESMTPSA id jy28-20020a170907763c00b006f3ef214e53sm725933ejc.185.2022.04.29.08.39.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Apr 2022 08:39:21 -0700 (PDT) Message-ID: Date: Fri, 29 Apr 2022 17:39:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [GIT PULL] KVM/arm64 fixes for 5.18, take #2 Content-Language: en-US To: Marc Zyngier Cc: Alexandru Elisei , Christoffer Dall , Quentin Perret , Will Deacon , James Morse , Suzuki K Poulose , kernel-team@android.com, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org References: <20220429153615.710743-1-maz@kernel.org> From: Paolo Bonzini In-Reply-To: <20220429153615.710743-1-maz@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 4/29/22 17:36, Marc Zyngier wrote: > Paolo, > > Here's a trio of fixes for 5.18. Nothing terribly interesting, but > nonetheless important fixes (two of the bugs are related to AArch32). Cool, will pull soon. Please take a quick look at the flags->data ABI fix, it's one patch on top of 5.18 as you requested and if I hear nothing I'll send it ~Sunday morning to Linus. Thanks, Paolo > Please pull, > > M. > > The following changes since commit 21db83846683d3987666505a3ec38f367708199a: > > selftests: KVM: Free the GIC FD when cleaning up in arch_timer (2022-04-07 08:46:13 +0100) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-5.18-2 > > for you to fetch changes up to 85ea6b1ec915c9dd90caf3674b203999d8c7e062: > > KVM: arm64: Inject exception on out-of-IPA-range translation fault (2022-04-27 23:02:23 +0100) > > ---------------------------------------------------------------- > KVM/arm64 fixes for 5.18, take #2 > > - Take care of faults occuring between the PARange and > IPA range by injecting an exception > > - Fix S2 faults taken from a host EL0 in protected mode > > - Work around Oops caused by a PMU access from a 32bit > guest when PMU has been created. This is a temporary > bodge until we fix it for good. > > ---------------------------------------------------------------- > Alexandru Elisei (1): > KVM/arm64: Don't emulate a PMU for 32-bit guests if feature not set > > Marc Zyngier (1): > KVM: arm64: Inject exception on out-of-IPA-range translation fault > > Will Deacon (1): > KVM: arm64: Handle host stage-2 faults from 32-bit EL0 > > arch/arm64/include/asm/kvm_emulate.h | 1 + > arch/arm64/kvm/hyp/nvhe/host.S | 18 +++++++++--------- > arch/arm64/kvm/inject_fault.c | 28 ++++++++++++++++++++++++++++ > arch/arm64/kvm/mmu.c | 19 +++++++++++++++++++ > arch/arm64/kvm/pmu-emul.c | 23 ++++++++++++++++++++++- > 5 files changed, 79 insertions(+), 10 deletions(-) >