Message ID | 1620841067-46606-2-git-send-email-mikelley@microsoft.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=piaZ=KH=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.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,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 16E42C433B4 for <linux-arm-kernel@archiver.kernel.org>; Wed, 12 May 2021 17:41:16 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 61A0661264 for <linux-arm-kernel@archiver.kernel.org>; Wed, 12 May 2021 17:41:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 61A0661264 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=microsoft.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TNUKj9HxxwLhg3eimLYzb10GUO9nJZJQKr4igsyn1v8=; b=m2Ue0xKDnYDJkQaiSwaoBHzJi 2yW8Jk5/jzmnPY7KE8xbzpOa2K3QcLv+hpnhk4sTWi4QSMw5HirmCsSnVsbqQbFtojR3iFwsFH80g 8zsELJR3/ScBvfiJ/YQUYzO0INAzHhSULk2vGiC3XRLOfLQS5e2FB//8wlP4uyFJBfsYFQgqIIAXr d+7V7ad5KMsR/Uo8Cwn7yBlePCLw4DwD2aoS2aP0TMUxRXTQ2UR1KcVwBC02PZ46n2MMfYBFKq+5z ZEdolEII27pr5ZPO72k4QjE1o4FfH1fCtYZ1NIJee5Nzn4ALfoQ7O+9d2RuYZbIXVCAORr3p40NYW Wd0OopAEg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgspR-003SMw-BU; Wed, 12 May 2021 17:39:25 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgsok-003SHp-8s for linux-arm-kernel@desiato.infradead.org; Wed, 12 May 2021 17:38:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=hOFtTvVdAPoQYxAu5wckDjgjGdJnlvSVdvj0HU35bJA=; b=qv+2YbuiHjkISKfWN7ktCCm6nz Q7NKhjC/T/1b8yh20RoVjnEnpwP13gecDxFR6u8KGAJV4VgKFtEfcV/+qt7HGbC/RtWugiaJsURfY OQnJePenGI9cRRk+HnYH2/V7Kt48O9zd3hd76DkGeCaiFGuWBA49b///fqNZzCU3dMuIu66J+0c1w /ZDwBI6Og+bea5vB7vMC3jVlBLSjCXqb+lyPQ6Xmna3BxuRnwEMSDqzTRz46LT4oNd1eG3bRToaiD pZmqyvws5rj+yvgt74qJxIXm5sg6yiNQia6VXqyUE9a8aJEVeL3EZtQgE4IcqVVY8NN18x0r6zCco 3D8blJcg==; Received: from mail-dm6nam12on2096.outbound.protection.outlook.com ([40.107.243.96] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgsoh-00AeXR-7v for linux-arm-kernel@lists.infradead.org; Wed, 12 May 2021 17:38:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g0X4arHEliW0gMUzSuOP2jDYSiQiEFL/XsmdzzBRFv5NzS/52YdFN2gLLW0YwxJVcaZPTzE/eLtrA79M5Exzbouo1wPXv4qF/kuU+5OQrZAo0m5cJJXCYkqZ2Icy6xNftUYnoVwXuHRihEqE80QKOyCVYxcyJjDQi+qZovNvN8LaFhhFgpuwhEW1tQIwCS4XFLdAOZb0ZU0cTBIvNI6xCVFJqhFN1OXfaIT5Nvef6J7i1pPoOpGMG2ORI90ky1JTeWarg98Sx032wGg7TTBBGUpFF/c9+4mfNqTkU6fcnatfZWxaZyds0cpXXWKVwZWu9B4W3gjQo7Ma3jKsOykSnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hOFtTvVdAPoQYxAu5wckDjgjGdJnlvSVdvj0HU35bJA=; b=TJkMT4PZYxDDQgCq22T6gYMjAQ3FsxBGa8ddjBA65OVA+HeigrJ6H1CSm4NXL4PEugSePz9NVWmR+vNNbexM6+/Lo62pyayomTwL28INs4V8qu/ktQcajcsfifhpwWIo9VYyd8QMoaXmP2S2DTvhEfraxxRCrMgAEMEO/Wueh1SvfoF0gHGkxN70+Yuhy2OCrDUtnCSzp44u2BOhlsxpqp6DdUDecF3FiICRMZmJ4HTDUqcdDq5b/g6sge+T9At2DWcF9yIskUnzH29z0pvKnx0TIdtv9BT6j4EHw9pgkpoN3CSrVi+qg+J20PMlZIzyLaq0BWAZryUAyDQzfB30dQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hOFtTvVdAPoQYxAu5wckDjgjGdJnlvSVdvj0HU35bJA=; b=h3jTSynH/zN0vqSpENcurjM6jPIKI4mDj4qyDl/lccj8oqAdsAyBaXJvxhz2P9hRZVMHRQi5CVHI403bE133fnIm2infzjcr6F9763e7Yq2+JqhYi9PrlLzITUfUagm3oEZcuEn+9icSh+GcCkHk+eOQjdSdKXTea6ziMYkAuKI= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=microsoft.com; Received: from DM6PR21MB1514.namprd21.prod.outlook.com (2603:10b6:5:22d::11) by DM6PR21MB1483.namprd21.prod.outlook.com (2603:10b6:5:25c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.5; Wed, 12 May 2021 17:38:28 +0000 Received: from DM6PR21MB1514.namprd21.prod.outlook.com ([fe80::fdb1:c8ac:5a1f:8588]) by DM6PR21MB1514.namprd21.prod.outlook.com ([fe80::fdb1:c8ac:5a1f:8588%5]) with mapi id 15.20.4150.011; Wed, 12 May 2021 17:38:28 +0000 From: Michael Kelley <mikelley@microsoft.com> To: will@kernel.org, catalin.marinas@arm.com, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-efi@vger.kernel.org, arnd@arndb.de, wei.liu@kernel.org, ardb@kernel.org, daniel.lezcano@linaro.org, kys@microsoft.com Cc: mikelley@microsoft.com Subject: [PATCH v10 1/7] asm-generic: hyperv: Fix incorrect architecture dependencies Date: Wed, 12 May 2021 10:37:41 -0700 Message-Id: <1620841067-46606-2-git-send-email-mikelley@microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1620841067-46606-1-git-send-email-mikelley@microsoft.com> References: <1620841067-46606-1-git-send-email-mikelley@microsoft.com> X-Originating-IP: [131.107.1.144] X-ClientProxiedBy: CO2PR04CA0102.namprd04.prod.outlook.com (2603:10b6:104:6::28) To DM6PR21MB1514.namprd21.prod.outlook.com (2603:10b6:5:22d::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mhkdev.corp.microsoft.com (131.107.1.144) by CO2PR04CA0102.namprd04.prod.outlook.com (2603:10b6:104:6::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Wed, 12 May 2021 17:38:27 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1b1c32b8-ba6f-4742-dfac-08d9156cc07d X-MS-TrafficTypeDiagnostic: DM6PR21MB1483: X-MS-Exchange-Transport-Forked: True X-LD-Processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr X-Microsoft-Antispam-PRVS: <DM6PR21MB148356D554155C3E10E341FFD7529@DM6PR21MB1483.namprd21.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jrhoLd9OwqUhFewwQ7VQtApqK/hzbKF8vVjXb0zyHI3asuU/8KZu4FxcuwE531iW9v1nixMG9u0QsGlsYkruxYerPpqHhgteqJHAT0BgkqDY4TIRg1t1BWFfjLGf3upGTfFsSdTopkBxziN0UnUMxhWfU6wJhklWK6vvhu1USoBbv5b+8NwQhYhxdoVI4KM1Z/Nda7PeDDefKZxBCbgFW8tK3N05s2pFKS0OaJeWsPQlhWnHvp4iu9zWSHKIh/AzPyxVxL1AH8oGpM1Dzzc4QzgSrEqqRl2MXotl9/V/6rWY5pWWIHcOIf518Q/pqu464G+KE0AFhR9raGy9YzTubDdj3noSuVzFejsM7pwzcjkmMFQyiI3luu4pxJQTZ57N1Xk/fo5vp1VwVMmO8FpAREYV+u0WpPsZOprLh9QILHcI03vsWZz5cqCKantf7Wnk46olnW6fWZNye+LSDKVJ9J13S7LULeqNFUvjbNpK91Nd2HI4f9A1RjWL+vujphO6QiJKD28GwmBVAnSZ+IVBDex9RkBKCgT6YRTdPsNQbvkFVkcCnCV6dH4r+Xkm0MtyTK0Es5zi22Gi4uMfjOZpyOHvm/84rQgTV4jGRFqBXUbglws7/jaJfNwC2FnriHAUEac/uLARCkAe/ym308q7XdPYdx2EztV8DO8hc3yE2aIvrWJbPXl/14IvYMimyhGE X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR21MB1514.namprd21.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(8936002)(6636002)(316002)(478600001)(8676002)(86362001)(66556008)(921005)(16526019)(10290500003)(7696005)(52116002)(7416002)(2906002)(186003)(66476007)(4326008)(82960400001)(2616005)(82950400001)(956004)(66946007)(6486002)(6666004)(38100700002)(38350700002)(5660300002)(107886003)(36756003)(26005)(83380400001)(41533002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: j2X+bKhSzleFXJp757pZ1UpeY2FyW1mmK2VtZ3lwzGEpxrK3PuX5XLODYKyoL6xf1pikyqLCQPlN6oeDlD037HgC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+S2BUjXVQZGwGL17kPLRpFu/fylZ8as7pKEQhti8suPl+d95wg+lOUlDfsq1VmcuvYXzd/H1pi/UIhmGgkGUkeP9VfuTnAm1DG7jQmlv7yFK3CAolQBsxmx7KX/ga/MUpZF5P5vVmBPAC+ub2tHJ+jpllNrYav7SuQakoEjjJLg+OXvTezC958Nazvz3cKGYThGmwpQK1r X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b1c32b8-ba6f-4742-dfac-08d9156cc07d X-MS-Exchange-CrossTenant-AuthSource: DM6PR21MB1514.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2021 17:38:28.1145 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: f6eTdiZb29W9x2v7+UsXH0Bv/V+7FVEbZDShmbHLvoldQLy/FVh3FzzXqO6mYKUMuwnmn6FDvgw6ZWea1JRhzA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR21MB1483 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210512_103839_306181_0D9DD2DE X-CRM114-Status: GOOD ( 12.15 ) 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 |
Enable Linux guests on Hyper-V on ARM64
|
expand
|
diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h index 67ff0d6..45c48b0 100644 --- a/arch/x86/include/asm/mshyperv.h +++ b/arch/x86/include/asm/mshyperv.h @@ -36,7 +36,6 @@ static inline u64 hv_get_register(unsigned int reg) extern int hyperv_init_cpuhp; extern void *hv_hypercall_pg; -extern void __percpu **hyperv_pcpu_input_arg; extern void __percpu **hyperv_pcpu_output_arg; extern u64 hv_current_partition_id; @@ -170,8 +169,6 @@ int hyperv_fill_flush_guest_mapping_list( struct hv_guest_mapping_flush_list *flush, u64 start_gfn, u64 end_gfn); -extern bool hv_root_partition; - #ifdef CONFIG_X86_64 void hv_apic_init(void); void __init hv_init_spinlocks(void); diff --git a/include/asm-generic/mshyperv.h b/include/asm-generic/mshyperv.h index 9a000ba..22c92b8 100644 --- a/include/asm-generic/mshyperv.h +++ b/include/asm-generic/mshyperv.h @@ -22,6 +22,7 @@ #include <linux/atomic.h> #include <linux/bitops.h> #include <linux/cpumask.h> +#include <linux/nmi.h> #include <asm/ptrace.h> #include <asm/hyperv-tlfs.h> @@ -151,6 +152,8 @@ static inline void vmbus_signal_eom(struct hv_message *msg, u32 old_msg_type) extern int vmbus_interrupt; extern int vmbus_irq; +extern bool hv_root_partition; + #if IS_ENABLED(CONFIG_HYPERV) /* * Hypervisor's notion of virtual processor ID is different from @@ -161,6 +164,8 @@ static inline void vmbus_signal_eom(struct hv_message *msg, u32 old_msg_type) extern u32 *hv_vp_index; extern u32 hv_max_vp_index; +extern void __percpu **hyperv_pcpu_input_arg; + /* Sentinel value for an uninitialized entry in hv_vp_index array */ #define VP_INVAL U32_MAX
Move the declaration of hv_root_partition and hyperv_pcpu_input_arg from the x86-specific mshyperv.h to the arch independent mshyperv.h since they are used by arch independent code. While here, add a missing #include needed to compile correctly on ARM64. Signed-off-by: Michael Kelley <mikelley@microsoft.com> --- arch/x86/include/asm/mshyperv.h | 3 --- include/asm-generic/mshyperv.h | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-)