Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B862C433EF for ; Sat, 11 Dec 2021 07:44:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229906AbhLKHoO (ORCPT ); Sat, 11 Dec 2021 02:44:14 -0500 Received: from mga02.intel.com ([134.134.136.20]:30966 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbhLKHoN (ORCPT ); Sat, 11 Dec 2021 02:44:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639208653; x=1670744653; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=+U+M/t34gs4XiG9BzsE67FPme1KuHfpHtXvv77ZAu7s=; b=kSHpX3U+GT/VLrUSZSTxMuMPW5dR/EdPptPRQsyxmlkNPFBgs8S7sF20 F0Nv//3ZtYI1wDDEr0DmYKJMr6+aDswKGjXGlOzDapi8hF/+W5ms4krch 6gNRgQV4GXhPEPCQLccEifRx0TWd9NPlslaIQMhrDsO5A6DnopZ8lf6xG HpQznF1lfPLXpaIX7zszLowURo3McV44uWv3b5eCx1li2YQdOZn5yOsHU 7vEE8MfidjEiJHZxMYNP76oTudhFMklcWilj6uOBa3XMcaTOU7VgFwz5d Mrltzn2/1xxcOkmIB3cSe+oBC9oNnE0UeE+3uATple6utLqxcsDZRJ//C A==; X-IronPort-AV: E=McAfee;i="6200,9189,10194"; a="225789774" X-IronPort-AV: E=Sophos;i="5.88,197,1635231600"; d="scan'208";a="225789774" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2021 23:44:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,197,1635231600"; d="scan'208";a="504254512" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga007.jf.intel.com with ESMTP; 10 Dec 2021 23:44:11 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 10 Dec 2021 23:44:11 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 10 Dec 2021 23:44:10 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Fri, 10 Dec 2021 23:44:10 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.102) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Fri, 10 Dec 2021 23:44:10 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VfNhdZ8Nr85Re4AoeMgDY2TupG4X98K7az+anHnFyfzQVBetoyhCERzXPWfuIRpP1BL0Sb9Pfc1K8eEBwCftq5L/lsuab0OpZrKTNqfnahgeZOmOibFUBnJfXS9DUYKQpDc49MqP4gHhd856o2aI4eAoIYkw3/DeksXW9YJW08ORDIsQHiESCnuD/d69u8XSvMXOnQErzzXxvfwMv1IQ3jDSG3ucxofz8mKS3Y4vFGmhvwUR1oyHp8XXnKL4/zBM3F0jMUbsmnUg9TWoS8qBXU5ezUr3mKabOuIgiZLLRlEBBaXbehMSNCKzDQ0pJ5ZTxApsXtfCbEAQorOndjHozQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fRz0+4hlFdl4Wcdri0A6i6wAexwPsRVVdqscg0voZ7o=; b=Kcje5fL07PI/Y+PS6IhhSTLoMGsw+1S24MvZaD6D04mTLj6y6ZaRe7hZMuLh0uloBylhbw37p42EIR41tm6T2pzI1J1u94djjM1JjkgAKKH9Ts475IIMU6e4ugOpOzXbhXKut5/pf5lb/pIjADjANwEImxq6oHbR7IWhjE/ZMeFcDCEOy76eVqi5bkX/z21MGW6HrRQQMch0x1Hgdrr2Hakewb8oXMxTupKxJRrzVgKovH2jxr1OCoYFNNCRAH9oqYlQstTLvlQd5lI9piopHxJ1GMo9iPZLtz9F7CmDmoR9Z/jSQZKnHWb7DZ+b4p7jBJFRxwKlWXWg/7esxFl/EA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fRz0+4hlFdl4Wcdri0A6i6wAexwPsRVVdqscg0voZ7o=; b=mFr6Jzymzq7FPNsCQ7OEP0FlDinRvVXByYn8EkaPGyJLCgwmYoileN/PNxyVUH6jAKidVyQe269gTgo3+u5dFwPSBT4Fjf3xDcaJF+niUgjRPD5jx26HphB4K87dHNoXj+PgA7vU5yT4Mb1LoPEk+oCgMvAhm3PUdTMORRJ1bYE= Received: from BN9PR11MB5276.namprd11.prod.outlook.com (2603:10b6:408:135::18) by BN9PR11MB5355.namprd11.prod.outlook.com (2603:10b6:408:11c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.25; Sat, 11 Dec 2021 07:44:08 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::5c8a:9266:d416:3e04]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::5c8a:9266:d416:3e04%2]) with mapi id 15.20.4755.016; Sat, 11 Dec 2021 07:44:08 +0000 From: "Tian, Kevin" To: Thomas Gleixner , Jason Gunthorpe CC: "Jiang, Dave" , Logan Gunthorpe , LKML , Bjorn Helgaas , Marc Zygnier , Alex Williamson , "Dey, Megha" , "Raj, Ashok" , "linux-pci@vger.kernel.org" , Greg Kroah-Hartman , Jon Mason , Allen Hubbe , "linux-ntb@googlegroups.com" , "linux-s390@vger.kernel.org" , Heiko Carstens , Christian Borntraeger , "x86@kernel.org" , Joerg Roedel , "iommu@lists.linux-foundation.org" Subject: RE: [patch 21/32] NTB/msi: Convert to msi_on_each_desc() Thread-Topic: [patch 21/32] NTB/msi: Convert to msi_on_each_desc() Thread-Index: AQHX4y1VNaiO68omHEet2J9DWrVARKwa1YEAgAAp0QCAABreAIAAIi2AgAE8MoCAAAd1gIAACyoAgAAPcQCAADDDAIAAp1uAgABn9QCAACTxgIAAAdGAgAAbd4CAAA94gIAABpSAgAt9SoCAADlJAIAAgb+AgABGMACAAAc8gIAAE+oAgAAmHACAAFJ4oIAAem8AgABqWwCAANPscA== Date: Sat, 11 Dec 2021 07:44:08 +0000 Message-ID: References: <878rx480fk.ffs@tglx> <87sfv2yy19.ffs@tglx> <20211209162129.GS6385@nvidia.com> <878rwtzfh1.ffs@tglx> <20211209205835.GZ6385@nvidia.com> <8735n1zaz3.ffs@tglx> <87sfv1xq3b.ffs@tglx> <20211210123938.GF6385@nvidia.com> <87fsr0xp31.ffs@tglx> In-Reply-To: <87fsr0xp31.ffs@tglx> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7d342c0f-91c8-497d-eb9d-08d9bc7a03d3 x-ms-traffictypediagnostic: BN9PR11MB5355:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qSL1ts4TgTQGodemLLYCmn7LwTX0rQw0AjagUtK/B/dCTxFmIMwfWGDZHapgI3Dj9gaVfGoBuTnY5KHfitEOOG4Z1pwfuBoWjA5ddYSKrXcQb63Y2M0hLELMOECsvQ9P25UoUqdR8GnL0lT0YqRB0bHOaWeef+y3vjo0Ew/JIicnVgYP9StoVGVZiZMuSu7BpYwo0YfIWwEnnTbvFJBmzmLX1GuP5SSn9bsy8sXZm0wUCqZf4NbIR6dIz/O3rPXXGJC70kKzyiPZxzWDVG+IrAqb4FeN6Uk0ywAqYn60p1RCjefFkDTi/aimhkKteVBcUQyZdoo3NQ3eBcPiRmEE+x36OEmizNGCBs0pFMAV+fA6ndq65GpylB4TxQM1P81EedbHkOeR5s2Uy8TPUdZH+ESK3rZ2x7a0tV+GoGAv6jOnYtseLeniMfZEeHkHJIXEOlVrFY98pDvxu6+ZBwMPJM7bNgivkbgTTr3tWv5FiEl0xskx9xC9BSo/irpjN/cWiwVOWzrZ/YZXImJyl/1NCs+SQjfJwTnEV9FRJ3qE2PkbPx0J/XlqMzOmz5oKgHUXYA9OLM/2xzAUIqH8PM1fWlPHBIyVKfUlEXmMMSdUYIrQkFJzaEbjUgG9TeXOk1pSlFiMVasXZKmnXbcr/ESsgVvprGptB/3WOR6v5N0SBZayF9MBTiHXQ1t7hbh8XfMlTeTvHgzti91p3pQtsMjQZA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN9PR11MB5276.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(38070700005)(4744005)(86362001)(2906002)(8936002)(5660300002)(55016003)(54906003)(82960400001)(316002)(110136005)(66446008)(7696005)(7416002)(26005)(64756008)(66556008)(83380400001)(9686003)(76116006)(4326008)(66946007)(71200400001)(508600001)(66476007)(6506007)(8676002)(122000001)(33656002)(38100700002)(186003)(52536014);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?PslPlkTQDjU02BGCe/Eq0aMCXKc0S9/DhHx72OkBFzdkkGmaplHUUmlRfJVe?= =?us-ascii?Q?A4rk6YfsR6WD+O/rLAAlU7ksHOpLzGSxmvVp7vQgJeWTPyBbwm9Zr2GcjzKe?= =?us-ascii?Q?fMhIncYpeyxHca6K35UzX3SFQfgJpXdVeCxw+2ZvPHjXe/1lkhSheP/8qmae?= =?us-ascii?Q?jHPkW6+qAQjWO09BsyKMar2yglqvqb4L19cBpztszFOQ526prlFoJ0ejkChB?= =?us-ascii?Q?sJeAJ/UT4akLJjU4DRI5Q9BoXgiAXqYf6u/3brrZrQ2KApliAh3SMIEpxm6F?= =?us-ascii?Q?76mc5gedVaygayqIVkzMgBoZ25qPMalVn+xnREfD34ipny9TsmHmcb0pK4Kx?= =?us-ascii?Q?WIdU7oE1IaS0G3NPQ482fIw7g/NF9KBe6nNzWRe3Bh+JNanhQG+ktmjuXRFr?= =?us-ascii?Q?OLzdXBCyWMF7HSS7KhM/YOo3DjpGbyLIRgcPjtj4ceXzfS06tJWp8fOvsgyJ?= =?us-ascii?Q?AJbpj2ZwBnfMF3x96jEVddYhGZLAYPQF9v03JcA4XpS6QexdaC2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3dX3HqNaP1ESr++vTVDbh/j8o?= =?us-ascii?Q?p97x9V9nMDYAnT3FS0e0QBX9PH2LJedfcH6VSA7YUrdlLgs3DQ0XoBQlgSOI?= =?us-ascii?Q?cgaeWlgx/yZA81zJeCeGD98dbWp3Nahd3th0KP3foDac2tDT1j4xFhOIVU1j?= =?us-ascii?Q?hG/nJSwV1kquV4T3Y779s3ci0b20FidPfkW6IEXoW8sd9WjljYLwcbCBZkT3?= =?us-ascii?Q?Jw=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5276.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d342c0f-91c8-497d-eb9d-08d9bc7a03d3 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2021 07:44:08.4284 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OBVRhi4LfD/tQW8kiAxsEiyO4iK8narL/YKH0zkxNSVxodHoN+vbToDR0NxUqsP0hdeYfnB5mQxljrkPeAM22A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR11MB5355 X-OriginatorOrg: intel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Thomas Gleixner > Sent: Saturday, December 11, 2021 3:00 AM >=20 > Jason, >=20 > On Fri, Dec 10 2021 at 08:39, Jason Gunthorpe wrote: >=20 > > On Fri, Dec 10, 2021 at 07:29:01AM +0000, Tian, Kevin wrote: > >> > 5) It's not possible for the kernel to reliably detect whether it = is > >> > running on bare metal or not. Yes we talked about heuristics, b= ut > >> > that's something I really want to avoid. > >> > >> How would the hypercall mechanism avoid such heuristics? > > > > It is clever, we don't have an vIOMMU that supplies vIR today, so by > > definition all guests are excluded and only bare metal works. >=20 > Dammit. Now you spilled the beans. :) >=20 Unfortunately we do have that today. Qemu supports IR for both AMD and Intel vIOMMU. Thanks Kevin