From patchwork Sun Jan 5 16:47:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 11318501 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 CC7506C1 for ; Sun, 5 Jan 2020 16:49:28 +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 A10B92077B for ; Sun, 5 Jan 2020 16:49:28 +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="W2NQYpfC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A10B92077B 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 1io94b-0003l6-1w; Sun, 05 Jan 2020 16:48:17 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1io94Z-0003l1-Hn for xen-devel@lists.xenproject.org; Sun, 05 Jan 2020 16:48:15 +0000 X-Inumbo-ID: 2a6784f2-2fdb-11ea-88e7-bc764e2007e4 Received: from mail-wm1-x32e.google.com (unknown [2a00:1450:4864:20::32e]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 2a6784f2-2fdb-11ea-88e7-bc764e2007e4; Sun, 05 Jan 2020 16:48:14 +0000 (UTC) Received: by mail-wm1-x32e.google.com with SMTP id c127so10348728wme.1 for ; Sun, 05 Jan 2020 08:48:14 -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=YqWITmzKgwnNwM50EQzuJznaOCRNGNUNDUf+dJX4XnU=; b=W2NQYpfClTnlTaNhj9lyPnPoZl6GafodAOLU4Sm1M/kRHHT6P2OG8VjQLOmBXBFPkC +0gxToPBU3F6Jb1y9ZfMEwEa8s6nym+RiEeim3qOiVH/4ZdDjpdquXLG3QFg3B7bpc3q LUYZAJWeZH8ErUd+XF6OwmSQ4Bij1a8a9b6P06grGX6IZ68hFB/ydS5qEVReB/6FwAX4 t0qvya8VPidxf7fU65nm48eh5JRfpLCMEU5keQMy9DDh/1bX3yTaKSUSlJOajZq5dfSE Y+TLI0RsivLvj5O+zuTw1kzc4cYB8mhguDlspFbxRs/sVcp2UlzWlCbSicKt1bNqgRIt dJow== 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=YqWITmzKgwnNwM50EQzuJznaOCRNGNUNDUf+dJX4XnU=; b=Buq1hsT1qF7I47QhAjLEEZ6OMOuEY3WG4+Qt/zY4iYawCFXXpfMFRjRBUiy92cbFSp n0CeH5FQoNyCWxRN5gxGt1EN5fsD/fqzSQLeMjpbNarjQ1lZgZK+ukaK4FGPxUD+Yf55 gILYdbL9W98m/7MwHJ5IcUR4NBbiQTPGDD8BxAC5F4KP3stvEmMfmNFYS/zpgy6tGi5n OT7i9SVqLHdBN7QnnxrSSRl7oyvLIDIXeJLmkJYx/corBhCTrqTBgMbooIZp3WR6mH5l sa8LHH8blsSXJA6nVdKur9iRB5hOTha7Y3b7z5S5FFjURUYgQhNoYxlS7wSp9XxFgHFK psWQ== X-Gm-Message-State: APjAAAXVd3Nq24AFlxeWuY1S0DXhKPL2rli/anv1zKsVpIFbQOJmzAJz VW9TWCTbjRNq6FF3tK2W85GvIMeiLd8= X-Google-Smtp-Source: APXvYqygLn52dbITqgcImJeKD6GGqlefJo0eoakjSOTF/LPLV3/7/8eCCZ8koDq6E0Bclon6WWLXxA== X-Received: by 2002:a1c:4b09:: with SMTP id y9mr31207878wma.103.1578242893950; Sun, 05 Jan 2020 08:48:13 -0800 (PST) Received: from localhost.localdomain (38.163.200.146.dyn.plus.net. [146.200.163.38]) by smtp.gmail.com with ESMTPSA id y139sm20834028wmd.24.2020.01.05.08.48.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jan 2020 08:48:13 -0800 (PST) From: Wei Liu X-Google-Original-From: Wei Liu To: Xen Development List Date: Sun, 5 Jan 2020 16:47:56 +0000 Message-Id: <20200105164801.26278-1-liuwe@microsoft.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v3 0/5] 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. Wei. Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu Cc: Roger Pau Monné Cc: Michael Kelley Cc: Paul Durrant Wei Liu (5): 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 | 73 ++++++++++++++++- xen/include/asm-x86/guest/hyperv-hcall.h | 95 ++++++++++++++++++++++ xen/include/asm-x86/guest/hyperv.h | 6 ++ 5 files changed, 193 insertions(+), 3 deletions(-) create mode 100644 xen/arch/x86/guest/hyperv/hypercall_page.S create mode 100644 xen/include/asm-x86/guest/hyperv-hcall.h