From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B6F93A0C5C; Mon, 23 Aug 2021 16:17:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3A57D4014E; Mon, 23 Aug 2021 16:17:07 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id BBC704014D for ; Mon, 23 Aug 2021 16:17:04 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10084"; a="196686398" X-IronPort-AV: E=Sophos;i="5.84,344,1620716400"; d="scan'208,217";a="196686398" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2021 07:17:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,344,1620716400"; d="scan'208,217";a="597028232" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga001.fm.intel.com with ESMTP; 23 Aug 2021 07:17:03 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 23 Aug 2021 07:17:03 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 23 Aug 2021 07:17:02 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Mon, 23 Aug 2021 07:17:02 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.176) 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.2242.10; Mon, 23 Aug 2021 07:17:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bFXaXNzRDEnjMaSFFmtoNg4TlKTm8eqFO45SjbY2nRg9DVBkBIJG/aLAk77JrDCc16ifu/fSs0U0kwuN5VTxSWOl5weZ0j9SYTp8/UI/GORqfSDib85dgMXzokShbKOBurTBUoSqBzGgdErXwlqxK7y+HeCGwbg4a7ndi0xhJvS7rhQ+gshAlGycw5gaL+sh/lApC81hPDVyUnVNPsWBTck0pk9aix/VpSkU0LL9t9sVxjedBnu6fT0d/kEYD/32ibT0romd4A8LBM58aSmwWTiWZg2NYPICHbaRecrlZHP+gOzn2Q3fj2gKU30N+mE7xn6j2C/n/TbR4I73ePjzmA== 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=Bn7qwmxcgfKK17iof6Qql24zlxmvF+nJoqKqxsXTkJE=; b=oP9VBhRc9Jw1Ky16f8qmY6Ci49dOqfatB9+bppwjtlcolLs4aeHwWhVckm0mjSdsxz6w60CavHH8K7RfQGtMNMLMxfuZsPEKCq8Lh4s3Xptwv6hqi0UY/G5OgEdPavHUU9+m66wUln4YT0iFJtoC33fBBXliugw6rT8vXsn0/kS7B4chb4/jJTypr7bjbGVolnl9ilcM4/PY+xZ/j+LYU7eMUcxT11VHiQIkaUtqiTgKqeYuALac+VgNvedLecnQSQV/tiBVuImKDzzM7NzyET/je7w9bmLKaDdEAHYT/vZ5eKCu+jt3sK5jI4QpLqb7qZIWakmEgQUEhBNIH0LlYA== 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=Bn7qwmxcgfKK17iof6Qql24zlxmvF+nJoqKqxsXTkJE=; b=EFi9kYeMcZA5F63yJ8GF/tzsQhSqvSCdBn3E1R3aurK+wNoa/QVGikDogrMv5TiCbeln27+hnAyzFc78glKuzVWmioZ9OcSuYQWdAqqA2lPysb9zW2NniiyigNhPzobF61gpXoA98BCWHC2dG9nlY9hssKmxuVu0huBVfIGt4N4= Received: from BL0PR11MB2948.namprd11.prod.outlook.com (2603:10b6:208:75::30) by MN2PR11MB4270.namprd11.prod.outlook.com (2603:10b6:208:18c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.22; Mon, 23 Aug 2021 14:17:00 +0000 Received: from BL0PR11MB2948.namprd11.prod.outlook.com ([fe80::78c1:10cb:9065:6cb]) by BL0PR11MB2948.namprd11.prod.outlook.com ([fe80::78c1:10cb:9065:6cb%3]) with mapi id 15.20.4436.024; Mon, 23 Aug 2021 14:17:00 +0000 From: "Szwed, Maciej" To: "dev@dpdk.org" Thread-Topic: [PATCH v2] eal: read data buffer on RTE_INTR_HANDLE_VFIO_REQ Thread-Index: AdeYKYiHvSZyyojnRm2dSJylk7zCog== Date: Mon, 23 Aug 2021 14:17:00 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b2b51f50-1441-452a-ea89-08d96640ac74 x-ms-traffictypediagnostic: MN2PR11MB4270: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:304; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PmyiWskxMvQHpg+EA5bUjFbfPnP0GtEdB2gVhyAPh9ofxue6DYDVOPJQhVDeR11wBHDAeUrgxrt8Ud8OB6Nv7V7aE7j6QHRhsSyUibVj2Kk/w/J0Ch9yUKvlc85gfn49R09236we1tvkC1QXnpHW9Mtqb1sDbBH8HdZ5OlQwsCSSosbBFtUD7yJXrPGOiwPzhTpiQROteBPswSwFZ3+7Gm205NyarNzq+D83hb/v7DS58A+xg5h1EvP7hiBLRW51x1tLm+F7RZS7+0qKbJlhM33V7eB5fXcRlCzyoMeS+dBbvwgm0KLAly0S1CFlzpnXJxpHZoqxJtO2j/JzibfOcdFqjO6lUOwgW4DWeQdRUIUDKT6qnAkLJF/oihCv18Ax22xA7upIRq0piCAQSOyWxHuUec+jasNpWVm74sEpcxUnDJ30gkAo8EmzwWYPNUdgqioLXM+MWMYYF91jtzs6IRmnW1G498tjI3FdHIMLe+i8Bt8BgW1M7yVXeaMhLWEyEd8oZMLEHjvT1ad+LZX8KENIfWSsfYpuChN3UMp2Q8jchHfNZjhGft2A1OANUszJs9HF/SAzO+OdQEzPPiVX7T+Fk+iRvWKjvMiygfVRbZG/xZnyJtavG4Gn8/u9oBpGfXH2+xxOstJq8n0XNJ+jq0yL5lqXxNX964kcDOdERaJ534H3CAMYvp2+6C9rsysaezAIMCqKwLkbZRimE8i1Gw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR11MB2948.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(136003)(366004)(396003)(376002)(346002)(55016002)(2906002)(9686003)(52536014)(66946007)(66476007)(66556008)(86362001)(316002)(26005)(186003)(64756008)(38070700005)(8936002)(122000001)(71200400001)(8676002)(76116006)(38100700002)(33656002)(478600001)(83380400001)(6916009)(6506007)(7696005)(66446008)(5660300002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jFDwVOKyEpdrllIvFkF2VYIjGhlJ+3PR1M3lxr6SeP2hO9L/KcCuXKnP5AYU?= =?us-ascii?Q?CROKMASstPTdQVua+7Fn92G8UJWbp8TCo7iFVPPg680nTcdhmWFSDoNYdnYu?= =?us-ascii?Q?YkbQh6KsV+pwRGexVoYSVJ7OooiK/LANQBAaoph9ciWPNWY8GFUrJ3ozmVvn?= =?us-ascii?Q?SEF+TcQsrSPQyD8Mg/xVoIdIDrcQzPM5ybl+kkI9e3NIgkxCSLX/YP3aGbcT?= =?us-ascii?Q?hytk+o8yMkuAGwKChghXy+OIrUeWQwsKdteGLS/qNVqRWgQuOZjPKr7XQMjM?= =?us-ascii?Q?AHw0Thuj6WwBiY1LvwMYky7SoG8DM2z2pg6nI1M0DW6OIukvI5JDTOmYh4J6?= =?us-ascii?Q?CuMWmHA8SAHfljDXSeJ5TOPZ6zVxtHHP7M2wLW6DDCGaK67NP8VSwsIzADYc?= =?us-ascii?Q?pxR2jHj3W7hxXNxJ29mszNeM7YWqBY7OoRQ02hLcJ+OoWRLcJzBe5BgzXUmV?= =?us-ascii?Q?7E6QZTAxGmn2m69TclVITgTq5lrBcoYg0BSHbPr/Glt23DXBwkjiPM3efWG0?= =?us-ascii?Q?ZsiB1FXZGHzIdYjomcr6cE63L365zs6/cCToDvVBmdUC9Mb+u4Uu+WmnM175?= =?us-ascii?Q?QXSuXK+OTnUi7O4ib5H2brLIZ5fnTjCUaSwVuX05o2hWVMcRNyHgqwTg8rNC?= =?us-ascii?Q?leDw1TbP/r0ApR+W4sMOYB2kzxDzMOkTIrmlSDnrsvHw+v1BpDyvbdGqxaLU?= =?us-ascii?Q?3Q78Q/21x3YDtOvSjgy7+KCGX6jHmzm8+HANEszNDFfFYy+K4FbeD0Gluwqg?= =?us-ascii?Q?pML0pYxVDe0Ao2DDxk12e58/SFt0Mok/O0Wd2/yPL+EKbbq7PoUqpYLGbzzI?= =?us-ascii?Q?PLgTdycr9fRfLbsgIsViTo+a122/eVjhMH0eUwfJveSFthHXfcYOGcsfKPEO?= =?us-ascii?Q?N7en2l6VpmHVfMNiI4jX4YNyJDU7BhrliEQRFKFHvDFy4fKofG/1P7cQMnpr?= =?us-ascii?Q?sxihwGXmBO9h0MvNwqHtuc6W9t8sL2SQ/9CR+sOxdNTFQdyHM8bpHEEXbHJI?= =?us-ascii?Q?OMqsvnE0VDluo0HQGPqCnBx0fKx6v0S11Umocdmet+NCXpwMGEtQgAzSe0T7?= =?us-ascii?Q?h6K2lDFwEBLAOiRgpbVMVA/tuBYdAva/+PyvAyGHh6x/qGEKDkIQH0r62isI?= =?us-ascii?Q?lXRu4DY0LRU3G/HEfx7jlx20Lx4a/PhosRiL+8qxa1hVGMDSa1i7iwztYE0E?= =?us-ascii?Q?TcPxG74tHjsS165PcfqUg5GaJ6pm1XTpXSpex6BjxjwEjqEyziW570LOIvdF?= =?us-ascii?Q?3l1JHeDHlMGSYTzvfh3Dtm1Z8fluU8paqeyJ7OVoHlciUbm3RF0bB4rfhLW2?= =?us-ascii?Q?7Bg=3D?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR11MB2948.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2b51f50-1441-452a-ea89-08d96640ac74 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Aug 2021 14:17:00.5949 (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: VYq8I7ZFnOCPLK/U3CXY25IBCh/18Ds9+Ci3Ymx/OB+eKKHsi8SJg36XDx25hO8f/mapyL6TphA5wSoWM6Oj5w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4270 X-OriginatorOrg: intel.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-dev] [PATCH v2] eal: read data buffer on RTE_INTR_HANDLE_VFIO_REQ X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" We should call read() on RTE_INTR_HANDLE_VFIO_REQ event to confirm that event. Signed-off-by: Maciej Szwed --- lib/eal/linux/eal_interrupts.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.= c index 22b3b7bcd9..dc42527344 100644 --- a/lib/eal/linux/eal_interrupts.c +++ b/lib/eal/linux/eal_interrupts.c @@ -918,17 +918,16 @@ eal_intr_process_interrupts(struct epoll_event *event= s, int nfds) bytes_read =3D sizeof(buf.tim= erfd_num); break; #ifdef VFIO_PRESENT +#ifdef HAVE_VFIO_DEV_REQ_INTERFACE + case RTE_INTR_HANDLE_VFIO_REQ: + call =3D true; +#endif + /* fall through */ case RTE_INTR_HANDLE_VFIO_MSIX: case RTE_INTR_HANDLE_VFIO_MSI: case RTE_INTR_HANDLE_VFIO_LEGACY: bytes_read =3D sizeof(buf.vfi= o_intr_count); break; -#ifdef HAVE_VFIO_DEV_REQ_INTERFACE - case RTE_INTR_HANDLE_VFIO_REQ: - bytes_read =3D 0; - call =3D true; - break; -#endif #endif case RTE_INTR_HANDLE_VDEV: case RTE_INTR_HANDLE_EXT: --