|
|
Log in / Subscribe / Register

Add support running nested Microsoft Hypervisor

From:  Jinank Jain <jinankjain-AT-linux.microsoft.com>
To:  unlisted-recipients:; (no To-header on input)
Subject:  [PATCH 0/6] Add support running nested Microsoft Hypervisor
Date:  Wed, 02 Nov 2022 14:00:11 +0000
Message-ID:  <cover.1667394408.git.jinankjain@microsoft.com>
Cc:  kys-AT-microsoft.com, haiyangz-AT-microsoft.com, sthemmin-AT-microsoft.com, wei.liu-AT-kernel.org, decui-AT-microsoft.com, tglx-AT-linutronix.de, mingo-AT-redhat.com, bp-AT-alien8.de, dave.hansen-AT-linux.intel.com, x86-AT-kernel.org, hpa-AT-zytor.com, arnd-AT-arndb.de, peterz-AT-infradead.org, jpoimboe-AT-kernel.org, jinankjain-AT-linux.microsoft.com, seanjc-AT-google.com, kirill.shutemov-AT-linux.intel.com, ak-AT-linux.intel.com, sathyanarayanan.kuppuswamy-AT-linux.intel.com, linux-hyperv-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, linux-arch-AT-vger.kernel.org
Archive-link:  Article

From: Jinank Jain <jinankjain@microsoft.com>

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 (6):
  mshv: Add support for detecting nested hypervisor
  hv: Setup synic registers in case of nested root partition
  hv: Set the correct EOM register in case of nested hypervisor
  hv: Add an interface to do nested hypercalls
  hv: Enable vmbus driver for nested root partition
  hv, mshv : 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    | 42 ++++++++++++++++++++---
 arch/x86/kernel/cpu/mshyperv.c     | 22 ++++++++++++
 arch/x86/kernel/idt.c              |  9 +++++
 drivers/hv/hv.c                    | 55 ++++++++++++++++++------------
 drivers/hv/vmbus_drv.c             |  5 +--
 include/asm-generic/hyperv-tlfs.h  |  1 +
 include/asm-generic/mshyperv.h     |  7 +++-
 10 files changed, 137 insertions(+), 29 deletions(-)

-- 
2.25.1



Copyright © 2022, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds