Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8427314rwb; Wed, 23 Nov 2022 22:18:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf5NFasd3dYG8iaQ+KOKfl+P6XSts9CI/zPttB8Ftoe40SbUfpvSzTV199/yc5tAvqKYNMWs X-Received: by 2002:a17:906:854a:b0:7ad:b284:1357 with SMTP id h10-20020a170906854a00b007adb2841357mr27514546ejy.149.1669270703775; Wed, 23 Nov 2022 22:18:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669270703; cv=none; d=google.com; s=arc-20160816; b=umn1DqUr8p7cx4cR3tzwWFB6iA5rFlhakUmHDl8+rAtvbvd/XB5M6ZCtWGBbjXFc1w /iEMuAxBPTMxCTPIVhZM85BXJ8Zm2riEmEql6ojcri5CLE0mZiS5CNN3Id/OYJxCvLEK XTOUVMBtR09KD5t9lqqlb6i5ljlPhMxA9b0Um+KKsZinDlmiWCbBksUPQV6qrHHBSJF4 MR3RzsVcq6JFXKuleFObAjiAwi1y3xnG8oaldDDVMObYZKP2oywG+nfyS2GkILuIS91p sqcYU4SqERHpS8K3/7UKBjUEc3tbmxckKp0XsLsgowj8QCK5+4oCjV92jkDmfjMH+SmV qHgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=tzhuwFycoebVcWHMrROkyA4tNeUrjJRxO2O9LjBLL/w=; b=jWSxNzoSxgauxkmCFBpD0i9Cl8yp+N63781LrCFuqFrdVSPw9Vf1tQ4SzsrnVQPJu3 V9iYdkN9ZGwQirt3VgupsmdWy87Uq13/wnPSM39z36vbL0LV8PmZa/eH+mc3LiPCq1MZ KBRn7kbS9z0pTTLOqjxS2ACfHzyy6AlLR0Mx25hi2J6dXgxrDE5L2aq6XTS0+AqLr391 DTEzPCfT3cnVPOVfj2c9QwjCAmKGB60v8FbuFX0CrABxRruQzRVvXUcioF13c0J/qvwr v0d8rMoTjANzEKXzC0FJMq0Myf+YogsiEjLTqo3hUHnumYz2gMRLDuOrA+LbkGUogJQs D5TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=tO4LkNEd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t9-20020a056402524900b004637e92aa81si312142edd.355.2022.11.23.22.17.59; Wed, 23 Nov 2022 22:18:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=tO4LkNEd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229644AbiKXGBq (ORCPT + 88 others); Thu, 24 Nov 2022 01:01:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbiKXGBo (ORCPT ); Thu, 24 Nov 2022 01:01:44 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC6F3C6D1D; Wed, 23 Nov 2022 22:01:43 -0800 (PST) Received: from [10.156.157.53] (unknown [167.220.238.149]) by linux.microsoft.com (Postfix) with ESMTPSA id 07F7320B6C40; Wed, 23 Nov 2022 22:01:37 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 07F7320B6C40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1669269703; bh=tzhuwFycoebVcWHMrROkyA4tNeUrjJRxO2O9LjBLL/w=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=tO4LkNEd0fbiZuhAb4Mq31XvGZG0XXL+EfRHrghgNTWZyWb3Gw0vlZzMu1v5mJkYl etwLU1+1p/bnAVGaO1WUXtpSO3XmxaX8J7vsNM7c2/u8bbvA2USXQVQ3mlSpMv49lA l7tXuSJU3CIPSmaHC6rIGZOQmogLgHCpXO6BbL8k= Subject: Re: [PATCH v5 0/5] Add support running nested Microsoft Hypervisor To: jinankjain@microsoft.com Cc: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, arnd@arndb.de, peterz@infradead.org, jpoimboe@kernel.org, seanjc@google.com, kirill.shutemov@linux.intel.com, ak@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, anrayabh@linux.microsoft.com, mikelley@microsoft.com References: From: Jinank Jain Message-ID: <1f96d38f-adc0-8233-bb95-4937d196ac8d@linux.microsoft.com> Date: Thu, 24 Nov 2022 11:31:35 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please ignore the v5 patch series I posted the wrong set of patches. Regards, Jinank On 11/24/2022 11:23 AM, Jinank Jain wrote: > This patch series plans to add support for running nested Microsoft > Hypervisor. In case of nested Microsoft Hypervisor there are few > privileged hypercalls which need to go L0 Hypervisor instead of L1 > Hypervisor. This patches series basically identifies such hypercalls and > replace them with nested hypercalls. > > Jinank Jain (5): > x86/hyperv: Add support for detecting nested hypervisor > Drivers: hv: Setup synic registers in case of nested root partition > x86/hyperv: Add an interface to do nested hypercalls > Drivers: hv: Enable vmbus driver for nested root partition > x86/hyperv: Change interrupt vector for nested root partition > > [v4] > - Fix ARM64 compilation > > [v5] > - Fix comments from Michael Kelly > > arch/arm64/hyperv/mshyperv.c | 6 +++ > arch/x86/include/asm/hyperv-tlfs.h | 17 ++++++- > arch/x86/include/asm/idtentry.h | 2 + > arch/x86/include/asm/irq_vectors.h | 6 +++ > arch/x86/include/asm/mshyperv.h | 68 ++++++++++++++++------------ > arch/x86/kernel/cpu/mshyperv.c | 71 ++++++++++++++++++++++++++++++ > arch/x86/kernel/idt.c | 9 ++++ > drivers/hv/hv.c | 18 +++++--- > drivers/hv/hv_common.c | 7 ++- > drivers/hv/vmbus_drv.c | 5 ++- > include/asm-generic/hyperv-tlfs.h | 1 + > include/asm-generic/mshyperv.h | 1 + > 12 files changed, 173 insertions(+), 38 deletions(-) >