Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1295987pxb; Thu, 4 Feb 2021 09:21:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmrCRFBQqaFBEncmrhUKPfBrgxEdqO8WbxFrKbqvKecRhVlNG3t0iiDl+a6il0kkYcxCt/ X-Received: by 2002:aa7:d808:: with SMTP id v8mr3582edq.380.1612459282325; Thu, 04 Feb 2021 09:21:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612459282; cv=pass; d=google.com; s=arc-20160816; b=eKLvf/UvpgK6/Nd6TixGw3UKDAU04gBlQZLY+balcqQ9KP7O9YF18PH2/GIYeUJG5e dtV1YdN2ec3yq5AZoTOFmrxAscU8QwXtJAGwIEi/1tm7n3oc2DeYoF9xpWHJczQHKR9N Q6pb/3vCwgIFZv9xFKrHYECIHTmiI8SE1tC4ypDpOqQmJ3doQxrnaXqQJwYz9DqgeffP 87GyEapDe2yXqRJFlZqNw6HfVFodthufEP4C+1JjT46jcGG1cULYl4BHCx9DeBgIFr+0 7mQ1kdQ9slRrsvSQFe4zdJuc4dTg6ZodT5PvV2wFWmK2xYq8uXF1CnamB2n/fMl0AUd3 XHsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=sg8OWryhcbm5PPDTzpUpiV7uwXF+JTuCGfX9xgE+sIU=; b=G4Zq8BhTMj7QdrQ3h7nYLUUwb4YvIciyzJjuQeqLn9A4MEoWecFXf52ya4+M/i+VHM quXv+b9igVxEy7mKlBkRpI5EtGgwihAMCbscKAEjUPUXJ2oFoMqoyU6P+i/KRwSX8Qui bHvDWxgKJqv+Kc5YDJ6xzvIDD2fccs5hEK69IAwVeUfcS4NJn/DPcP/ZM/bopl2o5uCd XbUXeRUugZHdAMtwE3iwGf4aaUDsdmDmhz7TfUH6GUe0nveFAa98EGXRTMO0C10baBuI zDBKf4iCpdh1y0mdxBTo7G7EleEWpy2210dkKRQN5GEWkj/vTRLsK8X90zy24HagqYjo SOOg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=KBLRVrN9; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kd11si2574937ejc.396.2021.02.04.09.20.56; Thu, 04 Feb 2021 09:21:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=KBLRVrN9; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238371AbhBDRRG (ORCPT + 99 others); Thu, 4 Feb 2021 12:17:06 -0500 Received: from mail-dm6nam12on2128.outbound.protection.outlook.com ([40.107.243.128]:46817 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238159AbhBDROV (ORCPT ); Thu, 4 Feb 2021 12:14:21 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=clEtMrXbov7M1Y87q/2whjYgF2nniwnp+oZnYzyS+8MvGK/pQlOKWhoy/WKSx2OAtm29V2ukgyRkxg198i9sX186+hRs9dAKnBkE3pePZs24bbPo7sRkcvPoTyTFTFgAN8BegShdpCRH6bd+1jJ5Z8FT0Z+oPDZ8u+ebtmaALPD5bps201ZMM/h0wVIaxIVDdCIev/7kDv3C2JBeN0ddRZbYSI5g0zYZZ5Uy+2wD+h9vlnB5OrqH5m46IkzNdGA313cwk22LyK3eCOqTCbg4y14FeXluafAsJCjEqFeKIzgWf0szdzUfPZ10peo4VXN4lpy2eitiM8G7s7HdSP14ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sg8OWryhcbm5PPDTzpUpiV7uwXF+JTuCGfX9xgE+sIU=; b=PEtihQDc6g5Y0CR5BLN2/7F7ItwCja4EFdLFoGflB8dgQT5AA+z7FcoVP+5I65mbVhN1izV53rFpugV3GtnI0gpXuPvFGbaecGOhHrjDz+1Xl+7OmeLmRpM+RyPfowA8960Gz88AhlP2wTrr67+CfX//pe00QWs2LBkrIkAloiU1+CBmLmWMAwTGkvgsDf3+8Y+U2gEe0iXJMg5eFwUwOhab1x96G6vS/BkGut98UsHcjjEnYi6s1Cm3vQzRxFe84uoTTXebb5z+Lh+35OMEJah9TTF0eGpqRrJSyE3XU5p/6WnujNf+D+d96GyOfQeqftRP6POHI1xuA+zqdtjAZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sg8OWryhcbm5PPDTzpUpiV7uwXF+JTuCGfX9xgE+sIU=; b=KBLRVrN9B+CkviZRMj1My1YvPgkBVaPAI7i6ZRyGK82sILhWJHTvYRKS4siSbEPC7mwYQS10axkecdPhe5PkbdgqVckBTPmysVjGICCKSA930KwOCEgzBVLEInETIf4AUoRPbWTNVDV4hHj476MfhUhQ0lK9fjoDGGJpofWFRKQ= Received: from (2603:10b6:301:7c::11) by MW4PR21MB1873.namprd21.prod.outlook.com (2603:10b6:303:77::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.3; Thu, 4 Feb 2021 17:13:30 +0000 Received: from MWHPR21MB1593.namprd21.prod.outlook.com ([fe80::9c8:94c9:faf1:17c2]) by MWHPR21MB1593.namprd21.prod.outlook.com ([fe80::9c8:94c9:faf1:17c2%9]) with mapi id 15.20.3846.006; Thu, 4 Feb 2021 17:13:30 +0000 From: Michael Kelley To: Wei Liu , Linux on Hyper-V List CC: "virtualization@lists.linux-foundation.org" , Linux Kernel List , Vineeth Pillai , Sunil Muthuswamy , Nuno Das Neves , "pasha.tatashin@soleen.com" , Lillian Grassin-Drake , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Arnd Bergmann , "open list:GENERIC INCLUDE/ASM HEADER FILES" Subject: RE: [PATCH v6 09/16] x86/hyperv: provide a bunch of helper functions Thread-Topic: [PATCH v6 09/16] x86/hyperv: provide a bunch of helper functions Thread-Index: AQHW+j3uULlbgWjr406sbgkChiWFS6pIPA1Q Date: Thu, 4 Feb 2021 17:13:30 +0000 Message-ID: References: <20210203150435.27941-1-wei.liu@kernel.org> <20210203150435.27941-10-wei.liu@kernel.org> In-Reply-To: <20210203150435.27941-10-wei.liu@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2021-02-04T17:13:28Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=4588920b-1c53-49ac-b87f-40a865c55e7d; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0 authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [24.22.167.197] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 86a5f865-d5ff-45cc-c7c8-08d8c930320b x-ms-traffictypediagnostic: MW4PR21MB1873: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:265; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7LftyXfomziHgK4RsjPwuL+WqjkQlRb4C4caAS3+n483+96khC/7AVovxBmCPJUnxMdMSOxKfronhuJI+5Twsq5CjeNZbECnrv8hzPNqI4UdXV68N2l8QzlQ/aplWT0DxZPhGdb8CHQTk+HuJV+rCbs9KdGhJObbPEnnEvopMmmWG5PASCo4dvphb8N4mpUXv6OltJh7rErLklJ7JcUskGxxxcvUJQUEM/SKvxrkasRoqnw2ukPLiE+Q6a6Y7nL92iXPnhl6kzNXYeGS1XSFKX9C9O+hIsGxyCQCigA96vz0oqMjoXLSTR8U5jzJDaAsVcHqqoaeezPCsY0YTekOl89b3HqwomR0xR8NXsxYf7d9IKpazSWZ4zpaswRjCDtJw13DLmHp/W+j8fetLYSnRXp9eABFHFdWkHju8jNRgp4RUwbCaglbDWar5M+kN5auf7PhkFKi8bktAA64CN+RP2MjitAuqNrf32vCJTEDSa4EqhbR2pHHG6eBGjJsyhojc2+/Tny79k0EQizAy1fZNg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR21MB1593.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(366004)(376002)(346002)(136003)(39860400002)(8990500004)(7696005)(26005)(8936002)(8676002)(64756008)(66556008)(82960400001)(4326008)(54906003)(316002)(33656002)(110136005)(76116006)(66946007)(5660300002)(2906002)(55016002)(10290500003)(82950400001)(478600001)(186003)(7416002)(52536014)(9686003)(6506007)(71200400001)(66476007)(86362001)(66446008)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: 6Gxn64uwdUnPS8g1h2s48DhVz6W1H7Foj1N5bAsV7U4dGpZsS3K67WllmBD8uLhozTGhP4glXf5i9xcIpX0b6cefO+DNyWQ14JdRavOdgGmyURQwGDXIqt96DY0LumjeNy0A0ot15y+fshl0ACoDxu62x04Z28a9BZTshmSTn/OCPswqEG45GbU8xtPJ8NRrmTU3TVajSssNHznJiEbPGbJo1BHlfgpNEiIkNrLdhXznaTkz6naQEOEYcWAf083RIpA2oMo7YftzjE/ozy0UHkWWO0yXzK+sNATyNe2hbU00XsiIDKy+7Tv4cbJIAgLVqV4Z81EoOgyZprZccr3QCVUuYaz1pzBGoS8moHbRT4pMDUgY4gih21pECf/LNZ0sBTaRLdertGEg5XwB5auNbCjphBTYy5VrI5Z3wyx3neSVWQdMlSxVGe+fyp8dXigUHcacXUMT5HyvUcrmexigZJCHtqoB0A1qMY7uqnhrBUGr19COKZ2cdVcjsRuBrlsTIz3+p+lZ/KHuRUug0pmkGbrMuZFQBQJJKTn3pHzFfT+JIgDH4SrFVZUTumkjCx8tfuKA8if7FD8S+j454ZmqFLOR1wP8/XubhOlx6gp7O2yZ4Fpf/66IK/H+e2Incsd5Jf1/FeO37qHfEEvxlMTecfHEGo552L12Urd4JRDbHLlXweg3fch9Qsrd962Dy5z5xbTNrINQLWRG/FqppaFjjExAQMNJVTJJtQxtVoKKZ8M= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR21MB1593.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86a5f865-d5ff-45cc-c7c8-08d8c930320b X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Feb 2021 17:13:30.6062 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: oEWLTLBHjuKweXvV7UWq0a4uYFzDbrRGYK/YGmmjDI2d+fKN++Am9U/STAgfbZiO8U3qM1SO431YEZ3LlW3xwJZy6iBA0NTD9IfkApH/7fc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR21MB1873 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wei Liu Sent: Wednesday, February 3, 2021 7:04 A= M >=20 > They are used to deposit pages into Microsoft Hypervisor and bring up > logical and virtual processors. >=20 > Signed-off-by: Lillian Grassin-Drake > Signed-off-by: Sunil Muthuswamy > Signed-off-by: Nuno Das Neves > Co-Developed-by: Lillian Grassin-Drake > Co-Developed-by: Sunil Muthuswamy > Co-Developed-by: Nuno Das Neves > Signed-off-by: Wei Liu > --- > v6: > 1. Address Michael's comments. >=20 > v4: Fix compilation issue when CONFIG_ACPI_NUMA is not set. >=20 > v3: > 1. Add __packed to structures. > 2. Drop unnecessary exports. >=20 > v2: > 1. Adapt to hypervisor side changes > 2. Address Vitaly's comments >=20 > use u64 status >=20 > pages >=20 > major comments >=20 > minor comments >=20 > rely on acpi code > --- > arch/x86/hyperv/Makefile | 2 +- > arch/x86/hyperv/hv_proc.c | 219 ++++++++++++++++++++++++++++++ > arch/x86/include/asm/mshyperv.h | 4 + > include/asm-generic/hyperv-tlfs.h | 67 +++++++++ > 4 files changed, 291 insertions(+), 1 deletion(-) > create mode 100644 arch/x86/hyperv/hv_proc.c >=20 Reviewed-by: Michael Kelley