Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp809726pxy; Sun, 15 Aug 2021 00:52:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCFpbxch5KVWIBMLbXYm0Ugs4GG0zixY7SqnUgOAqDf4gudJtTWVNKBMqgDZU3i3iNRG4U X-Received: by 2002:a05:6402:2049:: with SMTP id bc9mr13081001edb.130.1629013932295; Sun, 15 Aug 2021 00:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629013932; cv=none; d=google.com; s=arc-20160816; b=TPqwcY0DQDEFi4KKEwcSnl43p/o4YHzXZbPlUXY+XzQhYzerWr4woqaKQFThylnWFa XCdu9yW0piE/3TYSXi/ao8UIYmW3GW/O1E6qkLtlCq9kkT5POYmd3KDAymZwV+RKHBL0 Rt/gHP6BCSUwS1iAwLIZ0/gXh/W1pwaZACFTdLEJ1gGNmw1n2O6OdS7zsLdWBSQDLaVl 170Wo6np7BjR+sgBBXBsRkx+YZKCINpsMBY10LQukbd5sVgv+4rV7o1z7ySoM42F5W3x mUdERZHdczeO8Yb2C7JhP0HEmg6oS0dp3Vyz2F62xRPZO2GQkGimncNeor9+dibMfLkg hAeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AeOo2/NJjjRZYAUfR03mnALs9Q9w0Q9REEH1kqJO00E=; b=CUmlOG6eXm/wctdRnOpmJxi5G1yAVzBUl5qK4va8hdFQoL3gyIc6DHLxYMIgQG0Q+5 5bTgwukSpTcQFEJEtuhif5cWFTB3YTVVGMccwzSsQ/KwdPr64ShOsbL+C3UD1sSOAPyA 2aSX3wjmNx3G5/s08zhdPCBq10F/9Uab+DG0SHaBQUJ1zRJd7nEcpb9qVlFElTfVRv3m Pfu7mU6tTx45aRvQ4g19lYzKQQDuZwo9I0aSimdXumjt0Oz9YpnED/3kEEvouvfLZQXj L+qxXooHs0PCEd7gC5tpliySRHEaq+mHiUg+494qRzvbNI0Vg849LWmHLgyPk2MhT3ay i0dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TTisQC8k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec14si6885114edb.84.2021.08.15.00.51.48; Sun, 15 Aug 2021 00:52:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TTisQC8k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236547AbhHOHuy (ORCPT + 99 others); Sun, 15 Aug 2021 03:50:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236141AbhHOHuw (ORCPT ); Sun, 15 Aug 2021 03:50:52 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6954EC061764 for ; Sun, 15 Aug 2021 00:50:22 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id d4so28150242lfk.9 for ; Sun, 15 Aug 2021 00:50:22 -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=AeOo2/NJjjRZYAUfR03mnALs9Q9w0Q9REEH1kqJO00E=; b=TTisQC8k2XZPlvQzmZ2PypsNzh4fKcVGQecrhsZTm8I5mYnu9OEoFUxpfcfGmVEgT0 oFQVCy2noSHCf0NiWo9oKoMHOWWxBSghDOOQEB1aTBF1eW5SMMzli2h1a71UXuWNN9Ro /GlJ3Jun1lsbhCKcSJtjBBoNDi+4kgce+P0wVDtPSRZ3lGAod+4Lo53P4JluPdOuLoeE /Sg95KVEy45JHH+yG/mAuMCvsyiBhlqluH2/E0diCzUutcLj2VsqugSNEZ95RftY7Hen dpLdQ84kgo55aqPP/JTejkYde7MwWUJf1JMuB4iQo8yBm+SP/PmFmoEGt+jQSyW6zhGq c1cg== 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=AeOo2/NJjjRZYAUfR03mnALs9Q9w0Q9REEH1kqJO00E=; b=UAo5l5aOSSFlX/2RsDU/R2wXCG3BhCCXkl7mw+c5giFLrQQw8TuaVfRw/u1haveLJ7 SYaGe4uRQPapUifIRfgLMwjvhQX/7NqWMC3Yl5qwJrULd1fV80b9x1qhcMXn0aaQwRMI TiyXsv2dT/KU6zxmsCmHrhyYL0NJxvF0NDp4w/17UWjDbGaCqQYnXOeell/VWzNmxtqH 3S5aCSHC/RxvUB2k8GuTyPJsykhEgmPLXqabPvvpJly7uYBU1TbWSW9Sn30pt5soc3Y+ Ja59kMoDxPChGi3K/08mEz204fmdzA7lEloz640YDvN8VFgkdPcaiP/8UL8Aw7odH1s2 SVsg== X-Gm-Message-State: AOAM533IlHVWubpNfb1OeV/1vU7qE3xaNfY2E0Wgr4MfXDyAqCMr09ht ZLiWpHwienLQTJDjXhWntjYLnyEugBs9+/rUQhY3tw== X-Received: by 2002:a05:6512:3608:: with SMTP id f8mr7346112lfs.57.1629013819926; Sun, 15 Aug 2021 00:50:19 -0700 (PDT) MIME-Version: 1.0 References: <20210802192809.1851010-1-oupton@google.com> In-Reply-To: <20210802192809.1851010-1-oupton@google.com> From: Oliver Upton Date: Sun, 15 Aug 2021 00:50:09 -0700 Message-ID: Subject: Re: [PATCH v3 0/3] KVM: arm64: Use generic guest entry infrastructure To: kvmarm@lists.cs.columbia.edu Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Thomas Gleixner , Peter Zijlstra , Andy Lutomirski , linux-arm-kernel@lists.infradead.org, Peter Shier , Shakeel Butt , Guangyu Shi Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Friendly ping :) -- Thanks, Oliver On Mon, Aug 2, 2021 at 12:28 PM Oliver Upton wrote: > > The arm64 kernel doesn't yet support the full generic entry > infrastructure. That being said, KVM/arm64 doesn't properly handle > TIF_NOTIFY_RESUME and could pick this up by switching to the generic > guest entry infrasturture. > > Patch 1 adds a missing vCPU stat to ARM64 to record the number of signal > exits to userspace. > > Patch 2 unhitches entry-kvm from entry-generic, as ARM64 doesn't > currently support the generic infrastructure. > > Patch 3 replaces the open-coded entry handling with the generic xfer > function. > > This series was tested on an Ampere Mt. Jade reference system. The > series cleanly applies to kvm/queue (note that this is deliberate as the > generic kvm stats patches have not yet propagated to kvm-arm/queue) at > the following commit: > > 8ad5e63649ff ("KVM: Don't take mmu_lock for range invalidation unless necessary") > > v1 -> v2: > - Address Jing's comment > - Carry Jing's r-b tag > > v2 -> v3: > - Roll all exit conditions into kvm_vcpu_exit_request() (Marc) > - Avoid needlessly checking for work twice (Marc) > > v1: http://lore.kernel.org/r/20210729195632.489978-1-oupton@google.com > v2: http://lore.kernel.org/r/20210729220916.1672875-1-oupton@google.com > > Oliver Upton (3): > KVM: arm64: Record number of signal exits as a vCPU stat > entry: KVM: Allow use of generic KVM entry w/o full generic support > KVM: arm64: Use generic KVM xfer to guest work function > > arch/arm64/include/asm/kvm_host.h | 1 + > arch/arm64/kvm/Kconfig | 1 + > arch/arm64/kvm/arm.c | 71 +++++++++++++++++++------------ > arch/arm64/kvm/guest.c | 1 + > include/linux/entry-kvm.h | 6 ++- > 5 files changed, 52 insertions(+), 28 deletions(-) > > -- > 2.32.0.554.ge1b32706d8-goog >