From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJy4O-0000ux-Ai for qemu-devel@nongnu.org; Tue, 06 Nov 2018 04:54:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJxzm-0000sd-Tl for qemu-devel@nongnu.org; Tue, 06 Nov 2018 04:50:08 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:40776) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJxzm-0000s9-A4 for qemu-devel@nongnu.org; Tue, 06 Nov 2018 04:50:02 -0500 Date: Tue, 6 Nov 2018 11:49:54 +0200 From: Yuval Shaia Message-ID: <20181106094953.GA5678@lap1> References: <20181105124559.21561-1-yuval.shaia@oracle.com> <20181105124559.21561-11-yuval.shaia@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 10/18] json: Define new QMP message for pvrdma List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: marcel.apfelbaum@gmail.com, dmitry.fleytman@gmail.com, jasowang@redhat.com, armbru@redhat.com, shamir.rabinovitch@oracle.com, qemu-devel@nongnu.org On Mon, Nov 05, 2018 at 09:58:56AM -0600, Eric Blake wrote: > On 11/5/18 6:45 AM, Yuval Shaia wrote: > > 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 > > --- > > > +++ b/qapi/rdma.json > > @@ -0,0 +1,34 @@ > > +# -*- Mode: Python -*- > > +# > > + > > +## > > +# = RDMA device > > +## > > + > > +## > > +# @RDMA_GID_STATUS_CHANGED: > > +# > > +# Emitted when guest driver adds/deletes GID to/from device > > +# > > +# @netdev: RoCE Network Device name - char * > > +# > > +# @gid-status: Add or delete indication - bool > > +# > > +# @subnet-prefix: Subnet Prefix - uint64 > > +# > > +# @interface-id : Interface ID - uint64 > > +# > > +# Since: 2.12.1 > > You've missed 2.12.1 by a long shot. Since we are in soft freeze and this is > a new feature, the soonest this can be released is in 3.2. Sure, will do the change. Thanks. > > > +# > > +# Example: > > +# > > +# <- { {"timestamp": {"seconds": 1540819325, "microseconds": 504544}, > > +# "event": "ADDGID", "data": {"netdev": "bridge0", > > +# "interface-id": 7052258031502978997, "subnet-prefix": 33022}} > > +# > > +## > > +{ 'event': 'RDMA_GID_STATUS_CHANGED', > > + 'data': { 'netdev' : 'str', > > + 'gid-status' : 'bool', > > + 'subnet-prefix' : 'uint64', > > + 'interface-id' : 'uint64' } } > > > > -- > Eric Blake, Principal Software Engineer > Red Hat, Inc. +1-919-301-3266 > Virtualization: qemu.org | libvirt.org