From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30084.outbound.protection.outlook.com [40.107.3.84]) by dpdk.org (Postfix) with ESMTP id AC2A149E1 for ; Thu, 16 Aug 2018 19:55:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q071rIoIBD5cjoVDDhdQBsEiq6awbkn0KNxb0TqET8M=; b=ycD2K3Sje97wc2uXQGPcDxhqkaL+105DzTGzoNJygZP433r7Ja7IuWqUf98N7WDdE/bBlFyHEEEXne7SYe3+Ed2b7quI0TL0pPSl36FWdWybKteu0xs2AD8v2ksaU0zu/XXJa7E2rOYoi7xEh0aUHllt7SwyEE5XWzBPH9H7fn8= Received: from DB3PR0502MB3980.eurprd05.prod.outlook.com (52.134.72.27) by DB3PR0502MB4010.eurprd05.prod.outlook.com (52.134.72.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.19; Thu, 16 Aug 2018 17:55:23 +0000 Received: from DB3PR0502MB3980.eurprd05.prod.outlook.com ([fe80::d45:8e84:6d63:c57c]) by DB3PR0502MB3980.eurprd05.prod.outlook.com ([fe80::d45:8e84:6d63:c57c%2]) with mapi id 15.20.1059.017; Thu, 16 Aug 2018 17:55:23 +0000 From: Yongseok Koh To: Maxime Coquelin CC: "stable@dpdk.org" , "bluca@debian.org" Thread-Topic: [PATCH] vhost: retranslate vring addr when memory table changes Thread-Index: AQHUNYawP8CV40Romkyfn/r9FJxQXKTCqY0A Date: Thu, 16 Aug 2018 17:55:23 +0000 Message-ID: References: <20180816172922.20775-1-maxime.coquelin@redhat.com> In-Reply-To: <20180816172922.20775-1-maxime.coquelin@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; x-originating-ip: [209.116.155.178] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB3PR0502MB4010; 6:gjavNv3ryL3ZFlvXqtXbLHBCmCItuZNiG8H6WJ9Z1yyGs6sVMepICI0hhCSz3p/ZUYVy38Ita3eRE3Jd2VdZqALv7vpyP4cCgqWgi9UYAvuZTrdQCeLO5nctp1Q/M3LCpmkrcdB/ilcmGPVDqq7ax6aVyUD8X2915vswW6YQRANhloCzq15SfiKj95lAci8PPmhFm8rcY/+QDWhmPvpJ0DQ91FZRCKECH7j+QDKd5InKfDG/RjuCoHtP+8pJULAmr29lMQIHJPqVPvqPLHiVxYCOdkZFVqFtbx9Q37rthF9xTSsi6SI8mM/fY/2A3acGR19or/t/2mNSlr9sU+//xQG2XXlW9XJtQ3gPCAAo/lUt22X0qFu9BOvyi0ormF9m/EQG4/4ZuXlxyEhrRNOiXUWogbai7k4b5PZyOkmwboWhRtMVyQo3Ps2Hpw0yHYwfWwd9D7KBNXOLxYQAPeAPoQ==; 5:HC9ZEcafpZCJnQagiTKOEkWDDyu3aNgZaWZAmRy8bUX3KlO+MIAZNNeE/2LFnEGEIS2F9F8+NpEJQqZnv5a5lDV1Y71bwaHSZpPZg+04HMnHNiO1Cxor6e55fRGf06wtCmxA24yQ3WxlwZ9Qfs1VAQ40huNLxXJJeLFgH8tynDE=; 7:w3JSR59EfaW2FunYLbak2P0e55zACnxDit7XFUTs8YKHCqN+o68pheUlGhARsN1eJVChPKO5qinU5iVZTc5usnZnqtKrK2N9GUtRuPAlCPLbAy0VOAbq4f5b5WQwMWazQg8JBQKLGufzv8lUTNrlQSJZMmQbrn03NHL68hvvehdJBCo2yFd/TLBC5cmB/hjmgyw7QJP2zraUZ39UPSSlGI9LQbqCF/b2uISLHEppdAATkqAA/Mjz75uwD/juth/W x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: fa27ba15-82c4-4b89-b69c-08d603a1709a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB3PR0502MB4010; x-ms-traffictypediagnostic: DB3PR0502MB4010: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(201708071742011)(7699016); SRVR:DB3PR0502MB4010; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0502MB4010; x-forefront-prvs: 07665BE9D1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(366004)(39860400002)(346002)(376002)(189003)(199004)(316002)(3846002)(186003)(6116002)(6512007)(54906003)(33656002)(105586002)(446003)(106356001)(6916009)(5660300001)(68736007)(76176011)(6246003)(83716003)(99286004)(97736004)(36756003)(14454004)(2900100001)(7736002)(2906002)(305945005)(4326008)(486006)(8936002)(256004)(14444005)(476003)(8676002)(53936002)(81166006)(82746002)(26005)(53546011)(6506007)(102836004)(25786009)(6486002)(229853002)(5250100002)(6436002)(81156014)(11346002)(2616005)(86362001)(66066001)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB4010; H:DB3PR0502MB3980.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: jJ2P6nSjo+6TjBhvxpo2qDht2y0cn2ZH8Bl9pVxd40MN3H3uR1DfIHBhwxqETT9VwDUSHwoxgGKnwktE99jQ3hhYFhzVpV+xzhbfCL+7AR6bO3M+wj2JDfUjd3w+BbUcPNPkxxG2UtBSABwjIYhwfcV9HkKhr0/FgkZ5HXS9oPkeUIyHglmmRqK1DgzYTxioAcg60FQkhcUzeAY8KMD1v5f/RNaRmRybp/Vu/qu/pMQ/ithzsVsSMKR/FI9a4EVy37ZreBbJL/nDv1qqfZWm+mOM7r9kbgBWx6+6NrSBYl2cpYNzksNmsB6XWpIjcAcnOUv7eJtRzcoHz5X/eauut4fRsfV8q0Tw09kYusNDBwc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <81A037092763D1469F0EBCEB089745F0@eurprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa27ba15-82c4-4b89-b69c-08d603a1709a X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Aug 2018 17:55:23.2059 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB4010 Subject: Re: [dpdk-stable] [PATCH] vhost: retranslate vring addr when memory table changes X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2018 17:55:25 -0000 > On Aug 16, 2018, at 10:29 AM, Maxime Coquelin wrote: >=20 > [ Backported from upstream commit d5022533c20aed365d513663806a99945903701= 5 ] >=20 > When the vhost-user master sends memory updates using > VHOST_USER_SET_MEM request, the user backends unmap and then > mmap again the memory regions in its address space. >=20 > If the ring addresses have already been translated, it needs to > be translated again as they point to unmapped memory. >=20 > Signed-off-by: Maxime Coquelin > --- >=20 > Hi Yongseok, >=20 > This patch is already in upstream master since v18.05, but wasn't > backported to stable because it initially fixed a bug in a new > feature. >=20 > I have been reported of a crash in the vhost-user library that > this patch fixes, so we would need to backport this patch to > v17.11 LTS. Many thanks. Applied to stable/17.11 Yongseok=