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 1041AA0C5C; Mon, 23 Aug 2021 15:56:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D65FB4014E; Mon, 23 Aug 2021 15:56:13 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 747F84014D for ; Mon, 23 Aug 2021 15:56:12 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10084"; a="280826642" X-IronPort-AV: E=Sophos;i="5.84,344,1620716400"; d="scan'208,217";a="280826642" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2021 06:56:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,344,1620716400"; d="scan'208,217";a="535369331" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga002.fm.intel.com with ESMTP; 23 Aug 2021 06:56:11 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX603.amr.corp.intel.com (10.22.229.16) 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 06:56:10 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX608.amr.corp.intel.com (10.22.229.21) 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 06:56:10 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx609.amr.corp.intel.com (10.22.229.22) 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 06:56:10 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) by edgegateway.intel.com (134.134.137.102) 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 06:56:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bhBQly2Byl/fKNwk7Ntex03bHiDsZSHq8kKLCsOKbV3u06M6mADIDOCarUWdeuMlPrzOXv1xiukP1k5FLUJRKuvTWvT78P4MhrYaAlSnLLfNcnZRN/I4ZMhSjcrTwiOooarFEB1ZUELa7DDF3s51GiMKMeVLMoSv+T8XrMiTRpz56WdrcJIWNarAkjwo2I7dPzQ3jPtakBAJ7H5oypVvajorr4k9j0jb7wu9+R5CEQvNYZwOPkPIBAj9+vKflln81JadUWOGA3ztri69aHsgot3Xf1CMcpB7pksDs7u0Vqc9V6eAI5leDICf4BVtJAJCPltWRyKK/AOwaumeoAKprg== 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=t7BR4viAo5mYfk4iavfSPDQOmnmi93Wrlus2tHk96lE=; b=l1cj5Gw8mQDEbADGwaJOx7WO1UYvi4mvHI2njlfPxX0Etv6Ajj4Gyo4KPg+B3wMLK/WIlRL+R7nqAqhS6GgZzwCK5/MIX/Dcuap1osAq9SZVigVo5ssarxDj0w0DSb08oDKOxfHkx3nLNpYtJyaUDFkn7p30I7WhIYyRl97Gy4OgmzmLCh8U9H+TE8M5qX2w2oAq8vbepxhsIU/G0DQnG1spd+HIy4vmDayuDlGGqYzzZ8AqddU96XarFQiRJKu1pbCI4oR7/BpagaTkiy3k3zPh0WpvA/+lym6SNA65vhj/eqlrf0epryOIu5QOfN+x3UMd8rYB6fEYyw/TbtlDDA== 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=t7BR4viAo5mYfk4iavfSPDQOmnmi93Wrlus2tHk96lE=; b=flPhqrOL61dAILo9K5h2TZ+km0wGL8Q4cZ0Kzom5IUSAp7ks7b4TGsDV++Wv5kkGZ+EiSjyO+bARtHYtkElARdMwKieZJBT/ILPxCKCZKLA8Q/TlUSbgj2Mh/r4H7LmonQgYNvtUvb2BdgMujpfHjKIodlFeDoIvX5kzpKtEaOA= Received: from BL0PR11MB2948.namprd11.prod.outlook.com (2603:10b6:208:75::30) by MN2PR11MB4599.namprd11.prod.outlook.com (2603:10b6:208:26d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Mon, 23 Aug 2021 13:56:08 +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 13:56:08 +0000 From: "Szwed, Maciej" To: "dev@dpdk.org" Thread-Topic: [PATCH] eal: read data buffer on RTE_INTR_HANDLE_VFIO_REQ Thread-Index: AdeYJhFWdWKXY93HQ2eWdg87tinINw== Date: Mon, 23 Aug 2021 13:56:08 +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: f34d7009-d4ee-4457-bc90-08d9663dc23b x-ms-traffictypediagnostic: MN2PR11MB4599: 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: QIdrYp6xNpRePZS47j775ktyXtF2x9JzB9HBqjZn4Z9Vor2arIk7BBzcqM2VFUgM+BSd5jooc9nwVGpi2k8IyQq5hIbull39jrmGw0ZEMZsb3fpYt3yDITwAGxNxJrXXuAjt2tMS/LkLJ9haFsGKWo2ZiWPcr119Pww4RViGdl4jRg7eMVffra/o+DC7owOG6ygQCmj0yA84yApf/HCcS1vPkIW3f+T0mmBMq99ZSDUELiKpXVyc/coXO3zrI/X/bgh00Bj8nYfeSSwuLnp6Gpp82VPGxb35tihPKbKhCTu6UdpwrlPJ7ScVqK+HmDuruRW1ubyl/mzqysICD4ly7B4DUEoP9VxFYF0bEBEga/FrnpfW7A/70EEj/dYPGZSrC4UnExgh4aEDik34OuX3mZyUhOs1+ECeiCkIzj+5gQZ37jjjeAjs9TfEoG2y6rdnspm0QOJ133kNs9QF6WaLOOBVMDvdmBi+opK39VT1NBHg4S1dri3QwoPsD4wNZ5GvWiGozRywrtD3ByQrtnDwFw4WQ3xBX0Q61DM8Z+4vAz7F2LuP5CeKeXOfU1HotaZ3bGLpkwYXmFxHI2W9jXNYEWM1bkteiHIKwPdJ2opOgWa8odcrXkrzi7UL6c7hm2lb57QwPBN4b7U7NbRBo9+QELeww0GaUkG+/Hx6A83xgOFr1v9TRtA+A+Y+s6kNDjMhjzk5V4lbhIyDAOaYVz7avA== 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)(366004)(66476007)(8936002)(316002)(66446008)(66556008)(76116006)(64756008)(2906002)(66946007)(9686003)(7696005)(5660300002)(26005)(33656002)(55016002)(86362001)(8676002)(6916009)(508600001)(6506007)(38100700002)(186003)(122000001)(38070700005)(71200400001)(52536014)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?QqUMsrr3DpoRBetmFdtCmEqKTA8QNAWsrN68Isd05Dfq5XCD66y7nKCLSl0H?= =?us-ascii?Q?P+POS8hU2DvW1Jbc+vrlZLrdASukw5BxJd6VYy5EbBIC6WMmv1fE07R/6zNH?= =?us-ascii?Q?mN98DhvZezMRI+lhZ1ytD4hegDP56Jty2n6+F/723US2kwTvjvglCUcuzRXN?= =?us-ascii?Q?oXB4/Psw8kFjpyGXxwFyhiolLdmbE+Bba3qApAH8HsjILsFWEcbLgHZB1Hsz?= =?us-ascii?Q?RgN2TL5rMvYA93d7kDWnBo2ASD0g/00mv7Z5gnpr/AVJbd0tSfRXrydnM5xg?= =?us-ascii?Q?bCt34gr6ttqTsLthFes7a9CnBLjLs8Ny2sdP/dh9KFYo4ln3q8lXLsjLifRX?= =?us-ascii?Q?1FLAw+KQ7mMjR3KMvujvr5cFMQoUdMVn77qG7SrCHZqIufG3pSV+CHGJMdlG?= =?us-ascii?Q?QNh3H4TqHIhW9ExlLlngK0lxnvTI50Qu5oJvqqZuEqQynE/ricg85mDcK6So?= =?us-ascii?Q?gkbv3UP+1pHtqBBIeFHI9FySkLKd6s+5p8kQFiAS5p38B9Fa4cC+tWjNplhM?= =?us-ascii?Q?q/eLNODYttFSnNMzn/zAykoDl9lMv/M4OcbMdcE5Y0rX40vcy0UIjJtEEuBU?= =?us-ascii?Q?DBGDTiDXh2yHd1QXqYbwQg/reLXrJ8GhLAb74PVIdzKex56omJ/1yu2LntoD?= =?us-ascii?Q?K/TbdpwixI3uZlvQTd3JXYePvfgT1TY4kyhNx9g/E9a4eLc2lrLMt5n6dsMJ?= =?us-ascii?Q?olco5J3DlZHNKLRJjLxqloHSz/j7HpyLtMeHdd4VkWljWKXmqy8bHYx+XqCd?= =?us-ascii?Q?kInw7AjhRwAt0CEkY63cpu9ehZZ9Vs3r+WUdj7Hp5l6LgwprdT6nW9+8x6be?= =?us-ascii?Q?T7XHMSNU7pKDRuVbU398fi/jfSpUSjov3wAbLysBVYwhtQGDuQUpo4yO1dS5?= =?us-ascii?Q?tvj8ni88Uj6abnmvYjaCJU56nPu1IbB8z8tVDxvbl69xRmIliSSDcueSKkap?= =?us-ascii?Q?R8jDZW1EejmPKkzVqODiaHLUHWX6hXFGUZUgDMFXVcLXSCox3TlKyvD5mc4Z?= =?us-ascii?Q?QwX4H4Rwq9gP9BF7Z7Gfj5Iw/MMuZ4uulN7tDriJFzNDRnbF/fgcuAOAgzsc?= =?us-ascii?Q?sfKJmyiL9G8gqrgZqRxRdGufthUdP3YoiTtmF+sRN8o1zb2SYPB4bSCl4bXP?= =?us-ascii?Q?53FDYXPwaBrCG7B2zvY9VIbuSyFkieSeDqnq0hDrFnl6OBEoFQtEZXeLegpS?= =?us-ascii?Q?WyblD1MWpM++PG1ncG4c5p+OJxKCocUEN0wVOJCEre+ZY4CUikr8zENmM9oS?= =?us-ascii?Q?nWCzBBFVeB4l1dvjuvj+xvrHXqZ4H/cMPD4OBbChLx6j+SHa1He3c31TB4Ac?= =?us-ascii?Q?r7w=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: f34d7009-d4ee-4457-bc90-08d9663dc23b X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Aug 2021 13:56:08.6349 (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: HykgHtj7rIvqD6d/sVFGI/RlcaKRPyT82jVcHmwdDbtjTM2bvnlEmTj7sRE9G8/k7zGxfnvOmJcolB1NWJwiwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4599 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] 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 maciej.szwed@intel.com --- 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: --