get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/48717/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 48717,
    "url": "https://patches.dpdk.org/api/patches/48717/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20181213011014.110089-1-xiao.w.wang@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": "<20181213011014.110089-1-xiao.w.wang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181213011014.110089-1-xiao.w.wang@intel.com",
    "date": "2018-12-13T01:10:05",
    "name": "[v2,0/9] support SW assisted VDPA live migration",
    "commit_ref": null,
    "pull_url": null,
    "state": null,
    "archived": false,
    "hash": null,
    "submitter": {
        "id": 281,
        "url": "https://patches.dpdk.org/api/people/281/?format=api",
        "name": "Xiao Wang",
        "email": "xiao.w.wang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20181213011014.110089-1-xiao.w.wang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/48717/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/48717/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 46FCC1B446;\n\tThu, 13 Dec 2018 02:22:47 +0100 (CET)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id D7F221B3B1\n\tfor <dev@dpdk.org>; Thu, 13 Dec 2018 02:22:45 +0100 (CET)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t12 Dec 2018 17:22:44 -0800",
            "from dpdk-xiao-1.sh.intel.com ([10.67.111.145])\n\tby orsmga008.jf.intel.com with ESMTP; 12 Dec 2018 17:22:42 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.56,346,1539673200\"; d=\"scan'208\";a=\"101112804\"",
        "From": "Xiao Wang <xiao.w.wang@intel.com>",
        "To": "alejandro.lucero@netronome.com,\n\ttiwei.bie@intel.com",
        "Cc": "maxime.coquelin@redhat.com, dev@dpdk.org, zhihong.wang@intel.com,\n\txiaolong.ye@intel.com, Xiao Wang <xiao.w.wang@intel.com>",
        "Date": "Thu, 13 Dec 2018 09:10:05 +0800",
        "Message-Id": "<20181213011014.110089-1-xiao.w.wang@intel.com>",
        "X-Mailer": "git-send-email 2.15.1",
        "In-Reply-To": "<20181128094607.106173-3-xiao.w.wang@intel.com>",
        "References": "<20181128094607.106173-3-xiao.w.wang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 0/9] support SW assisted VDPA live migration",
        "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": "In the previous VDPA implementation we have enabled live migration support\nby HW accelerator doing all the stuff, including dirty page logging and\ndevice status report/restore. In this mode VDPA sample daemon and device\ndriver just takes care of the control path and does not involve in data\npath, so there's almost 0 CPU resource usage. This mode requires device\nto have dirty page logging capability.\n\nThis patch series adds live migration support for devices without logging\ncapability. VDPA driver could set up a relay thread standing between the\nguest and device when live migration happens, this relay intervenes into\nthe communication between guest virtio driver and physical virtio\naccelerator, it helps device to do a vring relay and passingly log dirty\npages. Thus some CPU resource will be consumed in this scenario, percentage\ndepending on the network throughput.\n\nSome new helpers are added into vhost lib for this VDPA SW fallback:\n- rte_vhost_host_notifier_ctrl, to enable/disable the VDPA direct-IO\n  datapath.\n- rte_vdpa_relay_avail_ring, to relay the available ring from guest vring\n  to mediate vring.\n- rte_vdpa_relay_used_ring, to relay the used ring from mediate vring to\n  guest vring.\n\nSome existing helpers are also leveraged for SW fallback setup, like VFIO\ninterrupt configuration, IOMMU table programming, etc.\n\nThis patch enables this SW assisted VDPA live migration in ifc driver.\nSince ifcvf also supports HW dirty page logging, we add a new devarg\nfor user to select if the SW mode is used or not.\n\nv2:\n* Reword the vdpa host notifier control API comment.\n* Make the vring relay API parameter as \"void *\" to accomodate the future\n  potential new ring layout, e.g. packed ring.\n* Add parameter check for the new API.\n* Add memory barrier for ring idx update.\n* Remove the used ring logging in the relay.\n* Some comment fix and code cleaning according to Tiwei's comment.\n* Add release note update.\n\nXiao Wang (9):\n  vhost: provide helper for host notifier ctrl\n  vhost: provide helpers for virtio ring relay\n  net/ifc: dump debug message for error\n  net/ifc: store only registered device instance\n  net/ifc: detect if VDPA mode is specified\n  net/ifc: add devarg for LM mode\n  net/ifc: use lib API for used ring logging\n  net/ifc: support SW assisted VDPA live migration\n  doc: update ifc NIC document\n\n doc/guides/nics/ifc.rst                |   7 +\n doc/guides/rel_notes/release_19_02.rst |   5 +\n drivers/net/ifc/base/ifcvf.h           |   1 +\n drivers/net/ifc/ifcvf_vdpa.c           | 461 ++++++++++++++++++++++++++++++---\n lib/librte_vhost/rte_vdpa.h            |  56 ++++\n lib/librte_vhost/rte_vhost_version.map |   3 +\n lib/librte_vhost/vdpa.c                | 187 +++++++++++++\n lib/librte_vhost/vhost.c               |   3 +-\n lib/librte_vhost/vhost.h               |  40 +++\n lib/librte_vhost/vhost_user.c          |   7 +-\n lib/librte_vhost/virtio_net.c          |  39 ---\n 11 files changed, 731 insertions(+), 78 deletions(-)",
    "diff": null,
    "prefixes": [
        "v2",
        "0/9"
    ]
}