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 3F2CAA0A02; Mon, 17 May 2021 12:07:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B30154014E; Mon, 17 May 2021 12:07:45 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id E96DB40041 for ; Mon, 17 May 2021 12:07:43 +0200 (CEST) IronPort-SDR: 7pURUXXB7bIGKCjgCz9foGbFawbAPKMF6z/dervNrixN6FfRn3RPfhBaW/6reIu6kyWzs39h79 zan+uSYgHktA== X-IronPort-AV: E=McAfee;i="6200,9189,9986"; a="198478540" X-IronPort-AV: E=Sophos;i="5.82,307,1613462400"; d="scan'208";a="198478540" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2021 03:07:42 -0700 IronPort-SDR: BYQDLL/xkCzhVlYoNkcoNAV/JoT70Ysp/7n5ks42uA2Jm7EzEynY/sSwlNIWdnIyZ6rJdRRme3 dJFoAve5+1YA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,307,1613462400"; d="scan'208";a="438845311" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga008.jf.intel.com with ESMTP; 17 May 2021 03:07:42 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) 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.4; Mon, 17 May 2021 03:07:42 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.4 via Frontend Transport; Mon, 17 May 2021 03:07:42 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.172) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Mon, 17 May 2021 03:07:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M50H+N/tcKH28brvU8PE8+NazSTM3W5YS48BJdFCGuPxvThdLrIXOHLl2lsQDTvrOoh3NNpEuQFe6Aypl+jGeONsm1BoVfaEsJw2BbVHOncsIqyIAa2poPusVHgV3iLB2FN+yXNd9/MOIBPnUhbNnlP7+WxdOH/Zdt+bfn/HnxLk8buFjQguXeShLMj/1rNiEcMKJfXfF38yfYSIreNIXkzkwhliGRzflg/QYfgMWQy20AVJOOa8G6oTx0Jq4Tqh30p8wbLXMf6hReNb+ugJA1CuqpkVnxQ6zZZkljZFTt349JyMHe8MAtJHQv3BWWm7v+doMdwUMR0VJCzlk1zYFA== 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=ephirGv1RtDxjNoVr+1ioqobNmqZpFGdPSJfVsduIkk=; b=jOjr/tE4wmcNwfSbbodBBmtybBpnQdAqtEZTTWtJJUcW59E7QlYZKT713emvbSaXxSGDaQlbZR2dKFpz4wQeuVIziK4KoPZ1oZnWwQgRpKWj9ARSf/D2/fHxQb1boHymtZe+y0VUwYhrkRpExOQFWARnWcNxOJ+I43y2bPnh3+SDwJaIg8QM/Vh+BhDi0nNxf1V8kjx4xGgLlYitVQxzJN2xTAAjEQKpPZGKT1Tb8GjHs7fnY9pRGbVyMN7rGGvaegKg1GyUE0pCLluvRE4TsTtO8SHqMkbolIBCRjrjfwTMIKo+AED2zDdXiRYh48lCOQZgM5/OHsTDUl64w9MaFA== 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=ephirGv1RtDxjNoVr+1ioqobNmqZpFGdPSJfVsduIkk=; b=S7XiwAKUGKfKYvKolVqVO9DQ0FO1Ee62esRBFn/qVwhcKuUhi/Vr/JjNtxqGR/SVSAWLc8y7ntOXak8CnDDdDp6tqqEoplMpAyh3Q4Mv6yHgYImwfHiXUuAOsyxIgq5WYuiUfFhfY+qXX9RrdSVrt7Kb9HhTMkFXSFCaff6HaVs= Received: from CO1PR11MB5073.namprd11.prod.outlook.com (2603:10b6:303:92::23) by MW3PR11MB4683.namprd11.prod.outlook.com (2603:10b6:303:5c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.26; Mon, 17 May 2021 10:07:37 +0000 Received: from CO1PR11MB5073.namprd11.prod.outlook.com ([fe80::5d32:3b99:d0a:df54]) by CO1PR11MB5073.namprd11.prod.outlook.com ([fe80::5d32:3b99:d0a:df54%5]) with mapi id 15.20.4129.031; Mon, 17 May 2021 10:07:37 +0000 From: "Ling, WeiX" To: Maxime Coquelin , Balazs Nemeth , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] vhost: fix invalid use of stored last used index Thread-Index: AQHXSNqrUDMLTnGb+0qSYRIdOtDhfarnTVGAgAApWEA= Date: Mon, 17 May 2021 10:07:37 +0000 Message-ID: References: <83fa6253725a7bc69bccb7897f380422354a2898.1621008025.git.bnemeth@redhat.com> <977757b2-e32a-242d-26ff-c81f27a3b25e@redhat.com> In-Reply-To: <977757b2-e32a-242d-26ff-c81f27a3b25e@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.54] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d6978aeb-9f11-4017-e8cf-08d9191b9922 x-ms-traffictypediagnostic: MW3PR11MB4683: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Z5KtrkE0GyJImaZSlAELbmrsLZMNEhcbyH9XCElTKMGwP+1fmTLoIEFL/Bu6+iLWuD9wurm5kfiDpxoCXu3rHmF3N88PApP/YVlT6qBdZd2XhRI6b9u5euSMkSytho2AzqTC3w3mAZ97nyax+V/WtRdYDkz6O/YRjLSyddwJv2t6RTSqlaFll9MAovi3Oxl3lucud+wI/LZtAo1LVrv+/RUywLIbN0nw9iBCWP4e1N822BUjtB2jMbRVFMoxqQDtkUMrXxojWZNBEqbxYHqwakkHxtC1Y6A4vxlG+sBP/MP1PIXeBZIBNmQg6HZ3270pX/4lqbAsKgxh9tlW8eDJmlBptVmjUu/FLATfkG5dvCGq9GbjbcjGL2iffyZEt8AZL5JE4YuzuaUT33f6KDZQVkl3DbqA4tK3izaicJqc39hBeWwFTo3YbqNhlVviyxxG9xY3sxCSZZREAWa9Mmub2yZK74oTV0yPWjXDfMyb4hTHoLR7VUiXXiyQa3qc9NikhCExigiqsW/ZLq3BH0vlDPFbJXccNYRbRSOUzNA5RY1wzY+q2+Ul7fHM2e40qtzaXG2Ll8uaUgp1NCddheYJNkJP+lL5CHtMi1lfsNNi6DL4bMBkWRXAVGaC3fYlL1EAGQeWGTvxEEN33k5OdvZASmCK7d4fw2jWp1Mpj3Yadb+n6AHD7NF46OnPts3FVD7v x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO1PR11MB5073.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(346002)(396003)(39860400002)(366004)(376002)(71200400001)(83380400001)(478600001)(66556008)(8676002)(52536014)(26005)(55016002)(64756008)(33656002)(76116006)(66946007)(38100700002)(5660300002)(2906002)(6506007)(66476007)(966005)(110136005)(66446008)(86362001)(8936002)(9686003)(7696005)(53546011)(316002)(186003)(122000001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?MHJHNEtpYVo5OGViZ21KMytWUUlIOE5DWXRESEFWT212M3NMNWc5Q0JyY1Va?= =?utf-8?B?bzhQWFpZWGVSTk5ETWZyL1NmOE5oeXo3WHA5dHpsTlAxK1BHWG1yQTd0dFdn?= =?utf-8?B?N2Y3MVExRjVqODRPNE9FclAxTk5Ra1k0S0VuOE5lOHNlTzVIcVY3c0lJUVdM?= =?utf-8?B?bU43SHcyQVE1Mm11bm1haHp0aXlmcUd5MHFqL1Bnb2traXRFQ043WExLenVu?= =?utf-8?B?QWJzS0ovWVBxQlFIQUJrZVEvZFE5ZldwMmkxVlN5aXAwWS9wUFR3UlVsMTBD?= =?utf-8?B?VjhKUFdudFlEUlkyZ2EzQnRQNUxWR3R0QzQ0eU96QTkzRjFsTzdDRitGV0h1?= =?utf-8?B?RkUxN09BSDg3bmFlNlN0TExmcmsvbWdqekxpVkExTTk3T0NFem96Y2owSVRD?= =?utf-8?B?MklzaVhLa0tBV1pnL2pNU21Cai9ta2w3WGRiVXYvQWQrZTNTdWNZUFNTYUpr?= =?utf-8?B?Rkc0ZjkxT1pJZzRMTmFKb3huQXJjWFJsZkFJZXNoZ2lTc3hnSFExczhhQWVW?= =?utf-8?B?aFFoaDRKSTFOaUxYdTJUZ3phR2J5anFmOXlRMzV6U2hrVVdCVEdRb0xhb1Y5?= =?utf-8?B?blhwUXhkSG0wSy9vaWN0SGtQYmtRSUlkNDFHbzVYcGNlZnBoZ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PYlljbU1CbEdRbkdPbGtZ?= =?utf-8?B?L1BjemUwcDBoUkRKYVRnQ0xHbnRWOHBZRGtjSmRnTzU2dlJ4dHVZWklXbmJ3?= =?utf-8?B?eFlzS3UwREhRYWFZZ1FrelprRG9heXM0ZUtqMFROdmw0blE3aTkrWmQ1ODB2?= =?utf-8?B?aS9seVl6cVQwOXJBQm9XTHZlQ1lYSFV6VU5Tc29QMG55MkRxdkJTL2hTUHdi?= =?utf-8?Q?1c5a3HYqzTEFcjteFg=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5073.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6978aeb-9f11-4017-e8cf-08d9191b9922 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 May 2021 10:07:37.3011 (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: ezDH/tbp4k+iaF3Sul/qESpp4zgsPLIjC6cDCNH4tHzaHGNpXzvKBVKFFKHsAIzsF9m7BQX+UXdgVLssympskQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4683 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] vhost: fix invalid use of stored last used index 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBNYXhpbWUgQ29xdWVsaW4gPG1h eGltZS5jb3F1ZWxpbkByZWRoYX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