From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucw26-0003wW-09 for qemu-devel@nongnu.org; Thu, 16 May 2013 07:07:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ucw21-0007KM-8z for qemu-devel@nongnu.org; Thu, 16 May 2013 07:07:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucw21-0007KA-1t for qemu-devel@nongnu.org; Thu, 16 May 2013 07:07:33 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4GB7Uux031898 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 16 May 2013 07:07:30 -0400 From: Amos Kong Date: Thu, 16 May 2013 19:07:23 +0800 Message-Id: <1368702445-30733-1-git-send-email-akong@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/2] mac programming over macvtap List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, mst@redhat.com, lcapitulino@redhat.com Cc: stefanha@redhat.com This patchset introduces a QMP event and a monitor command. The event is used to notify management when mac-table configuration is changed by guest. Management can use the new monitor command to query mac-table information, and sync the changes to macvtap devices. There maybe exist an uncontrollable delay, guests normally expect rx-mode updates immediately, but it's another separate issue, we can investigate it after Libvirt work is done. Patches are based on Michael's patchset [1], you can also find patches in my github [2]. [1] [PATCH v3 00/11] qapi: add support for lists of native types [2] https://github.com/kongove/qemu/tree/01-query-mactable v2: add argument to filter mac-table info of single nic (Stefan) update the document add event notification Amos Kong (2): net: introduce MAC_TABLE_CHANGED event net: introduce command to query mac-table information QMP/qmp-events.txt | 14 +++++++++ hmp-commands.hx | 2 ++ hmp.c | 71 ++++++++++++++++++++++++++++++++++++++++++++ hmp.h | 1 + hw/net/virtio-net.c | 75 +++++++++++++++++++++++++++++++++++++++++++++++ include/monitor/monitor.h | 1 + include/net/net.h | 2 ++ monitor.c | 9 ++++++ net/net.c | 38 ++++++++++++++++++++++++ qapi-schema.json | 57 +++++++++++++++++++++++++++++++++++ qmp-commands.hx | 53 +++++++++++++++++++++++++++++++++ 11 files changed, 323 insertions(+) -- 1.8.1.4