Message ID | 20210729195632.489978-3-oupton@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=TA8D=MV=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 2E734C4338F for <linux-arm-kernel@archiver.kernel.org>; Thu, 29 Jul 2021 19:59:19 +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 EF05060720 for <linux-arm-kernel@archiver.kernel.org>; Thu, 29 Jul 2021 19:59:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EF05060720 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:From:Subject:References: Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=L5EV4LZtVZTDOGf3mqEKkYmM7v65a0jeDFWiIwMoGnM=; b=v1+mkbx5eUEOH77INtW0vehjAP 8QJSs5xQtbrZPFPGoh4tLVtADq/o3b15O2vTLUSjSqRsNnWSIbxp94iJ3FnIGg65kZV8CYLTA9CNm t7wIVsHsx3ZWyXnZWVJCS/NwzMSTJqzrnQjznxBc0rVUv+FSDpmkr6c2OcDz90nKs52TgrOvDnYR3 gKlDHp0z8UTrKq/AR4w0Zvy0JaJenMdD8EnfKvTHoK3ixA+aAxhefyTEcOxVDaseC45kCPZzqFaRB dxjdYqJDVfh4d5TayzwdfBqPTlkz7E3cE5RXnJv7LAcuroJtHcjWnibYoKn1LtSxC2R05n7tWQigk OdizFFQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9C9e-005iMG-Gc; Thu, 29 Jul 2021 19:57:18 +0000 Received: from mail-il1-x149.google.com ([2607:f8b0:4864:20::149]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9C99-005i9V-8I for linux-arm-kernel@lists.infradead.org; Thu, 29 Jul 2021 19:56:48 +0000 Received: by mail-il1-x149.google.com with SMTP id y6-20020a92d0c60000b029020757e7bf9fso3828455ila.7 for <linux-arm-kernel@lists.infradead.org>; Thu, 29 Jul 2021 12:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=OUDEC1vqPr7sdUdf2B7zr2nu10+QX6s5o8FUl8jn128=; b=m3lZXoM3uP217QVv6csbkAltS9NEEhlX5Mu2B9nMMbJPkm+CF/zpiI1uNtLlaJ3MpF XKTxlciv8MR41Pp5L7tMTygFtTj8t5ato+tsIPb5PxLea28TW9AIQvorz4AvHHqUrbg0 jl3TKtHlXkF/6dnirx+9CmRoi0oSZz7bUs5HqwZT5mfm5EptQVI1kIijkc+NydchjeGY k0xOPjTs+IS75wZoMWlION+1nkDz7PARYeuzxq5NugWy+CbXKybB1hCyzW6h9gKEWy7+ JUI3EAqUwjfTN7sgZnM5Nc3G7DjRq4i1Np6UemRK4blDB/Bfs7c1L0Ww9qGVNI4nCEqF 71mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=OUDEC1vqPr7sdUdf2B7zr2nu10+QX6s5o8FUl8jn128=; b=hPXyOWrjeIBJoxf0TOrRe38uUKClS9qM1w94u3qzKAIMRkblAoNrTwBGB+AltdM+BN oaBhKdGaxRHLY+ldeS4lS5NCN8W9VWgb4yRTZavVaAN1v3/ppPd7hh+zqkROz1lalJzv EIAhFYEYC6Sr901g836OeafRMKsK3Yg/4cxbPQ6w84am0sgw31wcVmXPvFas5wQwdpCk sBTWru5q/UvC3fLot+rWeD6/Uv+rLsyxeE/EXxSB+NyMYNbDwVZ78O9fz5WhJWKENptX Bieb9bluw7XeFWWd238AhlvJ/+VcNs2ByO4dG48U6yPD31PvdtK1SFCbq65CWzCf5tkh I1XQ== X-Gm-Message-State: AOAM530ALUZhvZRZG/AtMC4k/TkNtW40IMAkTbTezp+tTOcSO/XMFtuA HCKvaibdx0O27kT4PsCsHdzB2z78vLM= X-Google-Smtp-Source: ABdhPJwrrRQSELpkKclDmiXvKjRHCNyfC/t/jEaDJIBbOW61CMAAggTennP0JRqnhAKMtQYKP8Wl+xwYsLI= X-Received: from oupton.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:404]) (user=oupton job=sendgmr) by 2002:a05:6638:2416:: with SMTP id z22mr5873473jat.57.1627588605328; Thu, 29 Jul 2021 12:56:45 -0700 (PDT) Date: Thu, 29 Jul 2021 19:56:31 +0000 In-Reply-To: <20210729195632.489978-1-oupton@google.com> Message-Id: <20210729195632.489978-3-oupton@google.com> Mime-Version: 1.0 References: <20210729195632.489978-1-oupton@google.com> X-Mailer: git-send-email 2.32.0.554.ge1b32706d8-goog Subject: [PATCH 2/3] entry: KVM: Allow use of generic KVM entry w/o full generic support From: Oliver Upton <oupton@google.com> To: kvmarm@lists.cs.columbia.edu Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini <pbonzini@redhat.com>, Marc Zyngier <maz@kernel.org>, James Morse <james.morse@arm.com>, Alexandru Elisei <alexandru.elisei@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Peter Zijlstra <peterz@infradead.org>, Andy Lutomirski <luto@kernel.org>, linux-arm-kernel@lists.infradead.org, Peter Shier <pshier@google.com>, Shakeel Butt <shakeelb@google.com>, Guangyu Shi <guangyus@google.com>, Oliver Upton <oupton@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210729_125647_325057_42E61D36 X-CRM114-Status: GOOD ( 11.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
KVM: arm64: Use generic guest entry infrastructure
|
expand
|
diff --git a/include/linux/entry-kvm.h b/include/linux/entry-kvm.h index 136b8d97d8c0..0d7865a0731c 100644 --- a/include/linux/entry-kvm.h +++ b/include/linux/entry-kvm.h @@ -2,7 +2,11 @@ #ifndef __LINUX_ENTRYKVM_H #define __LINUX_ENTRYKVM_H -#include <linux/entry-common.h> +#include <linux/static_call_types.h> +#include <linux/tracehook.h> +#include <linux/syscalls.h> +#include <linux/seccomp.h> +#include <linux/sched.h> #include <linux/tick.h> /* Transfer to guest mode work */
Some architectures (e.g. arm64) have yet to adopt the generic entry infrastructure. Despite that, it would be nice to use some common plumbing for guest entry/exit handling. For example, KVM/arm64 currently does not handle TIF_NOTIFY_PENDING correctly. Allow use of only the generic KVM entry code by tightening up the include list. No functional change intended. Signed-off-by: Oliver Upton <oupton@google.com> --- include/linux/entry-kvm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)