From patchwork Fri Jan 3 16:08:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 11316975 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 BD6311395 for ; Fri, 3 Jan 2020 16:10:19 +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 927ED222C3 for ; Fri, 3 Jan 2020 16:10:19 +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="IXbUakvx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 927ED222C3 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 1inPVT-0005Qy-1d; Fri, 03 Jan 2020 16:08:59 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1inPVR-0005Qt-QM for xen-devel@lists.xenproject.org; Fri, 03 Jan 2020 16:08:57 +0000 X-Inumbo-ID: 5834a5b6-2e43-11ea-88e7-bc764e2007e4 Received: from mail-wr1-x443.google.com (unknown [2a00:1450:4864:20::443]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 5834a5b6-2e43-11ea-88e7-bc764e2007e4; Fri, 03 Jan 2020 16:08:57 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id c14so42885305wrn.7 for ; Fri, 03 Jan 2020 08:08:57 -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=ZrZ5Xyiw9ewHG2Rbqe7yXPegI3D1h/MHHDO8qT/4SSo=; b=IXbUakvxbiwkyAkWFtKhHCWHZwTRX++l2fRxwuqWPAup930KiY6KlvpYTMtFBhQj1o rhYWKluqttu7Wfyjc7AMU3lHSxGsmjqYXGQj7TeTbrt4gCXJbZtiuQAIg8sll17r1UWx L+BBVMK/bKtqMgpeMUgVL853Pp7fpw82XMV/UdQPOwO/mLp4X0UDVRyLaafBSRyAKgwb COOHu5uHH22Nks9YwPzgRvGyPotw42HraJWoLp30xglhvncVydPQpFmgOOHsHfv8302R ozPGFaZqFsmhTWP7sTSbQ0sioLd6OXQAgtF/qQYjvgHT3O+5lEq2QD64mwSsBm3BUNGy fhPg== 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=ZrZ5Xyiw9ewHG2Rbqe7yXPegI3D1h/MHHDO8qT/4SSo=; b=mVj5X1+022or+vspyoo/EzPdqp0ZAN/8+GxmmhinTSgsWuky9EfTXt5EwJ/cyYx7mv Ivxd8v82z1NfUhmPkH+nX5NX300BYmDec/DhD8ElUnCjo7WpCH+417+G1RSkWG9V+hg3 unU4Cba94qFLinYl+tr1lYFUpZC5mp3MVjaBzXzxjl9NUMXcX79y0jmnxZJpmaVPmiRp tXPNRabeaohbK5uzWZ4DwXRL+uf+dqqcsY2xc+A7Ai+GHtIxW8vkK/ynz7YI96AE8wBf Lb9bEYK5Kidgz4EUMAuwAcGM2LVoufoLYFRk+nQbGTNtpkwBpSFVBe4Zwv/wJEP0uqw2 dkPg== X-Gm-Message-State: APjAAAXkzTyWzkay/PnBMlNXROa0jVU+wlzRObZRkQVfpP1FgViov4km 6NpXewUt+yg7z+GMjl6Pqdsr9sCoJxPOHg== X-Google-Smtp-Source: APXvYqyLUp/gtOLZmzx4Ndr82rrFn+bWU0V58uXN9PpAFdFc029ZDCkJ52skoEl2gIK2H+ENptmMHA== X-Received: by 2002:a5d:438c:: with SMTP id i12mr90620497wrq.196.1578067736056; Fri, 03 Jan 2020 08:08:56 -0800 (PST) Received: from localhost.localdomain (38.163.200.146.dyn.plus.net. [146.200.163.38]) by smtp.gmail.com with ESMTPSA id z11sm61000235wrt.82.2020.01.03.08.08.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jan 2020 08:08:55 -0800 (PST) From: Wei Liu X-Google-Original-From: Wei Liu To: Xen Development List Date: Fri, 3 Jan 2020 16:08:17 +0000 Message-Id: <20200103160825.19377-1-liuwe@microsoft.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v2 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 least 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/Makefile | 1 + xen/arch/x86/guest/hyperv/hypercall_page.S | 21 ++++ xen/arch/x86/guest/hyperv/hyperv.c | 104 +++++++++++++++++- xen/include/asm-x86/guest.h | 2 +- xen/include/asm-x86/guest/hyperv-hypercall.h | 95 ++++++++++++++++ xen/include/asm-x86/guest/hyperv.h | 10 ++ xen/include/asm-x86/guest/pvh-boot.h | 2 + .../guest/{hypercall.h => xen-hypercall.h} | 2 +- 8 files changed, 232 insertions(+), 5 deletions(-) create mode 100644 xen/arch/x86/guest/hyperv/hypercall_page.S create mode 100644 xen/include/asm-x86/guest/hyperv-hypercall.h rename xen/include/asm-x86/guest/{hypercall.h => xen-hypercall.h} (99%)