From patchwork Sun Dec 29 18:33:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 11312363 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BE09414DB for ; Sun, 29 Dec 2019 18:35:11 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 99EA0207E0 for ; Sun, 29 Dec 2019 18:35:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UKr4KEuI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 99EA0207E0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ildO0-0008NV-Sy; Sun, 29 Dec 2019 18:33:56 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ildO0-0008NQ-7A for xen-devel@lists.xenproject.org; Sun, 29 Dec 2019 18:33:56 +0000 X-Inumbo-ID: c4a51ac4-2a69-11ea-88e7-bc764e2007e4 Received: from mail-wm1-x342.google.com (unknown [2a00:1450:4864:20::342]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id c4a51ac4-2a69-11ea-88e7-bc764e2007e4; Sun, 29 Dec 2019 18:33:55 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id p17so12615824wmb.0 for ; Sun, 29 Dec 2019 10:33:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jkTwVQKsAhb6VzIqsXjtfT0j+phDUgGsTQmPhdprOb4=; b=UKr4KEuIZS4EYz/adkEIX9Gr6szwKurQvbnvEvULSU3FYkCUDzMvmfc4R6IJLU8TY3 NqAsosiWzUiXhz0Pgl80WuF/VSl381j9jvEJHulI62Z36bW78LCCFhvl2J/E5nsGLjg5 qS3PlzPwQmrJcwPHF2BKpI+CO76EtuCx+sjgcv+mNgWfH787KujKVwFH6NFtgp8jlE8I 6WMMPhLMw2FcBp7qjvvsaxjJhR3603Dt/KJOttEtKpIIkUUXmdzFE8Gb4Pfrs+xZjfpc fjSjzdP7uZAdq/TnmMjs41nJGuPLWHidmczj09FZAHK05sKmsgjsRYosOcbTqVoTbuS7 hWKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=jkTwVQKsAhb6VzIqsXjtfT0j+phDUgGsTQmPhdprOb4=; b=ZR8WU/J+/KCiI7bm728d7By+pwt5WY15ahfwPfBLdpOwsYD4t94XPTZjWb6AXatBdQ KVjKMswk9qLkZErl49KUDkJ9z4Giq9g8IvMeTr8EOSOnK086hFvX4C3j14lkC2X48lqV 8VZJeyZANCfsrd2GmND+NejHFE6aJFGEqF8Zgf5AJLwxZ2LVDuoQAT7+fi/DOFlTaz23 RTHSqme+yxVUIXKQ+SEth0dzFNXUfhoyvEAt3PqqXVhEnZfTRH5VirIhIICJDhjzLIXk ymP9CS53FwnxTdAi2aO8UiEPkAOnywCph6jnEZRqu4tcE/aXeWIink6cuY/S1lrTaMxx EFeg== X-Gm-Message-State: APjAAAXSY8rTxf706L9iRbS7NvKix0midyeqaPmPC0oY9aJIgI01Ctbi Vi/rOhJhEVq4FdhqMZfm9+9OYBeiFcg= X-Google-Smtp-Source: APXvYqzh7Y4V/hMwuJ1gOPIrlNMgROckRtVORJJwcz7+Xi2u8lg49WBqoo5Ub3ISYTdA7WDJBc+BRQ== X-Received: by 2002:a1c:2504:: with SMTP id l4mr30618978wml.134.1577644434278; Sun, 29 Dec 2019 10:33:54 -0800 (PST) Received: from localhost.localdomain (38.163.200.146.dyn.plus.net. [146.200.163.38]) by smtp.gmail.com with ESMTPSA id f207sm19667903wme.9.2019.12.29.10.33.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2019 10:33:53 -0800 (PST) From: Wei Liu X-Google-Original-From: Wei Liu To: Xen Development List Date: Sun, 29 Dec 2019 18:33:33 +0000 Message-Id: <20191229183341.14877-1-liuwe@microsoft.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 0/8] More Hyper-V infrastructure X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Wei Liu , Wei Liu , Paul Durrant , Andrew Cooper , Michael Kelley , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This patch sereis implements several important functionalities to run Xen on top of Hyper-V. See individual patches for more details. I can only test them lightly and look at disassembly output to check correctness at this stage. At the very last Xen on Hyper-V boots up okay, so it is not breaking anything. Wei. Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu Cc: Roger Pau Monné Cc: Michael Kelley Cc: Paul Durrant Wei Liu (8): x86: include xen/lib.h in guest/pvh-boot.h x86/hyperv: detect absolutely necessary MSRs x86: rename guest/hypercall.h to guest/xen-hypercall.h x86/hyperv: setup hypercall page x86/hyperv: provide Hyper-V hypercall functions x86/hyperv: provide percpu hypercall input page x86/hyperv: retrieve vp_index from Hyper-V x86/hyperv: setup VP assist page xen/arch/x86/guest/hyperv/hyperv.c | 125 +++++++++++++++++- xen/include/asm-x86/guest.h | 2 +- xen/include/asm-x86/guest/hyperv-hypercall.h | 105 +++++++++++++++ xen/include/asm-x86/guest/hyperv.h | 10 ++ xen/include/asm-x86/guest/pvh-boot.h | 2 + .../guest/{hypercall.h => xen-hypercall.h} | 2 +- 6 files changed, 241 insertions(+), 5 deletions(-) create mode 100644 xen/include/asm-x86/guest/hyperv-hypercall.h rename xen/include/asm-x86/guest/{hypercall.h => xen-hypercall.h} (99%)