On 05/16/2013 05:07 AM, Amos Kong wrote: > Introduce this new QMP event to notify management after guest changes > mac-table configuration. > > Signed-off-by: Amos Kong <ak...@redhat.com> > --- > QMP/qmp-events.txt | 14 ++++++++++++++ > hw/net/virtio-net.c | 12 ++++++++++++ > include/monitor/monitor.h | 1 + > monitor.c | 1 + > 4 files changed, 28 insertions(+) > > diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt > index 92fe5fb..24d62df 100644 > --- a/QMP/qmp-events.txt > +++ b/QMP/qmp-events.txt > @@ -154,6 +154,20 @@ Data: > "path": "/machine/peripheral/virtio-net-pci-0" }, > "timestamp": { "seconds": 1265044230, "microseconds": 450486 } } > > +MAC_TABLE_CHANGED > +----------------- > + > +Emitted mac-table configuration is changed by the guest. > + > +Data: > + > +- "name": net client name (json-string) > + > +{ "event": "MAC_TABLE_CHANGED", > + "data": { "name": "vnet0" }, > + "timestamp": { "seconds": 1368697518, "microseconds": 326866 }} > +}
Is it worth trying to also provide details about the change as part of the event, to avoid having to do a round-trip query- command just to learn what the new values are? -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature