mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging
* remotes/qmp-unstable/queue/qmp: (43 commits) monitor: protect event emission monitor: protect outbuf and mux_out with mutex qemu-char: make writes thread-safe qemu-char: move pty_chr_update_read_handler around qemu-char: do not call chr_write directly qemu-char: introduce qemu_chr_alloc qapi event: clean up qapi event: convert QUORUM events qapi event: convert GUEST_PANICKED qapi event: convert BALLOON_CHANGE qmp: convert ACPI_DEVICE_OST event qapi event: convert SPICE events qapi event: convert VNC events qapi event: convert NIC_RX_FILTER_CHANGED qapi event: convert other BLOCK_JOB events qapi event: convert BLOCK_IMAGE_CORRUPTED qapi event: convert BLOCK_IO_ERROR and BLOCK_JOB_ERROR qapi event: convert DEVICE_TRAY_MOVED qapi event: convert DEVICE_DELETED qapi event: convert WATCHDOG ... Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
089a39486f
75 changed files with 2053 additions and 1319 deletions
|
@ -22,7 +22,7 @@
|
|||
#include "net/vhost_net.h"
|
||||
#include "hw/virtio/virtio-bus.h"
|
||||
#include "qapi/qmp/qjson.h"
|
||||
#include "monitor/monitor.h"
|
||||
#include "qapi-event.h"
|
||||
|
||||
#define VIRTIO_NET_VM_VERSION 11
|
||||
|
||||
|
@ -199,19 +199,12 @@ static void virtio_net_set_link_status(NetClientState *nc)
|
|||
|
||||
static void rxfilter_notify(NetClientState *nc)
|
||||
{
|
||||
QObject *event_data;
|
||||
VirtIONet *n = qemu_get_nic_opaque(nc);
|
||||
|
||||
if (nc->rxfilter_notify_enabled) {
|
||||
gchar *path = object_get_canonical_path(OBJECT(n->qdev));
|
||||
if (n->netclient_name) {
|
||||
event_data = qobject_from_jsonf("{ 'name': %s, 'path': %s }",
|
||||
n->netclient_name, path);
|
||||
} else {
|
||||
event_data = qobject_from_jsonf("{ 'path': %s }", path);
|
||||
}
|
||||
monitor_protocol_event(QEVENT_NIC_RX_FILTER_CHANGED, event_data);
|
||||
qobject_decref(event_data);
|
||||
qapi_event_send_nic_rx_filter_changed(!!n->netclient_name,
|
||||
n->netclient_name, path, &error_abort);
|
||||
g_free(path);
|
||||
|
||||
/* disable event notification to avoid events flooding */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue