Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp526973rwb; Wed, 16 Nov 2022 04:22:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf6gqe3TberhWJ6BhZ7Wz9PuYkJyTNT4Slh0O7dVscNu2muW2gFXTQpfHOB8t7VTl7WcGNsQ X-Received: by 2002:a17:90b:2501:b0:213:2173:f431 with SMTP id ns1-20020a17090b250100b002132173f431mr3380284pjb.201.1668601334174; Wed, 16 Nov 2022 04:22:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668601334; cv=none; d=google.com; s=arc-20160816; b=h1m1aFJf3a6aRl2fnPI0KrQ7pshlJ5FM1PHXIt5EfBfaZLENn1TVyBoGVh0Ze11FrV NIrtk905IjzAnzlAMVkn0akI1eLv8SqpdELoPztFu0TTtL7p7lvV0ocw0rzVmX9JJ+hR +pWmEo7dm+rUe/C5e7qevK2wRYSy0FuZWoglKHIKd4S1Sj6BzsGV7kH8wNU7XZ++2pAs eZUVovXNJqEwDDJuOypzsYkeVSf8hdBPcRxjR3lk2RAL6Hr/qmOKdjqMXkWTxdsL479j 3/xy2OwMJ7wdpBSznesV/wzaiwGL3WT3AZAGT6KTFx06bFNkxqCJ5W9m+18fInamy+K8 JMow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=VQ8ph4l1mfdEGV8CU7TCC1pqTufUaTfVC7K/h54NUVo=; b=bM1FM0GklDQdUyjWj/GO/81avVXBpQ9NY3Yo7qPvGOc+WSedOXcYpj5fq9m56O7EKN xshhgHXs6QBatH4FRrK45bi0mTogp6wSQaEhXKqyTMW/yELqiJK9fd+CJtlKRxSM4UjX kBtqjZBgBbvq4WQCiyF73TaWEE/QRLAZNVjaDIKs1oFzRiuTivNDiJivT2L6tEcONoCL AOb2O+qO9szWYNxmGBokNXQ8rdm8pDhtLCcm8FihgOhvpsa9abyxH4vcbJo2cnU3w18V Se7CaPjmCZ1WsC/jK532pu1KXW29x1k4BdfwPY4FdPhkvYcScOyHvMeXFVqK4fJhoW9j /rAg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dw24-20020a17090b095800b001fdd2a56d6dsi1801384pjb.43.2022.11.16.04.22.02; Wed, 16 Nov 2022 04:22:14 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236954AbiKPMRt (ORCPT + 91 others); Wed, 16 Nov 2022 07:17:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233064AbiKPMRX (ORCPT ); Wed, 16 Nov 2022 07:17:23 -0500 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 247F6C74C; Wed, 16 Nov 2022 04:12:44 -0800 (PST) Received: by mail-wm1-f42.google.com with SMTP id p16so11755684wmc.3; Wed, 16 Nov 2022 04:12:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VQ8ph4l1mfdEGV8CU7TCC1pqTufUaTfVC7K/h54NUVo=; b=GkXy3Tyf2/z/m2mWc0e0gkV89UkARM1LvbRt/Y2HNpp72vQCcCcMcpDjwYAW1C+ysI g7gm6sh6w6FlfQdT10RMM6qP1J9sWERkKySn/RaTN1LOp6Mx0n1J3+2utQz/to+C7lrW YE+J91pv6kE6dfZG5kXx8VH8lSAZGnsVbyixVCYJPitLHNU4628Tux5di7+vT0vkt4kJ ou9SS2vdvtWcnS7HOluJl7dlveYsH9Ma8YNRLKBHpE2E7Q1MTLEPmMtievnX9/DQ2LBb QRo0n3e/D3/eDd4DN8OQ9iSuoGdiXM7z0R3b9dxerqTEKL7ytS0iObcjvin1TPfz/YR8 d8HA== X-Gm-Message-State: ANoB5pkiLN+ngSyNtRfyoZzL0j2WFiKuaUmuvx9SMLmizbBcYQzeELmp 56mxsZG6xpYf2jRItx7u0+8= X-Received: by 2002:a05:600c:3ba0:b0:3cf:a6e9:fad6 with SMTP id n32-20020a05600c3ba000b003cfa6e9fad6mr1857948wms.206.1668600762615; Wed, 16 Nov 2022 04:12:42 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id bw24-20020a0560001f9800b00226dba960b4sm14891142wrb.3.2022.11.16.04.12.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 04:12:41 -0800 (PST) Date: Wed, 16 Nov 2022 12:12:39 +0000 From: Wei Liu To: Jinank Jain Cc: jinankjain@microsoft.com, 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 Subject: Re: [PATCH v3 0/5] Add support running nested Microsoft Hypervisor Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 On Thu, Nov 03, 2022 at 01:04:02PM +0000, 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 I see `__weak hv_nested` in this patch. I guess this version has fixed ARM64 build? > 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 > > 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 | 22 ++++++++++ > 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 + > 10 files changed, 141 insertions(+), 14 deletions(-) > > -- > 2.25.1 >