Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/47312/?format=api
https://patches.dpdk.org/api/patches/47312/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20181024093948.9539-1-tiwei.bie@intel.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20181024093948.9539-1-tiwei.bie@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20181024093948.9539-1-tiwei.bie@intel.com", "date": "2018-10-24T09:39:48", "name": "vhost: initialize postcopy ufd properly", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "25aa187d497e37be1272625f6b4e107cc9ed0e3d", "submitter": { "id": 617, "url": "https://patches.dpdk.org/api/people/617/?format=api", "name": "Tiwei Bie", "email": "tiwei.bie@intel.com" }, "delegate": { "id": 2642, "url": "https://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20181024093948.9539-1-tiwei.bie@intel.com/mbox/", "series": [ { "id": 2061, "url": "https://patches.dpdk.org/api/series/2061/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=2061", "date": "2018-10-24T09:39:48", "name": "vhost: initialize postcopy ufd properly", "version": 1, "mbox": "https://patches.dpdk.org/series/2061/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/47312/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/47312/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D62B31B0F8;\n\tWed, 24 Oct 2018 11:41:14 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 99DF95F19\n\tfor <dev@dpdk.org>; Wed, 24 Oct 2018 11:41:13 +0200 (CEST)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t24 Oct 2018 02:41:12 -0700", "from btwcube1.sh.intel.com ([10.67.104.158])\n\tby fmsmga002.fm.intel.com with ESMTP; 24 Oct 2018 02:41:11 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.54,420,1534834800\"; d=\"scan'208\";a=\"98114194\"", "From": "Tiwei Bie <tiwei.bie@intel.com>", "To": "maxime.coquelin@redhat.com,\n\tzhihong.wang@intel.com,\n\tdev@dpdk.org", "Date": "Wed, 24 Oct 2018 17:39:48 +0800", "Message-Id": "<20181024093948.9539-1-tiwei.bie@intel.com>", "X-Mailer": "git-send-email 2.19.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH] vhost: initialize postcopy ufd properly", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Currently, postcopy_ufd is initialized to 0 implicitly, so fd 0\ncould be closed unexpectedly by vhost_backend_cleanup(). Fix this\nissue by initializing postcopy_ufd to -1 explicitly.\n\nFixes: 9eefef3b5970 (\"vhost: introduce postcopy advise message\")\n\nSigned-off-by: Tiwei Bie <tiwei.bie@intel.com>\n---\n lib/librte_vhost/vhost.c | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/lib/librte_vhost/vhost.c b/lib/librte_vhost/vhost.c\nindex 047ee535c..70ac6bc9c 100644\n--- a/lib/librte_vhost/vhost.c\n+++ b/lib/librte_vhost/vhost.c\n@@ -344,6 +344,7 @@ vhost_new_device(void)\n \tdev->flags = VIRTIO_DEV_BUILTIN_VIRTIO_NET;\n \tdev->slave_req_fd = -1;\n \tdev->vdpa_dev_id = -1;\n+\tdev->postcopy_ufd = -1;\n \trte_spinlock_init(&dev->slave_req_lock);\n \n \treturn i;\n", "prefixes": [] }{ "id": 47312, "url": "