From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38985C433E6 for ; Tue, 2 Feb 2021 18:15:30 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 B68CA64F68 for ; Tue, 2 Feb 2021 18:15:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B68CA64F68 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lists.linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=virtualization-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 7C9A822882; Tue, 2 Feb 2021 18:15:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mPR9eMbqFkVi; Tue, 2 Feb 2021 18:15:28 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id 4648A226EA; Tue, 2 Feb 2021 18:15:28 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 1B517C0FA7; Tue, 2 Feb 2021 18:15:28 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id CA14FC013A for ; Tue, 2 Feb 2021 18:15:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BEE9C226EA for ; Tue, 2 Feb 2021 18:15:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zn0LE5kFL9EH for ; Tue, 2 Feb 2021 18:15:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2105.outbound.protection.outlook.com [40.107.94.105]) by silver.osuosl.org (Postfix) with ESMTPS id A76F2226D4 for ; Tue, 2 Feb 2021 18:15:25 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XrAqJ8yERDqM5U+/2lp1B0h/mhqZd9FOZ6xsJ/Ms8pTSYjILHmHQ+HKy6kS09crsA05M5+GWwF+IfcTegjqdJ/q9rIrmZTLRMxdiCZfyEwdfgWJ3yhOp27b8g0CHgi/lcng8jBTHbRdhjeKMKbwWdtLNlALtoB6uTOt64EsB4i2Uqpvdn/L6AjAF6MDBDUnjobvv8BAvwl0jQ8r9ClwVeBemk6OgPPt/g1l+X7pwPLCgNiFhrJoev2/JvxmHdl7qrIKR7S5htYjb9HrWX7lrJHx6deKCZSsyh3Y752b013W8m+x5iUyb2XZcT/WID8tKbubahFPtgIURRBs2/GGAJA== 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=JErsqbaIFT9wVPKx23BjdpP02l4DuSsKdBHs+iOsLmg=; b=b0eBvnm5PZnXas3ntGNzBmeAMeB5KbA474Uf3ZKU3glVBuj3irP7kf5mNQDfm8ol/LR3tb91uys8jnvUQM8tTckUgJJKHjMRsId8+V1hb/HY8KAc+yjINbE5I5Sa1CmcyogOVjjXCL6BZKBQZkZLmDaHTCAhaap0DU+VDZlktQXI6Ybz4CE8gv7Q76FkcuXXDf9hGpcjo9FAaytPgsD1M4cdcL8t0QNDfZ6sQ9iIJ0x0fX8jz2J2ILJP6y9JsBsFF0giQKkp7F+L+l9DPs67KQ27QT44fGfIelRthM0SBxR5IBW2W/EtVI/BWguSIkIfBYYXxlszZfiGp9XVm1MBiQ== 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=JErsqbaIFT9wVPKx23BjdpP02l4DuSsKdBHs+iOsLmg=; b=YEYgGg+8JugyZWytozLYyt80vepF7EQc77NebcmjTk3+MGTf25C2Bx/IWxizMgQKMWdyx43XThoh+JFYDvxtC2ES5lX2yQ1FzWVjnLp28yUCZnewjq85QlO5MMVOI6eR3ZQKm8nDrhQ89h+7dyAfMYBDZz8Tpw5jOH0XBgGapkE= Received: from (2603:10b6:301:7c::11) by MWHPR21MB0863.namprd21.prod.outlook.com (2603:10b6:300:77::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.3; Tue, 2 Feb 2021 18:15:23 +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; Tue, 2 Feb 2021 18:15:23 +0000 To: Wei Liu Subject: RE: [PATCH v5 15/16] x86/hyperv: implement an MSI domain for root partition Thread-Topic: [PATCH v5 15/16] x86/hyperv: implement an MSI domain for root partition Thread-Index: AQHW7yP6HaVdmem27E2jxVVgXGHGnKo6+DxggAo8E4CAAAsYcA== Date: Tue, 2 Feb 2021 18:15:23 +0000 Message-ID: References: <20210120120058.29138-1-wei.liu@kernel.org> <20210120120058.29138-16-wei.liu@kernel.org> <20210202173153.jkbvwck2vsjlbjbz@liuwe-devbox-debian-v2> In-Reply-To: <20210202173153.jkbvwck2vsjlbjbz@liuwe-devbox-debian-v2> 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-02T18:15:21Z; 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=78830b72-2475-4687-9056-08988f88c1c3; 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: 3b8759b1-1e33-4be1-925d-08d8c7a68242 x-ms-traffictypediagnostic: MWHPR21MB0863: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qJURzqnSMWuXTCCmaoVY/ipfg7G+BoqQCSPdx7aoGdL/Iyheeh2mfUntFx/M7/AaQXYlJZSmyX2IU6U0Rz0yeSTlTiuz8Vf2/BYNXNmm9jSyQjM1rcJgmJQHDq1U9qx2dhTf8ysGXdpOqaBxAJp2dJNg6yHrv9vfiC9lFRuTA7y3sHR5Gt8Z7y6REuZgFMnkuvJ39hMJfRvbzHtpogWN2kq7u90gRNVQilOayqMHidTnWRPbqYyc1lDZTiSpTjazomNRBGPK0Me1Ao49YjuuZCqzghOK6ZG6I9+XRtAmPVArpBF9LN5JKfgLEdUmtrebm4VO7Rs0e9BMzze1cq/3HfURxbFGte5KmTHZuwsJAT8yz8fW+EADgOz5R1QGprpyHOt8vtG6ConbypcPjDJWD80iG/UZciB4Hi/fDdBOYna9TcEhhMWG68QJ33mBzp6wHg6MCMmLM5zekeiqDqQnARrmIhWhjvuyb1MdM+uukSsRLiKT5uW16VXbFrF30gD7YLhu3CFltQMlr3yRijohTw== 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)(136003)(366004)(39860400002)(346002)(376002)(86362001)(6916009)(10290500003)(6506007)(2906002)(186003)(26005)(8990500004)(71200400001)(7696005)(478600001)(4326008)(7416002)(82950400001)(8676002)(8936002)(33656002)(66476007)(5660300002)(76116006)(66946007)(55016002)(54906003)(64756008)(316002)(52536014)(82960400001)(66556008)(66446008)(9686003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?WJzOnMMEiLiCxnc9KU7tDWPtolKqYmDxUgjAEQXe9Fq4UkrqdUljhF+YcZJY?= =?us-ascii?Q?D0I9fS6mNvKWx5C8FEkEavszCSeXpCoj8rvlFLJlb51mKb3/SWGsBc4OvUxJ?= =?us-ascii?Q?ZSph9Ejprna6CE/BwCweSD2hRaXO6PBLHPsb8G8Ige04rN8TSyeSomzv8av3?= =?us-ascii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EzU6DV9h60?= =?us-ascii?Q?wSIZHhGrW1n7oJC+mFSEv6j0k92Vp6biYJW2/iUzL+wPA23EInf1dqmdMjkp?= =?us-ascii?Q?v2lvTbbOxQReNBHSndnqIvneNVfdpIq47WmPr/BQgEkao8cHxyryijiQLMHJ?= =?us-ascii?Q?TjN+ceCn55nFzpj4TZ8v6EkhyKJIkeA+Ly7hfcFVm3O8RN37X08TBZcUJAWl?= =?us-ascii?Q?PhUh6EKaCwZQiAua/zCvjJ8X+h91pAyxrcPGdhu8J2VZqRfprxS/ObkQEV4D?= =?us-ascii?Q?cSwzsauHH5X0Kgg2rCjte7P0?= 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: 3b8759b1-1e33-4be1-925d-08d8c7a68242 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2021 18:15:23.5935 (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: QTYa4kuDgldT6+0x6Y4jrsgiinqvDb67+J6PdzuQyFaY4U9WCqSclC2W+a9MzrZQu4AU/nKrCMibKtBfawFxwrogRQ8cc9bpzX8O7zDg+SU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR21MB0863 Cc: Linux on Hyper-V List , Stephen Hemminger , "pasha.tatashin@soleen.com" , Haiyang Zhang , "maintainer:X86 ARCHITECTURE \(32-BIT AND 64-BIT\)" , Linux Kernel List , "virtualization@lists.linux-foundation.org" , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Nuno Das Neves , Sunil Muthuswamy , Vineeth Pillai , Thomas Gleixner X-BeenThere: virtualization@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux virtualization List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Michael Kelley via Virtualization Reply-To: Michael Kelley Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: virtualization-bounces@lists.linux-foundation.org Sender: "Virtualization" From: Wei Liu Sent: Tuesday, February 2, 2021 9:32 AM > > On Wed, Jan 27, 2021 at 05:47:04AM +0000, Michael Kelley wrote: > > From: Wei Liu Sent: Wednesday, January 20, 2021 4:01 AM > > > > > > When Linux runs as the root partition on Microsoft Hypervisor, its > > > interrupts are remapped. Linux will need to explicitly map and unmap > > > interrupts for hardware. > > > > > > Implement an MSI domain to issue the correct hypercalls. And initialize > > > this irqdomain as the default MSI irq domain. > > > > > > Signed-off-by: Sunil Muthuswamy > > > Co-Developed-by: Sunil Muthuswamy > > > Signed-off-by: Wei Liu > > > --- > > > v4: Fix compilation issue when CONFIG_PCI_MSI is not set. > > > v3: build irqdomain.o for 32bit as well. > > > > I'm not clear on the intent for 32-bit builds. Given that hv_proc.c is built > > only for 64-bit, I'm assuming running Linux in the root partition > > is only functional for 64-bit builds. So is the goal simply that 32-bit > > builds will compile correctly? Seems like maybe there should be > > a CONFIG option for running Linux in the root partition, and that > > option would force 64-bit. > > To ensure 32 bit kernel builds and 32 bit guests still work. > > The config option ROOT_API is to be introduced by Nuno's /dev/mshv > series. We can use that option to gate some objects when that's > available. > But just so I'm 100% clear, is there intent to run 32-bit Linux in the root partition? I'm assuming not. Michael _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization