From patchwork Sat Dec 22 09:50:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Apfelbaum X-Patchwork-Id: 1017810 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::12; helo=lists.nongnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="p/evmPEa"; dkim-atps=neutral Received: from lists.nongnu.org (lists.nongnu.org [IPv6:2001:4830:134:3::12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43MLT70bJJz9sPl for ; Sat, 22 Dec 2018 20:55:06 +1100 (AEDT) Received: from localhost ([::1]:41425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gadzs-0000Z8-H7 for incoming@patchwork.ozlabs.org; Sat, 22 Dec 2018 04:55:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gadvt-0006Br-RS for qemu-devel@nongnu.org; Sat, 22 Dec 2018 04:50:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gadvs-0006Oc-Q5 for qemu-devel@nongnu.org; Sat, 22 Dec 2018 04:50:57 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:34962) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gadvs-0006O8-Kf for qemu-devel@nongnu.org; Sat, 22 Dec 2018 04:50:56 -0500 Received: by mail-wm1-x344.google.com with SMTP id c126so7865756wmh.0 for ; Sat, 22 Dec 2018 01:50:56 -0800 (PST) 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=NQqFg5YEyp8lulCHa6h8Lw0WrMYf6IBBChJyy+CJT/Y=; b=p/evmPEaZHZnZd3J0AutAfKnHQeK9QamW2voai0Op0+RV17f29VrnYfqkKgdNDSy61 E6y+PjAszvCKSJhp9M7y6Nt0TWIG6pnUKPyNcOx8BFghSWE05z23NgPs6weukNJX2FkU w84ZKgNTDGliOXug0Z6eHMKHEyDNnzzOiwnfEvPr6zyHsmDN1wGctas7pijcEvdw19H1 ucmptiBNy2Fv3Dr3685CAL8fh5KoWCOQ9ZHuA1gBZECQSm/fvZfJ2i1izBLU5Uuaf5GQ 0ZpPfVJNhcNqxoAX7xV5vZxgE+xIvHl4/iM8H4UgLdxAzZwI3pDblKQQ703oDDZN5uGQ a0ug== 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=NQqFg5YEyp8lulCHa6h8Lw0WrMYf6IBBChJyy+CJT/Y=; b=Lyq4Dg3WyFZLHd2cTpnFifzh9zHt7TpzVRboEWRiXx6p5tE6Z4NpM+/SM5DdHfLdyo cVcuyVQY/f0o9+43n3e6j8pueIVWvpVtJFRRNAtS9xOa+S4EM2ULW15nrBXSMW8he8u7 q6MAbZQvg1DY7wKRmayBtAISeq5yZ+fjdm8VoYajJNYb58x1uo51KZV7SDQXDpbZlVTx b4xzsrbNuapt+bNsWCB1ltrarpXpvlD7bgGMuf1bmpkWtWhv1laaLhqk5Z1g62oY0Jfu MMiCuUNkqnd4Tc9PAmfoeX6CJREO8zlm7p36J/zOYZwUvBoo7XorluTqZI188KybkEUj 4M8Q== X-Gm-Message-State: AJcUukeOWO5sWTC7+y6hJoKBnKVW4+CbtUlNtRvPHhM2QbmXyV7DACwf Hc+liKvIyHgqAnfexJsxl4q4CW5J X-Google-Smtp-Source: ALg8bN79UPe2TECkNhEYr9D895xKRtDyiGM0ckLi7UFeObPr05M0l9pzMaODcgFppHr6Jiebmpo6Bg== X-Received: by 2002:a1c:f916:: with SMTP id x22mr6209868wmh.87.1545472255376; Sat, 22 Dec 2018 01:50:55 -0800 (PST) Received: from localhost.localdomain ([176.228.155.165]) by smtp.gmail.com with ESMTPSA id s3sm9557371wmj.23.2018.12.22.01.50.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Dec 2018 01:50:54 -0800 (PST) From: Marcel Apfelbaum To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Sat, 22 Dec 2018 11:50:16 +0200 Message-Id: <20181222095036.29743-12-marcel.apfelbaum@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181222095036.29743-1-marcel.apfelbaum@gmail.com> References: <20181222095036.29743-1-marcel.apfelbaum@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 Subject: [Qemu-devel] [PATCH PULL 11/31] qapi: Define new QMP message for pvrdma X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yuval.shaia@oracle.com, pjp@fedoraproject.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Yuval Shaia pvrdma requires that the same GID attached to it will be attached to the backend device in the host. A new QMP messages is defined so pvrdma device can broadcast any change made to its GID table. This event is captured by libvirt which in turn will update the GID table in the backend device. Signed-off-by: Yuval Shaia Reviewed-by: Marcel Apfelbaum Acked-by: Markus Armbruster Signed-off-by: Marcel Apfelbaum --- MAINTAINERS | 1 + Makefile.objs | 3 ++- qapi/qapi-schema.json | 1 + qapi/rdma.json | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 qapi/rdma.json diff --git a/MAINTAINERS b/MAINTAINERS index 856d379b0a..180695f5d3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2413,6 +2413,7 @@ F: hw/rdma/* F: hw/rdma/vmw/* F: docs/pvrdma.txt F: contrib/rdmacm-mux/* +F: qapi/rdma.json Build and test automation ------------------------- diff --git a/Makefile.objs b/Makefile.objs index 319f14d937..bc5b8a8442 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -1,5 +1,6 @@ QAPI_MODULES = block-core block char common crypto introspect job migration -QAPI_MODULES += misc net rocker run-state sockets tpm trace transaction ui +QAPI_MODULES += misc net rdma rocker run-state sockets tpm trace transaction +QAPI_MODULES += ui ####################################################################### # Common libraries for tools and emulators diff --git a/qapi/qapi-schema.json b/qapi/qapi-schema.json index 65b6dc2f6f..3bbdfcee84 100644 --- a/qapi/qapi-schema.json +++ b/qapi/qapi-schema.json @@ -86,6 +86,7 @@ { 'include': 'char.json' } { 'include': 'job.json' } { 'include': 'net.json' } +{ 'include': 'rdma.json' } { 'include': 'rocker.json' } { 'include': 'tpm.json' } { 'include': 'ui.json' } diff --git a/qapi/rdma.json b/qapi/rdma.json new file mode 100644 index 0000000000..b58105b1b6 --- /dev/null +++ b/qapi/rdma.json @@ -0,0 +1,38 @@ +# -*- Mode: Python -*- +# + +## +# = RDMA device +## + +## +# @RDMA_GID_STATUS_CHANGED: +# +# Emitted when guest driver adds/deletes GID to/from device +# +# @netdev: RoCE Network Device name +# +# @gid-status: Add or delete indication +# +# @subnet-prefix: Subnet Prefix +# +# @interface-id : Interface ID +# +# Since: 4.0 +# +# Example: +# +# <- {"timestamp": {"seconds": 1541579657, "microseconds": 986760}, +# "event": "RDMA_GID_STATUS_CHANGED", +# "data": +# {"netdev": "bridge0", +# "interface-id": 15880512517475447892, +# "gid-status": true, +# "subnet-prefix": 33022}} +# +## +{ 'event': 'RDMA_GID_STATUS_CHANGED', + 'data': { 'netdev' : 'str', + 'gid-status' : 'bool', + 'subnet-prefix' : 'uint64', + 'interface-id' : 'uint64' } }