Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1969762rwb; Thu, 8 Dec 2022 18:15:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf4xvDGEgDDc86sVDbZKwavknUo6U4x77M7eE9mt5HgZBfMfo9/Sk2nHU2oCxS12oAQeLcf+ X-Received: by 2002:a50:ee8b:0:b0:46c:b25a:6d7f with SMTP id f11-20020a50ee8b000000b0046cb25a6d7fmr3790951edr.8.1670552106493; Thu, 08 Dec 2022 18:15:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670552106; cv=pass; d=google.com; s=arc-20160816; b=n5octcbF2mQEZJ+m17Y9dxqj6+cQeWOM3bleHVsyn4AeY0cQuKVp6AX/x4UYE9IhrR q8rJELjRgNHR73MEP33g5HOO7R9gHXV+1NttEutJ2TGelGN6PPEDVrd7NyEMfAB0yq3u 56o1apUPw/uqToXKvyEQbREoLyWyOTCSl9861WlCBzhAgPQxU0INinIdtxO+aYUaSVCq +k23+aKbO18fNWbPLMVp2NXz2VFi7MKcO0nH6XODJOxpc4b7O1DNBtYbT3Om4QONhhp4 ntnuUsk29QC6vyB/bB6sN8TwOVOuhcXGysVv4BOEF1O1kOLKQZT0Lh1VMz1KxdnE4/yl C+gw== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Numqckoa3763G93WErJEFgsBjJJ0p0Vkprr3kfv1ihE=; b=qxC86IQBolqw6V0cWkyo4+JO66w1OjjJFXI8JdT5P7EEC8gpAdeCOAAvrPkWkcZgCy 1EQP+6EgY91PqCebTbmGfOX0CIDKBjqphM4uIYEbv/g/A4OfIyKdkYblemN+HOALXYj1 NbTdV1k+LnRrfAn2c2ZMn8CBxY0oA2dOtMPbB0U2fx7W3emFX+ytjXbfGOKsp3CWtx+h fUuqGRkagg9NlgLDHW6m+ApfQpu+CQ8MEcYuuwNlK9eetFMUnh6iJoLfwaXZRx1jnoE4 e67ixLK9e76fzA2QFCM+ihlBGiZrXCWB7I/LTC3X+oeqqb7xgDXANXwbhGY5+YqDiNEe svyQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VwEdoCZU; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a056402519200b00469d667117csi371672edd.167.2022.12.08.18.14.48; Thu, 08 Dec 2022 18:15:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VwEdoCZU; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229710AbiLICLc (ORCPT + 74 others); Thu, 8 Dec 2022 21:11:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiLICLa (ORCPT ); Thu, 8 Dec 2022 21:11:30 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EB8826A96; Thu, 8 Dec 2022 18:11:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670551889; x=1702087889; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=pqnKs6bbJ+U0XkurAF9nhMqSmKwhrh2oxSu3hQzHizE=; b=VwEdoCZUkYSNErTisRFq1KL8mseTGfOfL4HeocuIcEJDnrE9Q9rH5q2s bFVVtn7gnlTFQTS706B1qExAmNgWX5RhDqiJB6CxnHk0EZfct2V+vjDP/ Qbt8Iolcm4F8YKXiID+sRYHObEibd7Tfb3bBZeyj49RVzBVRMlNRlJZ11 yvrcoEGxmjCa2m15Ku+W+Zp7crnn8sEWNXRvs9K3bcbYn7XXPmxmc37eX 3OC6muHK4FaDvaFnvGX7ejGr4ANCGz6dzqn1khu7KEtUJE1C3MQKCJMNN h5gBvhh/R+1iOrzp64tdNsI1n4pwxqt9/ZyRy2TAnKsPgFFQpJkJy+zXX g==; X-IronPort-AV: E=McAfee;i="6500,9779,10555"; a="319223287" X-IronPort-AV: E=Sophos;i="5.96,228,1665471600"; d="scan'208";a="319223287" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2022 18:11:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10555"; a="892493325" X-IronPort-AV: E=Sophos;i="5.96,228,1665471600"; d="scan'208";a="892493325" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga006.fm.intel.com with ESMTP; 08 Dec 2022 18:11:27 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 8 Dec 2022 18:11:25 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Thu, 8 Dec 2022 18:11:25 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.47) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Thu, 8 Dec 2022 18:11:24 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gG8uO44y4wswkvN9t/cgeEixel/J4hQ1Fa8QghSFfcuMgg9ttUhTehrpATxhAKAEQfVhkKbBzxxdtxIrpTSEMLaFFVxE5yoR/ZNs/M9hIYgv3rzEFIA4vuoGSVfBVWX2ICz+Znmtub/bOyNlsTBt5mHZ3UuNDKJycDSAdMMU1FhpwxZU9UzDTuF3+fyg1a5lV4ZOcMYOrwxmVlZ+KjbMdTTRjYrStSkWA3dbOAW7/2Nuqx4TEt7uuLM0Cp5ZJEgKEU+byfQHJozAch4kVzYVF2JUBGhOijfKDrdosFVUc5YogLzja49B52iTTxeal42QhHvrzyqZt+51CP2OC5fBmg== 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=Numqckoa3763G93WErJEFgsBjJJ0p0Vkprr3kfv1ihE=; b=TAyMPA+2QDowkg98Keq0hB2/L8Vw6dQK5JbBFLYeH0uzVvx8I0/nTKX3qfcxrHzhsX4IJvp59Imw2+0mctNOJWCcEoz0UlvO+a5/Jwn+am/6AebY1g4r6mgAQ7FZWOivlETH5HSJm8w5TBofpp/M/DIzi5NGjwund5Cb6zm70ku8S/yp7A7BdX9xYOKJn7vW5qrmnS8nWQkwib3C2bY8hP3NwDEw2oPrD1q54Bpc5iH682vmmIdiHT43VkEFonHNszTsaSgr4JKz1TNLjkVzVsgOmnDnMylspg4AsYr3mnsoy3YpMkp2Gz8cIHsHLWMQEE/aqmFAnl+hY4xgZOjMgw== 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 Received: from BN9PR11MB5276.namprd11.prod.outlook.com (2603:10b6:408:135::18) by MN0PR11MB6010.namprd11.prod.outlook.com (2603:10b6:208:371::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Fri, 9 Dec 2022 02:11:21 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::c9ee:bc36:6cf4:c6fb]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::c9ee:bc36:6cf4:c6fb%5]) with mapi id 15.20.5880.016; Fri, 9 Dec 2022 02:11:21 +0000 From: "Tian, Kevin" To: Christoph Hellwig , Max Gurtovoy CC: Jason Gunthorpe , "Rao, Lei" , "kbusch@kernel.org" , "axboe@fb.com" , "kch@nvidia.com" , "sagi@grimberg.me" , "alex.williamson@redhat.com" , "cohuck@redhat.com" , "yishaih@nvidia.com" , "shameerali.kolothum.thodi@huawei.com" , "mjrosato@linux.ibm.com" , "linux-kernel@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "kvm@vger.kernel.org" , "Dong, Eddie" , "Li, Yadong" , "Liu, Yi L" , "Wilk, Konrad" , "stephen@eideticom.com" , "Yuan, Hang" Subject: RE: [RFC PATCH 1/5] nvme-pci: add function nvme_submit_vf_cmd to issue admin commands for VF driver. Thread-Topic: [RFC PATCH 1/5] nvme-pci: add function nvme_submit_vf_cmd to issue admin commands for VF driver. Thread-Index: AQHZCTfLVudoTcTfbUW71RdNMUs3aK5gYwIAgAB8LwCAAAPrAIAAF5SAgAAEXoCAAAOwgIAAEcqAgAAnS4CAAHlwAIAAW7YAgALDKHA= Date: Fri, 9 Dec 2022 02:11:21 +0000 Message-ID: References: <20221206055816.292304-2-lei.rao@intel.com> <20221206061940.GA6595@lst.de> <20221206135810.GA27689@lst.de> <20221206153811.GB2266@lst.de> <20221206165503.GA8677@lst.de> <2975e217-749b-6929-cd2d-4b6276ef33d1@nvidia.com> <20221207075834.GC2283@lst.de> In-Reply-To: <20221207075834.GC2283@lst.de> 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-traffictypediagnostic: BN9PR11MB5276:EE_|MN0PR11MB6010:EE_ x-ms-office365-filtering-correlation-id: fe54fa1b-e8b8-4cd6-2056-08dad98aaa7b x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ced/gQG+e9LIx0FVriuMlpjKDuYuWDKILrhUq8nZJezykNM5F+VN/tOOPfGZZVPCy8Zm91GFI/RlkqrKEC+53AJS+gx+RsVcA1itTxm3zbVHT7UA2ajub1Y9TkqWUlmsqMjpvkqLjNj+Bm6aBjrCjbZQ66y6G3pS+f1XUP5FfQ/VtzZYvvYukJaUzbidpuxW+DYV+WyfKOTkDBALJNf6IwjvLQ9sL8vpKnkR59KKQpZMJXp3ux6Y2jc0ciMf9JHSTseYmEDyKrTkTgq8qKASLejOUUr/620PNUjqO2mkitD7P8yqBSxd1Wl0FxcU/cUfV03bganY6eafVNVvi4TDlzJmJQhkcYSV3OkUJ32eGttBnmbZWTrMIYfhjwUUdirFssyo47pOZKK0n5hWSlJqMi6oR6z2hnpK2j9LubajMAvv61q6oyvK8vGcvkMCJg4aieWPbO7FICBUTU7rK/Mhl+a6kV+awYZ7HBn5AuFZvIH4Gp4I7lQsVo5UZjyMgE7Q4FaCZMGd4BuzrGhH1KyPo/F2k2ITExOO4lg3bCxxk29JgAe9UfTPSYOZ45nZlDz+qfgWEJ/SWWzulPq29lWqqNIBRkKAYZlZrBXUrYWSoggXboBO6tYNp0M/u+uu4Rtr41I+QVSFw3bPgSAUEggETTldq2klbk1DpSJyV+vWbAz3LVWOHOxDfBb2bROH/oOwI70c80OAJWZ701mriygcUA== 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:(13230022)(396003)(366004)(346002)(39860400002)(376002)(136003)(451199015)(83380400001)(38070700005)(86362001)(7416002)(82960400001)(2906002)(8936002)(4744005)(5660300002)(52536014)(55016003)(38100700002)(41300700001)(8676002)(26005)(71200400001)(478600001)(186003)(7696005)(64756008)(66446008)(107886003)(76116006)(66476007)(6506007)(66556008)(4326008)(66946007)(110136005)(9686003)(316002)(54906003)(122000001)(33656002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HkL+6phhVIOajWpBhnVzShcEaQJDQKFqfHrtM+xv92paKdNifYn8fiDRHi1X?= =?us-ascii?Q?PWE1/Iqr+g1Iw4vT7m9mY+osonBr7NCeBQ3U+K/T/QBk4dDJDUMr5JjG5Her?= =?us-ascii?Q?1028E3g4n5vpAG02vAAwo9oRipsMvvDHBbHkLyaIQeoJARpwvUCq3mrGEVG/?= =?us-ascii?Q?al+zt2pT7hixACmP7XWKYuA5x+4GIj9s8nzzXruxgcu8Eorqvu15bWgM5jH8?= =?us-ascii?Q?aZjLVflijttI6GSo+r6fbucfV1arxOFzx8dV8QxJoF21vg/3072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y59e7rCK3XAfzxwMqblsU6phrhxbOob+Imc?= =?us-ascii?Q?Pgcs68UkWFIHEH9VsI4LF/vKluTU/9J9izH2Tf+a8McUbYOSYQJ1NAFqIuiS?= =?us-ascii?Q?yNJrZyV/sHo71H08BiqeiCifthamIY97itqi0Byran60CaQw/Vny9PhOQDDs?= =?us-ascii?Q?HFc3cDxNX/yURpiOklFlaUAjMibRacKJGUXHOfgVLzzOWmFAXFw6CK8Qi0fs?= =?us-ascii?Q?o2bA3c3KNIDWv4kc2um+178DPpl2T7XK/SXNUgPRdcSzcMP+hhnoBItmK1Vp?= =?us-ascii?Q?u+2zzM2+3SZK+wGLhoAIS7uXyhn8Bx/5HFhark3aa8XEB+JTW6M3b9fJAbBa?= =?us-ascii?Q?ss8Bx6cYNe1ZfuPJZvLz10ECI0W6TCWFKSgovxLQon99BVl2z+sv89oDIuRj?= =?us-ascii?Q?spFeQii2e8r1Dapx8rDXEVYn2GbgfMdUO4xCEGDK?= 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: fe54fa1b-e8b8-4cd6-2056-08dad98aaa7b X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Dec 2022 02:11:21.4631 (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: hrm7/Lkvu0a1jGPZikUIs76nirozCxDiPvgDvVui9T/53j2oSKpvA2U0vHR/KMcxWEUJKTW7ZCq+taypuPu6gw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR11MB6010 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Christoph Hellwig > Sent: Wednesday, December 7, 2022 3:59 PM >=20 > On Wed, Dec 07, 2022 at 04:30:20AM +0200, Max Gurtovoy wrote: > > I'm not sure how awkward is for migration driver to ask the controlling > > device driver to operate a migration action. >=20 > It can't. That's the whole point. The controlled function that is > being migrate must be absolutely unaware of that (except for things > like quiescing access or FLRs that could happen anyway), because > otherwise your have a fundamental information leak. >=20 Can you elaborate which information is leaked? No matter who provides the uAPI (controlling or controlled), end of the day it's the same cmd invoked on the controlling device to save/ restore the state of the controlled device itself.