From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 00AFAFFA for ; Mon, 30 Apr 2018 16:07:21 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id i3so14395463wmf.3 for ; Mon, 30 Apr 2018 07:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WS3CeoHcPQlO84qhzrF/R1yeTSb78G+VA8Y1eaDfMqE=; b=UfgDFrxXEbhFxMVxSLYAkdRH8c8HiEixCVCYdrWS0kWPF2jyRV/E0uelToPA+DVWI3 3EkUkLTreX4hHv58puduN+VFbAJFpm0uHIq23gNSTbFhNZKmVLeRSCx77S54GE5yuBFF 8Ud/egCTDbezlxCFBuUlrYMl2XUgYkpgh8myILVE4p5zlv+GvUxPxYsTaZuYTCapbR7y PejslZWz1zbbeJ1n6n+ji4r5ei6me3NtlBIDWDerr7MgP0FsZf+XzItrzbczGKUgd590 4ilEmQzn9KpIhAvvGAehssyPAn1qfdxvTK4ce8ldGUo5qjup6p5lRn00Lgk3ivAH8I4z rMaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WS3CeoHcPQlO84qhzrF/R1yeTSb78G+VA8Y1eaDfMqE=; b=ZtWpmMdQ6HKSiu8JtPWejeQxbRgG3ECl4mxqH4wifaI1KD5dH/WvpHqYWMm0/7m+6n S44efCv9y+UznvgUFdHZvSPDJVPne1FYlmsz9G1gxclcddNCfIiJ7RwMjnWAv75DXNPQ 63Eugc5CLEXUJkK52GCi7g9UKzLfa8ceoVLnN92p4RgK86kTCFhgMdVVVUj8XWhTAxz4 +JDV3gpUzhFJxoy2LRy66M7yqeK+Ji1Uhgur5EUy+voduAs8g9NknvSRrbrlMakGoipN zDQoYpDEH8EsOU66F1o/0aLkoDntAelXvziodyzCxd0Eo5PeGUXeOy7VViVmzvDOeztZ fncg== X-Gm-Message-State: ALQs6tBUKEsiJkHMjGvTpe1381UWYauVXtuO2XeAw9NbAvm45cqa27Pp E3S0D3mrCsQaxV8gKVszIuU= X-Google-Smtp-Source: AB8JxZqRmA4ttRt5nUJhB2w1w0GTbkhf07eYWj6/bgwjWhR7WHaiZM4bMm+LYkN+ycQ7zNhet0unFg== X-Received: by 10.28.64.3 with SMTP id n3mr7958363wma.33.1525097240502; Mon, 30 Apr 2018 07:07:20 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id u187sm6774306wmu.46.2018.04.30.07.07.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:07:19 -0700 (PDT) From: luca.boccassi@gmail.com To: Stefan Hajnoczi Cc: Maxime Coquelin , dpdk stable Date: Mon, 30 Apr 2018 15:03:13 +0100 Message-Id: <20180430140606.4615-35-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430140606.4615-1-luca.boccassi@gmail.com> References: <20180430140606.4615-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'vhost: fix message payload union in setting ring address' has been queued to stable release 18.02.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: Mon, 30 Apr 2018 14:07:21 -0000 Hi, FYI, your patch has been queued to stable release 18.02.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 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From cfc4a715578e355c7b09104a79fd0af3ed309b54 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 2d008fb02..dc282cb9f 100644 --- a/lib/librte_vhost/vhost_user.c +++ b/lib/librte_vhost/vhost_user.c @@ -513,7 +513,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.14.2