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=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 A12EBC433ED for ; Thu, 13 May 2021 15:18:54 +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 0992961355 for ; Thu, 13 May 2021 15:18:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0992961355 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=f6sbevSztxsEr0UhUNmj4vXJ8Sa/UuUApe8M2zwRifc=; b=Qk1d5SC6yRTFPK5Nd+noOVQ6j D/66/h3rJFDCrW3FquJPkkahLKGTfUdqRSoYyMvIo+l3/e1hCQMt/dt21yofUCohys5k61qle7PS7 g+aoq3j/bFJt4q2zv9KNGSRiyOqMG6zQnetqEh1+w3r6UNLxLaHPiJXycOW1MnVm4g5BcpU+iR1sV IncqYApsfWbG1HTfyMKbzIyejmvWrqYEayN6We1aZiozcg+jSYP/VTiFkhhbeh+eCq0wqrsL/q9b8 4Zvr5bI3RdQSv4XqVYfx848xAxXOAZARPni1JWLJcYmGJOK9nmJCcTkvtiFa4+75XFvCMb630HGl3 9+Hzniddw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhD4m-005qSg-AB; Thu, 13 May 2021 15:16:36 +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 1lhD4k-005qSI-Fb for linux-arm-kernel@desiato.infradead.org; Thu, 13 May 2021 15:16:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=RzW3hfIwG8KNpIuYYvcN7wwNDPoH5ZcYrcAh7yRYkRA=; b=QpsVWJcV+Y8BT9eC/wn0TBUYAQ xnxppw5kMTvAteO5pp+m8oH4CAe6LrRSh6xNQo4FEDOU6qDqCWH2NFq2/XI+xnlxZPNzJIg0xLieP OEBU2esvDDoMEqb46RDkpqlU0YUI8FWMrgkQtgY3da84aNvSQNvYji+zK0EqD0I3RWAYmvI+XZwN5 I6np9M+FPMoXuMay/d5XLJMd1LKPhZvBdFCm9sNjAENs+i4BZIOlImBES9L65N1ueH8S/VEmrwzXC Iz/c+chu/u5lnRGjUS45mgETjk0VmNktBbyhO5CAVK18xGhMuFFCZolQvtqfHyCQwEgl09INjSyOV ZEM0hifA==; Received: from mail-wm1-f48.google.com ([209.85.128.48]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhD4h-00BLjX-Kg for linux-arm-kernel@lists.infradead.org; Thu, 13 May 2021 15:16:32 +0000 Received: by mail-wm1-f48.google.com with SMTP id s5-20020a7bc0c50000b0290147d0c21c51so29664wmh.4 for ; Thu, 13 May 2021 08:16:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=RzW3hfIwG8KNpIuYYvcN7wwNDPoH5ZcYrcAh7yRYkRA=; b=NRRHRnBk/R74ncLYniXGMXWiJ4Z90bg8tAQXRfWKlF3M3gmN+xVqnpws0Jm900fen+ /P5n/edCBWq9WR30eowpRzdT6aC+Kskw8wD0skMo+exHqoiTWfwe8hnpmbPapHtNagYG DUttnc1/IxtAfyIbwuduzohju7p6t43ozi3H2atPpL+j6hdlDJvqek9yUQCYh47Dd5Wz 2OfRDd9MCbLMcNRB4eakF7J2eRE6x16rpPWL/GihnKkgnDg0b4D9os1RzhaCbkZu5cIN TsvZxeHVCI5qLsL46i+TFFHIYT/diDWDpzMf/Vrrv54zWiwc45sxdjpnzWjLC32KYw3g 4MeA== X-Gm-Message-State: AOAM5311s66deVRUCObF3wlP0Hlz+DFh5MJYVqujYsub3gyWkbYxmOV9 y9yP5OSQixZ8F+G0Mm51EXM= X-Google-Smtp-Source: ABdhPJyX1dK+4m59Uoq3vjk43fmBJYXqnMXrwlVKBN04PYK8JNzlDUGq18NLBqgIGq3DH6jXx9AiHg== X-Received: by 2002:a7b:c012:: with SMTP id c18mr4451930wmb.94.1620918988569; Thu, 13 May 2021 08:16:28 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id s83sm2432436wms.16.2021.05.13.08.16.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 08:16:27 -0700 (PDT) Date: Thu, 13 May 2021 15:16:25 +0000 From: Wei Liu To: Michael Kelley Cc: 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 Subject: Re: [PATCH v10 5/7] arm64: hyperv: Initialize hypervisor on boot Message-ID: <20210513151625.ww2cznl4myzwbvg5@liuwe-devbox-debian-v2> References: <1620841067-46606-1-git-send-email-mikelley@microsoft.com> <1620841067-46606-6-git-send-email-mikelley@microsoft.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1620841067-46606-6-git-send-email-mikelley@microsoft.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210513_081631_698880_3096EF0C X-CRM114-Status: GOOD ( 16.87 ) 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 On Wed, May 12, 2021 at 10:37:45AM -0700, Michael Kelley wrote: > Add ARM64-specific code to initialize the Hyper-V > hypervisor when booting as a guest VM. Provide functions > and data structures indicating hypervisor status that > are needed by VMbus driver. > > This code is built only when CONFIG_HYPERV is enabled. > > Signed-off-by: Michael Kelley [...] > /* > * Declare calls to get and set Hyper-V VP register values on ARM64, which > * requires a hypercall. > diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c > index 61845c0..7b17d6a 100644 > --- a/arch/arm64/kernel/setup.c > +++ b/arch/arm64/kernel/setup.c > @@ -49,6 +49,7 @@ > #include > #include > #include > +#include > #include > > static int num_standard_resources; > @@ -355,6 +356,9 @@ void __init __no_sanitize_address setup_arch(char **cmdline_p) > if (acpi_disabled) > unflatten_device_tree(); > > + /* Do after acpi_boot_table_init() so local FADT is available */ > + hyperv_early_init(); > + Arm maintainers, this requires your attention. Thanks. The rest is Hyper-V specific, feel free to skip that portion. Wei. > bootmem_init(); > > kasan_init(); > -- > 1.8.3.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel