Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1784165rwi; Thu, 3 Nov 2022 09:02:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ICpibmT7XhMnpUB80yLgAfXrz4KvwmNhiA3XRykf4g13X0XCQvlrnBx75J78zQdF8ATJC X-Received: by 2002:a17:907:aa1:b0:7ad:cd92:a48f with SMTP id bz1-20020a1709070aa100b007adcd92a48fmr22605666ejc.369.1667491372569; Thu, 03 Nov 2022 09:02:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667491372; cv=none; d=google.com; s=arc-20160816; b=kMFG6szRRgNNdZzchA1o4O2KLgZwz8kcZPpTqoN4LQ8MPh0yy/lqbo+IYy6znY3fI/ Lr1Hf9KYOyk3z9D0unUS06ekTMBIqrCYhXu7z44m4IJVCcba09j5634iDLQ9/4feT2Ex entHEWI10LyhVsx6pGaZMWD8iG5lvy1Bh5kbkrFHyTK9wPuSHzG0HpJnd3qc5cIV+255 8kxHrnp2EKpWqpPqg9QdQul+LJUUjY8aUzDSB9CpksT0kMk6V/OOggbRymazBAzRoBoK 97YtW7Nzx2C/KxJTKXt0t9QtynKpbqIKXDGp+TzFyGL2MZZFDNQIqLlnXHJg0pFOkOB2 5HPQ== 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:dkim-signature :dkim-filter; bh=dGJbKDoodjUWaGEJKNZ5IgwCUrNdic5vHQv1H8KYTs0=; b=YN0stUyyd015zbQtmvpIKrah7a2NVdCx4NReOgrx8KhbmJH+mqgUDFVTumjWlm4TnT dWhfBGT2vE7zB4Gcu/nGejPNDCVu4gfLtjUEXZKNX03rZYS+9+INZxh9KNdg4tHEUvdV Q9Yz9fe/fR0X4m6+odC3on6FkVocyVQ6wZws3AaU8w1GGjgJDzP2NGCJ6BzCJplFLbAT yaLeaPlZvQYt2pB0HKYykQNC8/HejDt1NA22S/LI0XZfrHDW8ErdsFCfvYxkTqlqVxsE 6MkSZiHyc13h8a4PCsfoU5HOhWFTvwZhN4u8X8cf3gk5YCsJFco72bYTUGegHMY6fMZF u/9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=BI+Vk9QZ; 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 f9-20020a056402354900b00462b0599679si1908473edd.333.2022.11.03.09.02.21; Thu, 03 Nov 2022 09:02:52 -0700 (PDT) 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=BI+Vk9QZ; 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 S232178AbiKCPnO (ORCPT + 97 others); Thu, 3 Nov 2022 11:43:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232201AbiKCPnH (ORCPT ); Thu, 3 Nov 2022 11:43:07 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CB42E193CD; Thu, 3 Nov 2022 08:42:56 -0700 (PDT) Received: from anrayabh-desk (unknown [167.220.238.193]) by linux.microsoft.com (Postfix) with ESMTPSA id 1B7AC20C28B1; Thu, 3 Nov 2022 08:42:50 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1B7AC20C28B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1667490176; bh=dGJbKDoodjUWaGEJKNZ5IgwCUrNdic5vHQv1H8KYTs0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BI+Vk9QZfKJnQXILdalmH4LWjzuzADgY8mTQSuBZq5lMJm4/ob3ZOsG/D0kBshqzM +MlT4v4n+LCpsazA57rAL3bt7C7pzUc5bNZy2KBu1G+V246y/LCbKNoni9K9wdMxuG 4AJ45YrvsqIC6eJxPIolzwhjvw+Q1J9bkGUr00AM= Date: Thu, 3 Nov 2022 21:12:46 +0530 From: Anirudh Rayabharam 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, 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=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,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 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. In the future, please include a changelog in your cover letter explaining what changed in each version of the series. Anirudh. > > 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 > > 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