Message ID | cover.1669269377.git.jinankjain@linux.microsoft.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3214265wrr; Wed, 23 Nov 2022 22:04:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Kca3gb7yI6WRElbDlDfTeSD1kjlzpalcIdkjGNz78sZHcqZiREjqwzCWYXA7vWgTUr3DW X-Received: by 2002:a17:90a:650c:b0:218:f309:53df with SMTP id i12-20020a17090a650c00b00218f30953dfmr4481160pjj.59.1669269860277; Wed, 23 Nov 2022 22:04:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669269860; cv=none; d=google.com; s=arc-20160816; b=prZs3qFEZqE8f9l+VK9aIXa9013/yMCz7llGmKLe8qOxfrteD+UYe4QroPvs2KQ09B 8RdZ7qw1+eH42PSNFS1u8sZQbx9QVIG2E40VtoTu21yT8UIbtCtfV22lv1/TlUG/o8nK XMf2hfhURPYH8Eup2x7+Vd2Ob34clEb1QmgH9IkYClnFu/UJzPE8oLiHnjoYYjI8XSqt qKZJFQ3Bu5YvxgCT/iuWIDFoEoXvQndfPb/xJhxIP2gcSXqSj/p1t1buW++sjBZ+TScc ZN+so/a0xh/uWC8P/Wo6HYYRPLnxJzvAsPNtRJY5QSwK9JpkuEXyKkSqMMXhH/IkGGsw FiKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=uaep1tK+T+Dq9nuVMJNHF5u820I4ZuS5d6oQfNsn06E=; b=Xr60029WXW42tfB8QXmqnRwvDdFErM37WbpCTa73uvp8lkE1YQ3AxiA31ewEcudiF0 jVF6SWwLgGzeik0DO6guivoWQd866OpaoLaa1KMHwnlyKrQC1ia2qtNXc1+rqMmsF9ey kq7yTwCf+IheMBXEkf4sbpLOLAAtAcpmxfmOmLTUcmzESbjlL3rNEMzLYYQKMQx1HNC3 r1UHP35bjIxSxkYwKO6K/0+LZyanSdoDal5DRzdgymldc5dz+03jiYTtDsfoIVClqXxb 9Z3DZ5Ibhs94r9FIU7OdBdcaVZEf9fsiB0rEmu7N9wnccOrmboY18N+zOShydeUuizeo C83A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=kF5bq17s; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a056a00218200b0056d480f7b92si214327pfi.378.2022.11.23.22.04.07; Wed, 23 Nov 2022 22:04:20 -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=kF5bq17s; 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 S229668AbiKXGCU (ORCPT <rfc822;fengqi706@gmail.com> + 99 others); Thu, 24 Nov 2022 01:02:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiKXGCS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 24 Nov 2022 01:02:18 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0C320C6D1D; Wed, 23 Nov 2022 22:02:17 -0800 (PST) Received: from jinankjain-dranzer.zrrkmle5drku1h0apvxbr2u2ee.ix.internal.cloudapp.net (unknown [20.188.121.5]) by linux.microsoft.com (Postfix) with ESMTPSA id 4819720B83C2; Wed, 23 Nov 2022 22:02:12 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4819720B83C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1669269736; bh=uaep1tK+T+Dq9nuVMJNHF5u820I4ZuS5d6oQfNsn06E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kF5bq17swLg0so2IVd5UTjOk4aV6E6fKfdVm1XosXmD14v6K5AUlKNPf0tRhXzc76 AIJvcz5WK7hwYpWdS/Goc21qE4pOA4BEMzqBqo88jfbaYX1alGdOjARI36KSMz14Cg 92e+E+n0PezaDWafZQrdIm6/kZtvbZX1tyxoF5hY= From: Jinank Jain <jinankjain@linux.microsoft.com> 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, jinankjain@linux.microsoft.com, 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: [PATCH v6 0/5] Add support running nested Microsoft Hypervisor Date: Thu, 24 Nov 2022 06:02:05 +0000 Message-Id: <cover.1669269377.git.jinankjain@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1667406350.git.jinankjain@linux.microsoft.com> References: <cover.1667406350.git.jinankjain@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748403299597734940?= X-GMAIL-MSGID: =?utf-8?q?1750356313071811037?= |
Series |
Add support running nested Microsoft Hypervisor
|
|
Message
Jinank Jain
Nov. 24, 2022, 6:02 a.m. UTC
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 [v6] - Send the correct patches from the right folder 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 | 71 ++++++++++++++++++++++++++++++ arch/x86/kernel/idt.c | 9 ++++ drivers/hv/hv.c | 18 +++++--- drivers/hv/hv_common.c | 9 ++-- drivers/hv/vmbus_drv.c | 5 ++- include/asm-generic/hyperv-tlfs.h | 1 + include/asm-generic/mshyperv.h | 1 + 11 files changed, 168 insertions(+), 39 deletions(-)