From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 8C2612583 for ; Sun, 22 Apr 2018 17:10:32 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B226721000; Sun, 22 Apr 2018 11:10:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 22 Apr 2018 11:10:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=j7D7+/NT/4g4GdsMq YTmwBAoeFTLp95JoCuPQX8ldCY=; b=jt6MwMWrk2RuXHB0tAvf7t48uCqloDE2a 8Wv5N10hKIf6kHhL6Zk8G67/o6RoP/8p6iloxxBlurc/dSo5ktgSILecI+zFuTAp AlWlOYW+/EuvYWaKkuPub25BSFcK21sqkf4ozBY+1/6Th2Y5Ws0QGq9X+RPgmh8J BHqAGV4e+iDRGXKupbHSYXkXc3CCWnRzU6DMSRF5CHYAENe9O6kD2q6ySGtKVhBO M9NLNgoy0jFpk4ZDS7Ma5QVDngseHDcI3oII4F4XwcAna80dMZGi6qC4zYKXFGsu jac/YGF0scOJ5HBGH3mimNIvDAD+x0xzsqGQrKtO4AT9g6s8uQCnw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=j7D7+/NT/4g4GdsMqYTmwBAoeFTLp95JoCuPQX8ldCY=; b=bwwbFcuf 9xF3cGMV41VQYoDFr62f9Kq5vPOqhfnb8Nm+yp8elHM9i0+u6OgPVwIMUC5T6JfZ m1JCCW3pWca7BGr34AbiHgppVDsNnNBB9pxwB49de5wOHItwx4jzZuKAWXTOmnMH eqac44Rg9jg+3rHH/cSSYeD8ZgBRm/HaNY3EKC6dpSOTZSZQ3q3bOA7vYhuW7YlX +BeJJExiTQNYnmEswnPtcIdwMGWr+tRH7I7XWy6UF0yVvOnrpB8yMMTyN0S1bwhd 8UofPWZfFiKkbJCmhP3+F7j9PUoMwOjQWiSq+NNbD7OsU2MqJ7IgXr1cmasxgDy2 QN8Tp7AZZul+nw== X-ME-Sender: Received: from yuanhanliu-NB0.tencent.com (unknown [223.74.148.66]) by mail.messagingengine.com (Postfix) with ESMTPA id C12A110253; Sun, 22 Apr 2018 11:10:29 -0400 (EDT) From: Yuanhan Liu To: Stefan Hajnoczi Cc: Maxime Coquelin , dpdk stable Date: Sun, 22 Apr 2018 23:08:58 +0800 Message-Id: <20180422150949.17523-8-yliu@fridaylinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180422150949.17523-1-yliu@fridaylinux.org> References: <20180422150949.17523-1-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'vhost: fix message payload union in setting ring address' has been queued to LTS release 17.11.2 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: Sun, 22 Apr 2018 15:10:32 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 04/29/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 3a460071f4febc3c46ce1d255d555c93f2f55018 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Mon, 5 Feb 2018 13:16:00 +0100 Subject: [PATCH] vhost: fix message payload union in setting ring address [ upstream commit 55659ed3ed1880beef6211d345c5bb5baf5b4e8b ] vhost_user_set_vring_addr() uses the msg->payload.addr union member, not msg->payload.state. Luckily the offset of the 'index' field is identical in both structs, so there was never any buggy behavior. Fixes: 5cd690e4fda9 ("vhost: fix vring addresses not translated") Signed-off-by: Stefan Hajnoczi Reviewed-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c index 3acaacf58..4ed18fd12 100644 --- a/lib/librte_vhost/vhost_user.c +++ b/lib/librte_vhost/vhost_user.c @@ -463,7 +463,7 @@ vhost_user_set_vring_addr(struct virtio_net **pdev, VhostUserMsg *msg) if (vq->enabled && (dev->features & (1ULL << VHOST_USER_F_PROTOCOL_FEATURES))) { - dev = translate_ring_addresses(dev, msg->payload.state.index); + dev = translate_ring_addresses(dev, msg->payload.addr.index); if (!dev) return -1; -- 2.11.0