self-announce updates
cover self-announce updates
This work a consolidation of the work by David Gilbert, Germano Veit Michel and myself.
It started out with David wanting to parametirize self-announcments so that the user may control how often annoucment packets (RARPs) were generated by Qemu.
At about the same time, Germano wanted to expose qemu_announce_self() through a QMP command, to solve the issues of running qemu with a bond device as an uplink in the bridge. In this case, when there was failover event in the bond, we want a way to trigger qemu to announce itslef to make traffic flow to a different port in the bond. As an extension of this work, I propsed a expose annoucement capabilities in devices (like virtio-net) and consolidate the announcemnts.
This series is all of the above wraped together with a bunch of modifications.
To begin with, I've separated the annocement parameters from migration as they are now not migration specific. I am also providing a way to set and retrieve current annoucemet values (like initial and max timeouts, number of annoucments, etc..)
The series converts migration annoucement (including virito-net) to use the new parameters, but allows virtio-net to manage its own timer mainly due to the fact that it's running on a different clock and finding a new place to call qemu_announce_self() didn't yeild good results.
We expose qemu-announce-self() through QMP and HMP and add unit tests for all new commands.
And finally, this series limites the number of timers that can be created through the new commands, and have the ability to reset currently runing timers.
Thanks
Vladislav Yasevich (12):
migration: Introduce announce parameters
migration: Introduce announcement timer
migration: Switch to using announcement timer
net: Add a network device specific self-announcement ability
virtio-net: Allow qemu_announce_self to trigger virtio announcements
qmp: Expose qemu_announce_self as a qmp command
migration: Allow for a limited number of announce timers
announce_timer: Add ability to reset an existing timer
hmp: add announce paraters info/set
hmp: Add hmp_announce_self
tests/test-hmp: Add announce parameter tests
tests: Add a test for qemu self announcments
hmp-commands-info.hx | 13 +++ hmp-commands.hx | 28 ++++++ hmp.c | 91 +++++++++++++++++++ hmp.h | 5 + hw/net/virtio-net.c | 58 +++++++++--- include/hw/virtio/virtio-net.h | 3 +- include/migration/vmstate.h | 32 +++++-- include/net/net.h | 2 + include/sysemu/sysemu.h | 16 +++- migration/migration.c | 2 +- migration/savevm.c | 201 ++++++++++++++++++++++++++++++++++++++--- monitor.c | 18 ++++ qapi-schema.json | 103 +++++++++++++++++++++ tests/Makefile.include | 2 + tests/test-announce-self.c | 78 ++++++++++++++++ tests/test-hmp.c | 2 + 16 files changed, 617 insertions(+), 37 deletions(-) create mode 100644 tests/test-announce-self.c
Signature · 1 line
2.7.4
PATCH 1/12 migration: Introduce announce parameters
Add parameters that control RARP/GARP announcement timeouts. The parameters structure is added to the QAPI and a qmp command is added to set/get the parameter data.
Based on work by "Dr. David Alan Gilbert" <[email protected]>
--- include/sysemu/sysemu.h | 7 ++++ migration/savevm.c | 98 +++++++++++++++++++++++++++++++++++++++++++++++++ qapi-schema.json | 84 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 189 insertions(+)
include/sysemu/sysemu.h +7 -0
@@ -78,6 +78,13 @@ void qemu_remove_machine_init_done_notifier(Notifier *notify);int save_vmstate (const char *name,Error **errp);int load_vmstate (const char *name,Error **errp); +AnnounceParameters *qemu_get_announce_params (void ); +void qemu_fill_announce_parameters (AnnounceParameters **to, +AnnounceParameters *from); +bool qemu_validate_announce_parameters (AnnounceParameters *params, +Error **errp); +void qemu_set_announce_parameters (AnnounceParameters *announce_params, +AnnounceParameters *params);void qemu_announce_self (void );/* Subcommands for QEMU_VM_COMMAND */
migration/savevm.c +98 -0
104 lines not on this page · raw message
qapi-schema.json +84 -0
90 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 2/12 migration: Introduce announcement timer
In reply to Vladislav YasevichIntrodec an annoucement timer structure and initialization to be used by for self-annoucement.
Based on the work by Germano Veit Michel <[email protected]>
--- include/migration/vmstate.h | 13 +++++++++++++ migration/savevm.c | 22 ++++++++++++++++++++++ 2 files changed, 35 insertions(+)
include/migration/vmstate.h +13 -0
@@ -1057,6 +1057,19 @@ void vmstate_register_ram(struct MemoryRegion *memory, DeviceState *dev);void vmstate_unregister_ram (struct MemoryRegion *memory,DeviceState *dev);void vmstate_register_ram_global (struct MemoryRegion *memory); +typedef struct AnnounceTimer { +QEMUTimer *tm; +AnnounceParameters params; +QEMUClockType type; +int round; +}AnnounceTimer ; + +AnnounceTimer *qemu_announce_timer_new (AnnounceParameters *params, +QEMUClockType type); +AnnounceTimer *qemu_announce_timer_create (AnnounceParameters *params, +QEMUClockType type, +QEMUTimerCB *cb); +static inline int64_t self_announce_delay (int round) {
migration/savevm.c +22 -0
@@ -230,6 +230,28 @@ static void qemu_announce_self_once(void *opaque) } } +AnnounceTimer *qemu_announce_timer_new (AnnounceParameters *params, +QEMUClockType type) +{ +AnnounceTimer *timer =g_new (AnnounceTimer,1 ); + + timer->params = *params; + timer->round = params->rounds; + timer->type = type; + +return timer; +} + +AnnounceTimer *qemu_announce_timer_create (AnnounceParameters *params, +QEMUClockType type, +QEMUTimerCB *cb) +{ +AnnounceTimer *timer =qemu_announce_timer_new (params, type); + + timer->tm =timer_new_ms (type, cb, timer); +return timer; +} +void qemu_announce_self (void ) {static QEMUTimer *timer;
Signature · 1 line
2.7.4
PATCH 3/12 migration: Switch to using announcement timer
In reply to Vladislav YasevichSwitch qemu_announce_self and virtio annoucements to use the announcement timer framework. This makes sure that both timers use the same timeouts and number of annoucement attempts
Based on work by Dr. David Alan Gilbert <[email protected]>
--- hw/net/virtio-net.c | 28 ++++++++++++++++------------ include/hw/virtio/virtio-net.h | 3 +-- include/migration/vmstate.h | 17 +++++++++++------ include/sysemu/sysemu.h | 2 +- migration/migration.c | 2 +- migration/savevm.c | 28 ++++++++++++++-------------- 6 files changed, 44 insertions(+), 36 deletions(-)
hw/net/virtio-net.c +16 -12
@@ -25,6 +25,7 @@#include "qapi/qmp/qjson.h" #include "qapi-event.h" #include "hw/virtio/virtio-access.h" +#include "migration/migration.h" #define VIRTIO_NET_VM_VERSION 11
@@ -115,7 +116,7 @@ static void virtio_net_announce_timer(void *opaque)VirtIONet *n = opaque;VirtIODevice *vdev =VIRTIO_DEVICE (n); - n->announce_counter--; + n->announce_timer->round--; n->status |=VIRTIO_NET_S_ANNOUNCE ;virtio_notify_config (vdev); }
@@ -427,8 +428,8 @@ static void virtio_net_reset(VirtIODevice *vdev) n->nobcast =0 ;/* multiqueue is disabled by default */ n->curr_queues =1 ; -timer_del (n->announce_timer); - n->announce_counter =0 ; +timer_del (n->announce_timer->tm); + n->announce_timer->round =0 ; n->status &= ~VIRTIO_NET_S_ANNOUNCE ;/* Flush any MAC and VLAN filter table state */
@@ -872,10 +873,10 @@ static int virtio_net_handle_announce(VirtIONet *n, uint8_t cmd,if (cmd ==VIRTIO_NET_CTRL_ANNOUNCE_ACK && n->status &VIRTIO_NET_S_ANNOUNCE ) { n->status &= ~VIRTIO_NET_S_ANNOUNCE ; -if (n->announce_counter) { -timer_mod (n->announce_timer, +if (n->announce_timer->round) { +timer_mod (n->announce_timer->tm,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL ) + -self_announce_delay (n->announce_counter)); +self_announce_delay (n->announce_timer)); }return VIRTIO_NET_OK ; }else {
@@ -1615,8 +1616,8 @@ static int virtio_net_post_load_device(void *opaque, int version_id)if (virtio_vdev_has_feature (vdev,VIRTIO_NET_F_GUEST_ANNOUNCE ) &&virtio_vdev_has_feature (vdev,VIRTIO_NET_F_CTRL_VQ )) { - n->announce_counter =SELF_ANNOUNCE_ROUNDS ; -timer_mod (n->announce_timer,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL )); + n->announce_timer->round = n->announce_timer->params.rounds; +timer_mod (n->announce_timer->tm,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL )); }return 0 ;
@@ -1938,8 +1939,10 @@ static void virtio_net_device_realize(DeviceState *dev, Error **errp)qemu_macaddr_default_if_unset (&n->nic_conf.macaddr);memcpy (&n->mac[0 ], &n->nic_conf.macaddr,sizeof (n->mac)); n->status =VIRTIO_NET_S_LINK_UP ; - n->announce_timer =timer_new_ms (QEMU_CLOCK_VIRTUAL , - virtio_net_announce_timer, n); + n->announce_timer =qemu_announce_timer_new (qemu_get_announce_params (), +QEMU_CLOCK_VIRTUAL ); + n->announce_timer->tm =timer_new_ms (QEMU_CLOCK_VIRTUAL , + virtio_net_announce_timer, n);if (n->netclient_type) {/*
@@ -2001,8 +2004,9 @@ static void virtio_net_device_unrealize(DeviceState *dev, Error **errp)virtio_net_del_queue (n, i); } -timer_del (n->announce_timer); -timer_free (n->announce_timer); +timer_del (n->announce_timer->tm); +timer_free (n->announce_timer->tm); +g_free (n->announce_timer);g_free (n->vqs);qemu_del_nic (n->nic);virtio_cleanup (vdev);
include/hw/virtio/virtio-net.h +1 -2
@@ -94,8 +94,7 @@ typedef struct VirtIONet {char *netclient_name;char *netclient_type;uint64_t curr_guest_offloads; -QEMUTimer *announce_timer; -int announce_counter; +AnnounceTimer *announce_timer;bool needs_vnet_hdr_swap; } VirtIONet;
include/migration/vmstate.h +11 -6
@@ -1022,8 +1022,6 @@ extern const VMStateInfo vmstate_info_qtailq;#define VMSTATE_END_OF_LIST () \ {} -#define SELF_ANNOUNCE_ROUNDS 5 -void loadvm_free_handlers (MigrationIncomingState *mis); int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,
@@ -1071,11 +1069,18 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params, QEMUTimerCB *cb);static inline -int64_t self_announce_delay (int round) +int64_t self_announce_delay (AnnounceTimer *timer) { -assert (round <SELF_ANNOUNCE_ROUNDS && round >0 ); -/* delay 50ms, 150ms, 250ms, ... */ -return 50 + (SELF_ANNOUNCE_ROUNDS - round -1 ) *100 ; +int64_t ret; + + ret = timer->params.initial + + (timer->params.rounds - timer->round -1 ) * + timer->params.step; + +if (ret <0 || ret > timer->params.max) { + ret = timer->params.max; + } +return ret; }void dump_vmstate_json_to_file (FILE *out_fp);
include/sysemu/sysemu.h +1 -1
@@ -85,7 +85,7 @@ bool qemu_validate_announce_parameters(AnnounceParameters *params, Error **errp);void qemu_set_announce_parameters (AnnounceParameters *announce_params,AnnounceParameters *params); -void qemu_announce_self (void ); +void qemu_announce_self (AnnounceParameters *params);/* Subcommands for QEMU_VM_COMMAND */ enum qemu_vm_cmd {
migration/migration.c +1 -1
@@ -345,7 +345,7 @@ static void process_incoming_migration_bh(void *opaque)* This must happen after all error conditions are dealt with and * we're sure the VM is going to be running on this host. */ -qemu_announce_self (); +qemu_announce_self (qemu_get_announce_params ());/* If global state section was not received or we are in running state, we need to obey autostart. Any other state is set with
migration/savevm.c +14 -14
@@ -212,21 +212,19 @@ static void qemu_announce_self_iter(NICState *nic, void *opaque)qemu_send_packet_raw (qemu_get_queue (nic), buf, len); } -static void qemu_announce_self_once (void *opaque) { -static int count =SELF_ANNOUNCE_ROUNDS ; -QEMUTimer *timer = *(QEMUTimer **)opaque; +AnnounceTimer *timer = (AnnounceTimer *)opaque;qemu_foreach_nic (qemu_announce_self_iter,NULL ); -if (--count) { -/* delay 50ms, 150ms, 250ms, ... */ -timer_mod (timer,qemu_clock_get_ms (QEMU_CLOCK_REALTIME ) + -self_announce_delay (count)); +if (--timer->round) { +timer_mod (timer->tm,qemu_clock_get_ms (timer->type) + +self_announce_delay (timer)); }else { -timer_del (timer); -timer_free (timer); +timer_del (timer->tm); +timer_free (timer->tm); +g_free (timer); } }
@@ -252,11 +250,13 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params,return timer; } -void qemu_announce_self (void ) +void qemu_announce_self (AnnounceParameters *params) { -static QEMUTimer *timer; - timer =timer_new_ms (QEMU_CLOCK_REALTIME , qemu_announce_self_once, &timer); -qemu_announce_self_once (&timer); +AnnounceTimer *timer; + + timer =qemu_announce_timer_create (params,QEMU_CLOCK_REALTIME , + qemu_announce_self_once); +qemu_announce_self_once (timer); }/***********************************************************/
@@ -1730,7 +1730,7 @@ static void loadvm_postcopy_handle_run_bh(void *opaque)*/ cpu_synchronize_all_post_init (); -qemu_announce_self (); +qemu_announce_self (qemu_get_announce_params ());/* Make sure all file formats flush their mutable metadata. * If we get an error here, just don't restart the VM yet. */
Signature · 1 line
2.7.4
PATCH 4/12 net: Add a network device specific self-announcement ability
In reply to Vladislav YasevichSome network devices have a capability to do self annoucements (ex: virtio-new). Add infrustrcture that would allow devices to expose this ability.
--- include/net/net.h | 2 ++ migration/savevm.c | 6 ++++++ 2 files changed, 8 insertions(+)
include/net/net.h +2 -0
@@ -64,6 +64,7 @@ typedef int (SetVnetLE)(NetClientState *, bool);typedef int (SetVnetBE )(NetClientState *,bool );typedef struct SocketReadState SocketReadState ;typedef void (SocketReadStateFinalize )(SocketReadState *rs); +typedef void (NetAnnounce )(NetClientState *); typedef struct NetClientInfo { NetClientDriver type;
@@ -84,6 +85,7 @@ typedef struct NetClientInfo {SetVnetHdrLen *set_vnet_hdr_len;SetVnetLE *set_vnet_le;SetVnetBE *set_vnet_be; +NetAnnounce *announce; } NetClientInfo;struct NetClientState {
migration/savevm.c +6 -0
@@ -207,9 +207,15 @@ static void qemu_announce_self_iter(NICState *nic, void *opaque)int len;trace_qemu_announce_self_iter (qemu_ether_ntoa (&nic->conf->macaddr)); + len =announce_self_create (buf, nic->conf->macaddr.a);qemu_send_packet_raw (qemu_get_queue (nic), buf, len); + +/* if the NIC provides it's own announcement support, use it as well */ +if (nic->ncs->info->announce) { + nic->ncs->info->announce (nic->ncs); + } }static void qemu_announce_self_once (void *opaque)
Signature · 1 line
2.7.4
PATCH 5/12 virtio-net: Allow qemu_announce_self to trigger virtio announcements
In reply to Vladislav YasevichExpose the virtio-net self annoucement capability and allow qemu_announce_self() to call it.
--- hw/net/virtio-net.c | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-)
hw/net/virtio-net.c +29 -3
@@ -111,14 +111,38 @@ static bool virtio_net_started(VirtIONet *n, uint8_t status) (n->status &VIRTIO_NET_S_LINK_UP ) && vdev->vm_running; } +static void __virtio_net_announce (VirtIONet *net) +{ +VirtIODevice *vdev =VIRTIO_DEVICE (net); + + net->status |=VIRTIO_NET_S_ANNOUNCE ; +virtio_notify_config (vdev); +} +static void virtio_net_announce_timer (void *opaque) {VirtIONet *n = opaque; -VirtIODevice *vdev =VIRTIO_DEVICE (n); n->announce_timer->round--; - n->status |=VIRTIO_NET_S_ANNOUNCE ; -virtio_notify_config (vdev); +__virtio_net_announce (n); +} + +static void virtio_net_announce (NetClientState *nc) +{ +VirtIONet *n =qemu_get_nic_opaque (nc); +VirtIODevice *vdev =VIRTIO_DEVICE (n); + +/* Make sure the virtio migration announcement timer isn't running +* If it is, let it trigger announcement so that we do not cause +* confusion. +*/ +if (n->announce_timer->round) +return ; + +if (virtio_vdev_has_feature (vdev,VIRTIO_NET_F_GUEST_ANNOUNCE ) && +virtio_vdev_has_feature (vdev,VIRTIO_NET_F_CTRL_VQ )) { +__virtio_net_announce (n); + } }static void virtio_net_vhost_status (VirtIONet *n,uint8_t status)
@@ -1834,6 +1858,7 @@ static NetClientInfo net_virtio_info = { .receive = virtio_net_receive, .link_status_changed = virtio_net_set_link_status, .query_rx_filter = virtio_net_query_rxfilter, + .announce = virtio_net_announce, };static bool virtio_net_guest_notifier_pending (VirtIODevice *vdev,int idx)
@@ -1941,6 +1966,7 @@ static void virtio_net_device_realize(DeviceState *dev, Error **errp) n->status =VIRTIO_NET_S_LINK_UP ; n->announce_timer =qemu_announce_timer_new (qemu_get_announce_params (),QEMU_CLOCK_VIRTUAL ); + n->announce_timer->round =0 ; n->announce_timer->tm =timer_new_ms (QEMU_CLOCK_VIRTUAL , virtio_net_announce_timer, n);
Signature · 1 line
2.7.4
PATCH 6/12 qmp: Expose qemu_announce_self as a qmp command
In reply to Vladislav YasevichAdd a qmp command that can trigger guest announcements.
Based on work of Germano Veit Michel <[email protected]>
--- migration/savevm.c | 14 ++++++++++++++ qapi-schema.json | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+)
migration/savevm.c +14 -0
@@ -265,6 +265,20 @@ void qemu_announce_self(AnnounceParameters *params)qemu_announce_self_once (timer); } +void qmp_announce_self (bool has_params,AnnounceParameters *params, +Error **errp) +{ +AnnounceParameters announce_params; + +memcpy (&announce_params,qemu_get_announce_params (), +sizeof (announce_params)); + +if (has_params) +qemu_set_announce_parameters (&announce_params, params); + +qemu_announce_self (&announce_params); +} +/***********************************************************/ /* savevm/loadvm support */
qapi-schema.json +19 -0
@@ -654,6 +654,25 @@ 'returns': 'AnnounceParameters' } ## +# @announce-self: +# +# Trigger generation of broadcast RARP frames to update network switches. +# This can be useful when network bonds fail-over the active slave. +# +# Arguments: None. +# +# Example: +# +# -> { "execute": "announce-self" +# "arguments": { "announce-rounds": 5 } } +# <- { "return": {} } +# +# Since: 2.10 +## +{ 'command': 'announce-self', + 'data' : {'*params': 'AnnounceParameters'} } + +## # @MigrationStats: # # Detailed migration status.
Signature · 1 line
2.7.4
PATCH 7/12 migration: Allow for a limited number of announce timers
In reply to Vladislav YasevichWe currently create a new announcement timer every time qemu_announce_self() is called. Since this is now a qmp
command, this can lead to abuse. Limit the number of
timers that are created. Give QMP interface and migration process 1 timer each. This way, QMP can't abuse the announce_self mechanism.
--- include/migration/vmstate.h | 1 + include/sysemu/sysemu.h | 9 ++++++++- migration/migration.c | 2 +- migration/savevm.c | 24 +++++++++++++++++++----- 4 files changed, 29 insertions(+), 7 deletions(-)
include/migration/vmstate.h +1 -0
@@ -1057,6 +1057,7 @@ void vmstate_register_ram_global(struct MemoryRegion *memory); typedef struct AnnounceTimer { QEMUTimer *tm; + struct AnnounceTimer **entry; AnnounceParameters params; QEMUClockType type; int round;
include/sysemu/sysemu.h +8 -1
@@ -78,14 +78,21 @@ void qemu_remove_machine_init_done_notifier(Notifier *notify);int save_vmstate (const char *name,Error **errp);int load_vmstate (const char *name,Error **errp); +typedef enum AnnounceType { +QEMU_ANNOUNCE_MIGRATION , +QEMU_ANNOUNCE_USER , +QEMU_ANNOUNCE__MAX , +}AnnounceType ; +AnnounceParameters *qemu_get_announce_params (void );void qemu_fill_announce_parameters (AnnounceParameters **to,AnnounceParameters *from); +bool qemu_validate_announce_parameters (AnnounceParameters *params,Error **errp);void qemu_set_announce_parameters (AnnounceParameters *announce_params,AnnounceParameters *params); -void qemu_announce_self (AnnounceParameters *params); +void qemu_announce_self (AnnounceParameters *params,AnnounceType type);/* Subcommands for QEMU_VM_COMMAND */ enum qemu_vm_cmd {
migration/migration.c +1 -1
@@ -345,7 +345,7 @@ static void process_incoming_migration_bh(void *opaque)* This must happen after all error conditions are dealt with and * we're sure the VM is going to be running on this host. */ -qemu_announce_self (qemu_get_announce_params ()); +qemu_announce_self (qemu_get_announce_params (),QEMU_ANNOUNCE_MIGRATION );/* If global state section was not received or we are in running state, we need to obey autostart. Any other state is set with
migration/savevm.c +19 -5
@@ -218,6 +218,8 @@ static void qemu_announce_self_iter(NICState *nic, void *opaque) } } +AnnounceTimer *announce_timers[QEMU_ANNOUNCE__MAX ]; +static void qemu_announce_self_once (void *opaque) {AnnounceTimer *timer = (AnnounceTimer *)opaque;
@@ -228,6 +230,7 @@ static void qemu_announce_self_once(void *opaque)timer_mod (timer->tm,qemu_clock_get_ms (timer->type) +self_announce_delay (timer)); }else { + *(timer->entry) =NULL ;timer_del (timer->tm);timer_free (timer->tm);g_free (timer);
@@ -256,12 +259,23 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params,return timer; } -void qemu_announce_self (AnnounceParameters *params) +void qemu_announce_self (AnnounceParameters *params,AnnounceType type) {AnnounceTimer *timer; - timer =qemu_announce_timer_create (params,QEMU_CLOCK_REALTIME , - qemu_announce_self_once); + timer = announce_timers[type]; +if (!timer) { + timer =qemu_announce_timer_create (params,QEMU_CLOCK_REALTIME , + qemu_announce_self_once); + announce_timers[type] = timer; + timer->entry = &announce_timers[type]; + }else { +/* For now, don't do anything. If we want to reset the timer, +* we'll need to add locking to each announce timer to prevent +* races between timeout handling and a reset. +*/ +return ; + }qemu_announce_self_once (timer); }
@@ -276,7 +290,7 @@ void qmp_announce_self(bool has_params, AnnounceParameters *params,if (has_params)qemu_set_announce_parameters (&announce_params, params); -qemu_announce_self (&announce_params); +qemu_announce_self (&announce_params,QEMU_ANNOUNCE_USER ); }/***********************************************************/
@@ -1750,7 +1764,7 @@ static void loadvm_postcopy_handle_run_bh(void *opaque)*/ cpu_synchronize_all_post_init (); -qemu_announce_self (qemu_get_announce_params ()); +qemu_announce_self (qemu_get_announce_params (),QEMU_ANNOUNCE_MIGRATION );/* Make sure all file formats flush their mutable metadata. * If we get an error here, just don't restart the VM yet. */
Signature · 1 line
2.7.4
PATCH 8/12 announce_timer: Add ability to reset an existing
In reply to Vladislav YasevichIt is now potentially possible to issue annouce-self command in a tight loop. Instead of doing nother, we can reset the timeout pararameters, especially since each instance may provide it's own values. This allows the user to extend or cut short currently runnig timer.
--- include/migration/vmstate.h | 1 + migration/savevm.c | 41 +++++++++++++++++++++++++++++++---------- 2 files changed, 32 insertions(+), 10 deletions(-)
include/migration/vmstate.h +1 -0
@@ -1057,6 +1057,7 @@ void vmstate_register_ram_global(struct MemoryRegion *memory); typedef struct AnnounceTimer { QEMUTimer *tm; + QemuMutex active_lock; struct AnnounceTimer **entry; AnnounceParameters params; QEMUClockType type;
migration/savevm.c +31 -10
74 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 10/12 hmp: Add hmp_announce_self
In reply to Vladislav YasevichAdd an HMP command to trigger self annocements.
--- hmp-commands.hx | 14 ++++++++++++++ hmp.c | 5 +++++ hmp.h | 1 + 3 files changed, 20 insertions(+)
hmp-commands.hx +14 -0
@@ -939,6 +939,20 @@ Set the parameter @var{parameter} for GARP/RARP announcements. ETEXI { + .name = "qemu_announce_self", + .args_type = "", + .params = "", + .help = "Trigger GARP/RARP announcements", + .cmd = hmp_announce_self, + }, + +STEXI +@item qemu_announce_self +@findex qemu_announce_self +Trigger GARP/RARP announcements. +ETEXI + + { .name = "migrate", .args_type = "detach:-d,blk:-b,inc:-i,uri:s", .params = "[-d] [-b] [-i] uri",
hmp.c +5 -0
@@ -1509,6 +1509,11 @@ void hmp_announce_set_parameter(Monitor *mon, const QDict *qdict) } } +void hmp_announce_self (Monitor *mon,const QDict *qdict) +{ +qmp_announce_self (false,NULL ,NULL ); +} +void hmp_migrate_cancel (Monitor *mon,const QDict *qdict) {qmp_migrate_cancel (NULL );
hmp.h +1 -0
@@ -147,5 +147,6 @@ void hmp_info_ramblock(Monitor *mon, const QDict *qdict);void hmp_hotpluggable_cpus (Monitor *mon,const QDict *qdict);void hmp_info_vm_generation_id (Monitor *mon,const QDict *qdict);void hmp_info_announce_parameters (Monitor *mon,const QDict *qdict); +void hmp_announce_self (Monitor *mon,const QDict *qdict);#endif
Signature · 1 line
2.7.4
PATCH 9/12 hmp: add announce paraters info/set
In reply to Vladislav YasevichAdd HMP command to control and read annoucment parameters.
--- hmp-commands-info.hx | 13 ++++++++ hmp-commands.hx | 14 +++++++++ hmp.c | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++ hmp.h | 4 +++ monitor.c | 18 +++++++++++ 5 files changed, 135 insertions(+)
hmp-commands-info.hx +13 -0
@@ -830,6 +830,19 @@ ETEXI }, STEXI +@item info announce_parameters +@findex announce_parameters +Show current RARP/GARP announce parameters. +ETEXI + { + .name = "announce_parameters", + .args_type = "", + .params = "", + .help = "show current RARP/GARP announce parameters", + .cmd = hmp_info_announce_parameters, + }, + +STEXI @end table ETEXI
hmp-commands.hx +14 -0
@@ -921,7 +921,21 @@ character code in hexadecimal. Character \ is printed \\. Bug: can screw up when the buffer contains invalid UTF-8 sequences, NUL characters, after the ring buffer lost data, and when reading stops because the size limit is reached. +ETEXI + { + .name = "announce_set_parameter", + .args_type = "parameter:s,value:s", + .params = "parameter value", + .help = "Set the parameter for GARP/RARP announcements", + .cmd = hmp_announce_set_parameter, + .command_completion = announce_set_parameter_completion, + }, + +STEXI +@item announce_set_parameter @var{parameter} @var{value} +@findex announce_set_parameter +Set the parameter @var{parameter} for GARP/RARP announcements. ETEXI {
hmp.c +86 -0
95 lines not on this page · raw message
hmp.h +4 -0
@@ -67,6 +67,7 @@ void hmp_loadvm(Monitor *mon, const QDict *qdict);void hmp_savevm (Monitor *mon,const QDict *qdict);void hmp_delvm (Monitor *mon,const QDict *qdict);void hmp_info_snapshots (Monitor *mon,const QDict *qdict); +void hmp_announce_set_parameter (Monitor *mon,const QDict *qdict);void hmp_migrate_cancel (Monitor *mon,const QDict *qdict);void hmp_migrate_incoming (Monitor *mon,const QDict *qdict);void hmp_migrate_set_downtime (Monitor *mon,const QDict *qdict);
@@ -130,6 +131,8 @@ void migrate_set_capability_completion(ReadLineState *rs, int nb_args, const char *str);void migrate_set_parameter_completion (ReadLineState *rs,int nb_args,const char *str); +void announce_set_parameter_completion (ReadLineState *rs,int nb_args, +const char *str);void host_net_add_completion (ReadLineState *rs,int nb_args,const char *str);void host_net_remove_completion (ReadLineState *rs,int nb_args,const char *str);
@@ -143,5 +146,6 @@ void hmp_info_dump(Monitor *mon, const QDict *qdict);void hmp_info_ramblock (Monitor *mon,const QDict *qdict);void hmp_hotpluggable_cpus (Monitor *mon,const QDict *qdict);void hmp_info_vm_generation_id (Monitor *mon,const QDict *qdict); +void hmp_info_announce_parameters (Monitor *mon,const QDict *qdict);#endif
monitor.c +18 -0
@@ -3563,6 +3563,24 @@ void migrate_set_parameter_completion(ReadLineState *rs, int nb_args, } } +void announce_set_parameter_completion (ReadLineState *rs,int nb_args, +const char *str) +{ +size_t len; + + len =strlen (str); +readline_set_completion_index (rs, len); +if (nb_args ==2 ) { +int i; +for (i =0 ; i <ANNOUNCE_PARAMETER__MAX ; i++) { +const char *name = AnnounceParameter_lookup[i]; +if (!strncmp (str, name, len)) { +readline_add_completion (rs, name); + } + } + } +} +void host_net_add_completion (ReadLineState *rs,int nb_args,const char *str) {int i;
Signature · 1 line
2.7.4
PATCH 11/12 tests/test-hmp: Add announce parameter tests
In reply to Vladislav YasevichAdd 2 new commands for announce parameters to the test.
--- tests/test-hmp.c | 2 ++ 1 file changed, 2 insertions(+)
tests/test-hmp.c +2 -0
@@ -65,6 +65,8 @@ static const char *hmp_cmds[] = {"sum 0 512" ,"x /8i 0x100" ,"xp /16x 0" , +"info announce_parameters" , +"announce_set_parameter rounds 10" , NULL };
Signature · 1 line
2.7.4
PATCH 12/12 tests: Add a test for qemu self announcments
In reply to Vladislav YasevichWe now expose qemu_announce_self through QMP and HMP. Add a test with some very basic packet validation (make sure we get a RARP).
--- tests/Makefile.include | 2 ++ tests/test-announce-self.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 tests/test-announce-self.c
tests/Makefile.include +2 -0
@@ -140,6 +140,8 @@ check-qtest-generic-y = tests/qmp-test$(EXESUF) gcov-files-generic-y = monitor.c qapi/qmp-dispatch.c check-qtest-generic-y += tests/device-introspect-test$(EXESUF) gcov-files-generic-y = qdev-monitor.c qmp.c +check-qtest-generic-y += tests/test-announce-self$(EXESUF) +gcov-files-generic-y = migration/savevm.c gcov-files-ipack-y += hw/ipack/ipack.c check-qtest-ipack-y += tests/ipoctal232-test$(EXESUF)
tests/test-announce-self.c new file +78 -0
78 lines not on this page · raw message
Signature · 1 line
2.7.4
This series failed build test on s390x host. Please find the details below.
Hi,
This series failed build test on s390x host. Please find the details below.
Type: series
Subject: [Qemu-devel] [PATCH 00/12] self-announce updates
Message-id: [email protected]
=== TEST SCRIPT BEGIN ===
#!/bin/bash
# Testing script will be invoked under the git checkout with # HEAD pointing to a commit that has the patches applied on top of "base"
# branch set -e echo "=== ENV ===" env echo "=== PACKAGES ===" rpm -qa echo "=== TEST BEGIN ===" CC=$HOME/bin/cc INSTALL=$PWD/install BUILD=$PWD/build echo -n "Using CC: " realpath $CC mkdir -p $BUILD $INSTALL SRC=$PWD cd $BUILD $SRC/configure --cc=$CC --prefix=$INSTALL make -j4 # XXX: we need reliable clean up # make check -j4 V=1 make install === TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
* [new tag] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'
3f42430 tests: Add a test for qemu self announcments
dbfc50a tests/test-hmp: Add announce parameter tests
913d3ab hmp: Add hmp_announce_self
a668d43 hmp: add announce paraters info/set
9e8f35b announce_timer: Add ability to reset an existing
0c23820 migration: Allow for a limited number of announce timers 1c59722 qmp: Expose qemu_announce_self as a qmp command
6662e88 virtio-net: Allow qemu_announce_self to trigger virtio announcements 220cde3 net: Add a network device specific self-announcement ability 10b866e migration: Switch to using announcement timer
b7e78e9 migration: Introduce announcement timer
df9e8b3 migration: Introduce announce parameters
=== OUTPUT BEGIN ===
=== ENV ===
XDG_SESSION_ID=65511
SHELL=/bin/sh
USER=fam
PATCHEW=/home/fam/patchew/patchew-cli -s http://patchew.org --nodebug PATH=/usr/bin:/bin PWD=/var/tmp/patchew-tester-tmp-zy6kocel/src LANG=en_US.UTF-8
HOME=/home/fam
SHLVL=2
LOGNAME=fam DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1012/bus XDG_RUNTIME_DIR=/run/user/1012
_=/usr/bin/env
=== PACKAGES ===
gpg-pubkey-873529b8-54e386ff
xz-libs-5.2.2-2.fc24.s390x
libxshmfence-1.2-3.fc24.s390x
giflib-4.1.6-15.fc24.s390x
trousers-lib-0.3.13-6.fc24.s390x ncurses-base-6.0-6.20160709.fc25.noarch gmp-6.1.1-1.fc25.s390x
libidn-1.33-1.fc25.s390x
slang-2.3.0-7.fc25.s390x
libsemanage-2.5-8.fc25.s390x
pkgconfig-0.29.1-1.fc25.s390x
alsa-lib-1.1.1-2.fc25.s390x yum-metadata-parser-1.1.4-17.fc25.s390x python3-slip-dbus-0.6.4-4.fc25.noarch python2-cssselect-0.9.2-1.fc25.noarch python-fedora-0.8.0-2.fc25.noarch createrepo_c-libs-0.10.0-6.fc25.s390x initscripts-9.69-1.fc25.s390x
wget-1.18-2.fc25.s390x
dhcp-client-4.3.5-1.fc25.s390x
parted-3.2-21.fc25.s390x
flex-2.6.0-3.fc25.s390x
colord-libs-1.3.4-1.fc25.s390x python-osbs-client-0.33-3.fc25.noarch perl-Pod-Simple-3.35-1.fc25.noarch python2-simplejson-3.10.0-1.fc25.s390x brltty-5.4-2.fc25.s390x
librados2-10.2.4-2.fc25.s390x
tcp_wrappers-7.6-83.fc25.s390x libcephfs_jni1-10.2.4-2.fc25.s390x nettle-devel-3.3-1.fc25.s390x bzip2-devel-1.0.6-21.fc25.s390x
libuuid-2.28.2-2.fc25.s390x
pango-1.40.4-1.fc25.s390x
python3-dnf-1.1.10-6.fc25.noarch cryptsetup-libs-1.7.4-1.fc25.s390x texlive-kpathsea-doc-svn41139-33.fc25.1.noarch netpbm-10.77.00-3.fc25.s390x
openssh-7.4p1-4.fc25.s390x texlive-kpathsea-bin-svn40473-33.20160520.fc25.1.s390x texlive-graphics-svn41015-33.fc25.1.noarch texlive-dvipdfmx-def-svn40328-33.fc25.1.noarch texlive-mfware-svn40768-33.fc25.1.noarch texlive-texlive-scripts-svn41433-33.fc25.1.noarch texlive-euro-svn22191.1.1-33.fc25.1.noarch texlive-etex-svn37057.0-33.fc25.1.noarch texlive-iftex-svn29654.0.2-33.fc25.1.noarch texlive-palatino-svn31835.0-33.fc25.1.noarch texlive-texlive-docindex-svn41430-33.fc25.1.noarch texlive-xunicode-svn30466.0.981-33.fc25.1.noarch texlive-koma-script-svn41508-33.fc25.1.noarch texlive-pst-grad-svn15878.1.06-33.fc25.1.noarch texlive-pst-blur-svn15878.2.0-33.fc25.1.noarch texlive-jknapltx-svn19440.0-33.fc25.1.noarch netpbm-progs-10.77.00-3.fc25.s390x
texinfo-6.1-4.fc25.s390x
openssl-devel-1.0.2k-1.fc25.s390x python2-sssdconfig-1.15.2-1.fc25.noarch gdk-pixbuf2-2.36.6-1.fc25.s390x mesa-libEGL-13.0.4-3.fc25.s390x
pcre-cpp-8.40-6.fc25.s390x
pcre-utf16-8.40-6.fc25.s390x glusterfs-extra-xlators-3.10.1-1.fc25.s390x mesa-libGL-devel-13.0.4-3.fc25.s390x nss-devel-3.29.3-1.1.fc25.s390x
libaio-0.3.110-6.fc24.s390x
libfontenc-1.1.3-3.fc24.s390x
lzo-2.08-8.fc24.s390x
isl-0.14-5.fc24.s390x
libXau-1.0.8-6.fc24.s390x
linux-atm-libs-2.5.1-14.fc24.s390x libXext-1.3.3-4.fc24.s390x
libXxf86vm-1.1.4-3.fc24.s390x
bison-3.0.4-4.fc24.s390x
perl-srpm-macros-1-20.fc25.noarch
gawk-4.1.3-8.fc25.s390x libwayland-client-1.12.0-1.fc25.s390x perl-Exporter-5.72-366.fc25.noarch perl-version-0.99.17-1.fc25.s390x fftw-libs-double-3.3.5-3.fc25.s390x libssh2-1.8.0-1.fc25.s390x ModemManager-glib-1.6.4-1.fc25.s390x newt-python3-0.52.19-2.fc25.s390x python-munch-2.0.4-3.fc25.noarch python-bugzilla-1.2.2-4.fc25.noarch libedit-3.1-16.20160618cvs.fc25.s390x python-pycurl-7.43.0-4.fc25.s390x createrepo_c-0.10.0-6.fc25.s390x device-mapper-multipath-libs-0.4.9-83.fc25.s390x yum-3.4.3-510.fc25.noarch
dhcp-common-4.3.5-1.fc25.noarch dracut-config-rescue-044-78.fc25.s390x teamd-1.26-1.fc25.s390x
mozjs17-17.0.0-16.fc25.s390x
libselinux-2.5-13.fc25.s390x
libgo-devel-6.3.1-1.fc25.s390x NetworkManager-libnm-1.4.4-3.fc25.s390x python2-pyparsing-2.1.10-1.fc25.noarch cairo-gobject-1.14.8-1.fc25.s390x
ethtool-4.8-1.fc25.s390x xorg-x11-proto-devel-7.7-20.fc25.noarch brlapi-0.6.5-2.fc25.s390x
librados-devel-10.2.4-2.fc25.s390x libXinerama-devel-1.1.3-6.fc24.s390x
quota-4.03-7.fc25.s390x
lua-posix-33.3.1-3.fc25.s390x usbredir-devel-0.7.1-2.fc24.s390x python-libs-2.7.13-1.fc25.s390x libX11-devel-1.6.4-4.fc25.s390x python-devel-2.7.13-1.fc25.s390x
libepoxy-1.4.1-1.fc25.s390x freetype-devel-2.6.5-3.fc25.s390x python3-dnf-plugins-core-0.1.21-5.fc25.noarch perl-macros-5.24.1-385.fc25.s390x texlive-pdftex-doc-svn41149-33.fc25.1.noarch mariadb-config-10.1.21-3.fc25.s390x openssh-clients-7.4p1-4.fc25.s390x iptables-1.6.0-3.fc25.s390x texlive-texlive.infra-svn41280-33.fc25.1.noarch texlive-graphics-cfg-svn40269-33.fc25.1.noarch texlive-bibtex-svn40768-33.fc25.1.noarch texlive-mfware-bin-svn40473-33.20160520.fc25.1.s390x texlive-texlive-scripts-bin-svn29741.0-33.20160520.fc25.1.noarch texlive-sauerj-svn15878.0-33.fc25.1.noarch texlive-enctex-svn34957.0-33.fc25.1.noarch texlive-ifetex-svn24853.1.2-33.fc25.1.noarch texlive-ntgclass-svn15878.2.1a-33.fc25.1.noarch texlive-tex-gyre-math-svn41264-33.fc25.1.noarch texlive-bera-svn20031.0-33.fc25.1.noarch texlive-ms-svn29849.0-33.fc25.1.noarch texlive-pst-fill-svn15878.1.01-33.fc25.1.noarch texlive-ctable-svn38672-33.fc25.1.noarch texlive-extsizes-svn17263.1.4a-33.fc25.1.noarch texlive-collection-latexrecommended-svn35765.0-33.20160520.fc25.1.noarch perl-Filter-1.57-1.fc25.s390x krb5-workstation-1.14.4-7.fc25.s390x python2-rpm-macros-3-12.fc25.noarch audit-libs-2.7.4-1.fc25.s390x libglvnd-egl-0.2.999-14.20170308git8e6e102.fc25.s390x libglvnd-opengl-0.2.999-14.20170308git8e6e102.fc25.s390x pcre-devel-8.40-6.fc25.s390x
gdbm-1.13-1.fc25.s390x mesa-libGLES-devel-13.0.4-3.fc25.s390x java-1.8.0-openjdk-1.8.0.121-10.b14.fc25.s390x gpg-pubkey-efe550f5-5220ba41
gpg-pubkey-81b46521-55b3ca9a
filesystem-3.2-37.fc24.s390x
libffi-3.1-9.fc24.s390x
keyutils-libs-1.5.9-8.fc24.s390x libnfnetlink-1.0.1-8.fc24.s390x libtheora-1.1.1-14.fc24.s390x xml-common-0.6.3-44.fc24.noarch
autoconf-2.69-22.fc24.noarch
libXt-1.1.5-3.fc24.s390x
kbd-legacy-2.0.3-3.fc24.noarch ghostscript-fonts-5.50-35.fc24.noarch libXevie-1.0.3-11.fc24.s390x
libcap-2.25-2.fc25.s390x
mpfr-3.1.5-1.fc25.s390x
perl-Carp-1.40-365.fc25.noarch
libmnl-1.0.4-1.fc25.s390x perl-Unicode-EastAsianWidth-1.33-8.fc25.noarch libwayland-cursor-1.12.0-1.fc25.s390x python-krbV-1.0.90-12.fc25.s390x python2-urllib3-1.15.1-3.fc25.noarch fipscheck-1.4.1-11.fc25.s390x
libndp-1.6-1.fc25.s390x
gnupg2-2.1.13-2.fc25.s390x
libXfixes-5.0.3-1.fc25.s390x adwaita-icon-theme-3.22.0-1.fc25.noarch dconf-0.26.0-1.fc25.s390x ncurses-devel-6.0-6.20160709.fc25.s390x dejagnu-1.6-1.fc25.noarch
libstdc++-devel-6.3.1-1.fc25.s390x python-beautifulsoup4-4.5.3-1.fc25.noarch device-mapper-1.02.136-3.fc25.s390x subversion-1.9.5-1.fc25.s390x libtool-ltdl-2.4.6-13.fc25.s390x libevent-2.0.22-1.fc25.s390x
atk-devel-2.22.0-1.fc25.s390x
libev-4.24-1.fc25.s390x xorg-x11-fonts-Type1-7.5-16.fc24.noarch libtasn1-devel-4.10-1.fc25.s390x vte291-devel-0.46.1-1.fc25.s390x brlapi-devel-0.6.5-2.fc25.s390x pulseaudio-libs-10.0-2.fc25.s390x libnl3-cli-3.2.29-2.fc25.s390x perl-libs-5.24.1-385.fc25.s390x
glib2-2.50.3-1.fc25.s390x python3-firewall-0.4.4.4-1.fc25.noarch python2-rpm-4.13.0.1-1.fc25.s390x
gnutls-3.5.10-1.fc25.s390x
pango-devel-1.40.4-1.fc25.s390x
dnf-1.1.10-6.fc25.noarch texlive-metafont-bin-svn40987-33.20160520.fc25.1.s390x texlive-xkeyval-svn35741.2.7a-33.fc25.1.noarch texlive-euler-svn17261.2.5-33.fc25.1.noarch texlive-mptopdf-svn41282-33.fc25.1.noarch texlive-wasy-svn35831.0-33.fc25.1.noarch texlive-avantgar-svn31835.0-33.fc25.1.noarch texlive-eurosym-svn17265.1.4_subrfix-33.fc25.1.noarch texlive-knuth-lib-svn35820.0-33.fc25.1.noarch texlive-parallel-svn15878.0-33.fc25.1.noarch texlive-texlive-msg-translations-svn41431-33.fc25.1.noarch texlive-latex-svn40218-33.fc25.1.noarch texlive-lualatex-math-svn40621-33.fc25.1.noarch texlive-auto-pst-pdf-svn23723.0.6-33.fc25.1.noarch texlive-powerdot-svn38984-33.fc25.1.noarch texlive-wasysym-svn15878.2.0-33.fc25.1.noarch ImageMagick-libs-6.9.3.0-6.fc25.s390x geoclue2-2.4.5-1.fc25.s390x perl-IO-Socket-IP-0.39-1.fc25.noarch gdb-7.12.1-47.fc25.s390x
python2-pyasn1-0.2.3-1.fc25.noarch libglvnd-0.2.999-14.20170308git8e6e102.fc25.s390x libglvnd-gles-0.2.999-14.20170308git8e6e102.fc25.s390x gdk-pixbuf2-devel-2.36.6-1.fc25.s390x libidn2-2.0.0-1.fc25.s390x system-python-libs-3.5.3-4.fc25.s390x GeoIP-1.6.10-1.fc25.s390x at-spi2-core-devel-2.22.1-1.fc25.s390x gpg-pubkey-34ec9cba-54e38751
gpg-pubkey-030d5aed-55b577f0
basesystem-11-2.fc24.noarch
libmpc-1.0.2-5.fc24.s390x
libunistring-0.9.4-3.fc24.s390x libmodman-2.0.1-12.fc24.s390x
lsscsi-0.28-3.fc24.s390x
kbd-misc-2.0.3-3.fc24.noarch rpmconf-base-1.0.18-2.fc25.noarch
libxml2-2.9.3-4.fc25.s390x
kmod-23-1.fc25.s390x
newt-0.52.19-2.fc25.s390x perl-Text-Unidecode-1.27-3.fc25.noarch plymouth-core-libs-0.9.3-0.6.20160620git0e65b86c.fc25.s390x which-2.21-1.fc25.s390x
python3-slip-0.6.4-4.fc25.noarch python3-systemd-232-1.fc25.s390x python-lockfile-0.11.0-4.fc25.noarch python2-requests-2.10.0-4.fc25.noarch libarchive-3.2.2-1.fc25.s390x
libnghttp2-1.13.0-2.fc25.s390x python-urlgrabber-3.10.1-9.fc25.noarch iputils-20161105-1.fc25.s390x
rest-0.8.0-1.fc25.s390x adwaita-cursor-theme-3.22.0-1.fc25.noarch authconfig-6.2.10-14.fc25.s390x expat-devel-2.2.0-1.fc25.s390x
automake-1.15-7.fc25.noarch shared-mime-info-1.8-1.fc25.s390x
pigz-2.3.4-1.fc25.s390x device-mapper-libs-1.02.136-3.fc25.s390x dnsmasq-2.76-2.fc25.s390x fedora-packager-0.6.0.1-1.fc25.noarch gcc-c++-6.3.1-1.fc25.s390x
libwebp-0.5.2-1.fc25.s390x
boost-system-1.60.0-10.fc25.s390x libasyncns-0.8-10.fc24.s390x
libXau-devel-1.0.8-6.fc24.s390x libverto-libev-0.2.6-6.fc24.s390x python3-html5lib-0.999-9.fc25.noarch ttmkfdir-3.0.9-48.fc24.s390x pulseaudio-libs-glib2-10.0-2.fc25.s390x wpa_supplicant-2.6-1.fc25.s390x texlive-lib-2016-33.20160520.fc25.s390x libXi-devel-1.7.9-1.fc25.s390x python3-distro-1.0.3-1.fc25.noarch rpm-plugin-systemd-inhibit-4.13.0.1-1.fc25.s390x gnutls-c++-3.5.10-1.fc25.s390x texlive-texlive-common-doc-svn40682-33.fc25.1.noarch packagedb-cli-2.14.1-1.fc25.noarch rpcbind-0.2.4-5.fc25.s390x texlive-metafont-svn40793-33.fc25.1.noarch texlive-tools-svn40934-33.fc25.1.noarch texlive-enumitem-svn24146.3.5.2-33.fc25.1.noarch texlive-mptopdf-bin-svn18674.0-33.20160520.fc25.1.noarch texlive-underscore-svn18261.0-33.fc25.1.noarch texlive-anysize-svn15878.0-33.fc25.1.noarch texlive-euenc-svn19795.0.1h-33.fc25.1.noarch texlive-kastrup-svn15878.0-33.fc25.1.noarch texlive-paralist-svn39247-33.fc25.1.noarch texlive-texlive-en-svn41185-33.fc25.1.noarch texlive-tipa-svn29349.1.3-33.fc25.1.noarch texlive-currfile-svn40725-33.fc25.1.noarch texlive-pst-node-svn40743-33.fc25.1.noarch texlive-pst-slpe-svn24391.1.31-33.fc25.1.noarch texlive-typehtml-svn17134.0-33.fc25.1.noarch SDL2-devel-2.0.5-3.fc25.s390x perl-Module-CoreList-5.20170320-1.fc25.noarch libcroco-0.6.11-3.fc25.s390x publicsuffix-list-dafsa-20170206-1.fc25.noarch pcre-8.40-6.fc25.s390x
cups-libs-2.2.0-8.fc25.s390x gtk-update-icon-cache-3.22.11-1.fc25.s390x libcurl-7.51.0-6.fc25.s390x
python3-libs-3.5.3-4.fc25.s390x bluez-libs-devel-5.44-1.fc25.s390x kernel-4.10.8-200.fc25.s390x fontpackages-filesystem-1.44-17.fc24.noarch groff-base-1.22.3-8.fc24.s390x
ilmbase-2.2.0-5.fc24.s390x
OpenEXR-libs-2.2.0-5.fc24.s390x
hesiod-3.2.1-6.fc24.s390x
sysfsutils-2.1.0-19.fc24.s390x ocaml-srpm-macros-2-4.fc24.noarch
mailx-12.5-19.fc24.s390x ncurses-libs-6.0-6.20160709.fc25.s390x ipset-libs-6.29-1.fc25.s390x
gmp-devel-6.1.1-1.fc25.s390x
python-pip-8.1.2-2.fc25.noarch
harfbuzz-1.3.2-1.fc25.s390x python2-iniparse-0.4-20.fc25.noarch python3-iniparse-0.4-20.fc25.noarch python3-kickstart-2.32-1.fc25.noarch perl-Net-SSLeay-1.78-1.fc25.s390x
drpm-0.3.0-3.fc25.s390x
glib-networking-2.50.0-1.fc25.s390x webkitgtk3-2.4.11-3.fc25.s390x
libXaw-1.0.13-4.fc25.s390x xorg-x11-font-utils-7.5-32.fc25.s390x hardlink-1.1-1.fc25.s390x
libcom_err-1.43.3-1.fc25.s390x python2-dateutil-2.6.0-1.fc25.noarch libXpm-3.5.12-1.fc25.s390x
python2-smmap-2.0.1-1.fc25.noarch poppler-data-0.4.7-6.fc25.noarch nspr-devel-4.13.1-1.fc25.s390x
librbd1-10.2.4-2.fc25.s390x
libsndfile-1.0.27-1.fc25.s390x perl-Digest-MD5-2.55-2.fc25.s390x wayland-protocols-devel-1.7-1.fc25.noarch libacl-devel-2.2.52-11.fc24.s390x texi2html-5.0-4.fc24.noarch
libxkbcommon-0.7.1-1.fc25.s390x
freetype-2.6.5-3.fc25.s390x libuuid-devel-2.28.2-2.fc25.s390x coreutils-common-8.25-16.fc25.s390x gdb-headless-7.12.1-47.fc25.s390x libcacard-2.5.3-1.fc25.s390x perl-threads-shared-1.55-1.fc25.s390x python2-rpkg-1.49-2.fc25.noarch libwmf-lite-0.2.8.4-50.fc25.s390x unbound-libs-1.6.0-6.fc25.s390x texlive-tetex-svn41059-33.fc25.1.noarch texlive-thumbpdf-svn34621.3.16-33.fc25.1.noarch texlive-carlisle-svn18258.0-33.fc25.1.noarch texlive-makeindex-bin-svn40473-33.20160520.fc25.1.s390x texlive-pdftex-svn41149-33.fc25.1.noarch texlive-csquotes-svn39538-33.fc25.1.noarch texlive-courier-svn35058.0-33.fc25.1.noarch texlive-helvetic-svn31835.0-33.fc25.1.noarch texlive-mfnfss-svn19410.0-33.fc25.1.noarch texlive-sepnum-svn20186.2.0-33.fc25.1.noarch texlive-utopia-svn15878.0-33.fc25.1.noarch texlive-luatexbase-svn38550-33.fc25.1.noarch texlive-pst-3d-svn17257.1.10-33.fc25.1.noarch texlive-latex-bin-bin-svn14050.0-33.20160520.fc25.1.noarch texlive-l3experimental-svn41163-33.fc25.1.noarch bind99-libs-9.9.9-4.P6.fc25.s390x net-tools-2.0-0.40.20160329git.fc25.s390x perl-Pod-Perldoc-3.28-1.fc25.noarch openssl-1.0.2k-1.fc25.s390x
man-pages-4.06-4.fc25.noarch
libdrm-2.4.77-1.fc25.s390x
p11-kit-0.23.2-3.fc25.s390x glusterfs-cli-3.10.1-1.fc25.s390x git-core-2.9.3-3.fc25.s390x
python3-3.5.3-4.fc25.s390x
python3-magic-5.29-4.fc25.noarch p11-kit-trust-0.23.2-3.fc25.s390x gpg-pubkey-95a43f54-5284415a dejavu-fonts-common-2.35-3.fc24.noarch libSM-1.2.2-4.fc24.s390x
diffutils-3.3-13.fc24.s390x
libogg-1.3.2-5.fc24.s390x hunspell-en-US-0.20140811.1-5.fc24.noarch libdaemon-0.14-10.fc24.s390x
patch-2.7.5-3.fc24.s390x
libsysfs-2.1.0-19.fc24.s390x
procmail-3.22-39.fc24.s390x
libXdamage-1.1.4-8.fc24.s390x
libotf-0.9.13-7.fc24.s390x
urw-fonts-2.4-22.fc24.noarch crontabs-1.11-12.20150630git.fc24.noarch ppp-2.4.7-9.fc24.s390x
polkit-0.113-5.fc24.s390x
cyrus-sasl-2.1.26-26.2.fc24.s390x zlib-devel-1.2.8-10.fc24.s390x
time-1.7-49.fc24.s390x
gpg-pubkey-fdb19c98-56fd6333
fedora-release-25-1.noarch
libcap-ng-0.7.8-1.fc25.s390x
binutils-2.26.1-1.fc25.s390x
lcms2-2.8-2.fc25.s390x
libcomps-0.1.7-5.fc25.s390x
less-481-6.fc25.s390x
apr-1.5.2-4.fc25.s390x
perl-constant-1.33-367.fc25.noarch perl-Data-Dumper-2.161-1.fc25.s390x ipcalc-0.1.8-1.fc25.s390x
libteam-1.26-1.fc25.s390x
gmp-c++-6.1.1-1.fc25.s390x
fontconfig-2.12.1-1.fc25.s390x
enchant-1.6.0-14.fc25.s390x
pyliblzma-0.5.3-16.fc25.s390x libsepol-devel-2.5-10.fc25.s390x python3-ordered-set-2.0.0-4.fc25.noarch python3-rpmconf-1.0.18-2.fc25.noarch python-ipaddress-1.0.16-3.fc25.noarch python2-kerberos-1.2.5-1.fc25.s390x python2-pysocks-1.5.6-5.fc25.noarch fipscheck-lib-1.4.1-11.fc25.s390x libatomic_ops-7.4.4-1.fc25.s390x net-snmp-agent-libs-5.7.3-13.fc25.s390x dracut-044-78.fc25.s390x
python2-pygpgme-0.3-18.fc25.s390x libsoup-2.56.0-2.fc25.s390x
orc-0.4.26-1.fc25.s390x
yum-utils-1.1.31-511.fc25.noarch libXrender-0.9.10-1.fc25.s390x
libXrandr-1.5.1-1.fc25.s390x
go-srpm-macros-2-7.fc25.noarch gnupg2-smime-2.1.13-2.fc25.s390x guile-devel-2.0.13-1.fc25.s390x uboot-tools-2016.09.01-2.fc25.s390x pykickstart-2.32-1.fc25.noarch python-bunch-1.0.1-9.fc25.noarch perl-generators-1.10-1.fc25.noarch perl-Mozilla-CA-20160104-3.fc25.noarch glibc-all-langpacks-2.24-4.fc25.s390x bzip2-libs-1.0.6-21.fc25.s390x
libpng-1.6.27-1.fc25.s390x desktop-file-utils-0.23-2.fc25.s390x python2-cccolutils-1.4-1.fc25.s390x python2-lxml-3.7.2-1.fc25.s390x redhat-rpm-config-45-1.fc25.noarch elfutils-libs-0.168-1.fc25.s390x device-mapper-event-libs-1.02.136-3.fc25.s390x lvm2-libs-2.02.167-3.fc25.s390x
elfutils-0.168-1.fc25.s390x python2-gitdb-2.0.0-1.fc25.noarch gcc-gfortran-6.3.1-1.fc25.s390x libselinux-python-2.5-13.fc25.s390x openjpeg2-2.1.2-3.fc25.s390x
js-jquery-2.2.4-1.fc25.noarch boost-thread-1.60.0-10.fc25.s390x
json-c-0.12-7.fc24.s390x
librbd-devel-10.2.4-2.fc25.s390x libXcursor-devel-1.1.14-6.fc24.s390x python3-beautifulsoup4-4.5.3-1.fc25.noarch latex2html-2012-7.fc24.noarch lksctp-tools-1.0.16-5.fc24.s390x
vte291-0.46.1-1.fc25.s390x
libfdt-1.4.2-1.fc25.s390x
libXft-devel-2.3.2-4.fc24.s390x libattr-devel-2.4.47-16.fc24.s390x libiscsi-devel-1.15.0-2.fc24.s390x gettext-0.19.8.1-3.fc25.s390x libjpeg-turbo-devel-1.5.1-0.fc25.s390x libX11-1.6.4-4.fc25.s390x pulseaudio-libs-devel-10.0-2.fc25.s390x ccache-3.3.3-1.fc25.s390x
systemd-libs-231-14.fc25.s390x nss-softokn-freebl-3.29.3-1.0.fc25.s390x libepoxy-devel-1.4.1-1.fc25.s390x krb5-libs-1.14.4-7.fc25.s390x
libmount-2.28.2-2.fc25.s390x python3-decorator-4.0.11-1.fc25.noarch rpm-plugin-selinux-4.13.0.1-1.fc25.s390x perl-threads-2.15-1.fc25.s390x tzdata-java-2017b-1.fc25.noarch python-srpm-macros-3-12.fc25.noarch libsmartcols-2.28.2-2.fc25.s390x kernel-core-4.10.5-200.fc25.s390x kernel-modules-4.10.5-200.fc25.s390x texlive-kpathsea-svn41139-33.fc25.1.noarch texlive-amsmath-svn41561-33.fc25.1.noarch texlive-thumbpdf-bin-svn6898.0-33.20160520.fc25.1.noarch texlive-psnfss-svn33946.9.2a-33.fc25.1.noarch texlive-subfig-svn15878.1.3-33.fc25.1.noarch texlive-fancybox-svn18304.1.4-33.fc25.1.noarch texlive-lua-alt-getopt-svn29349.0.7.0-33.fc25.1.noarch texlive-natbib-svn20668.8.31b-33.fc25.1.noarch texlive-pdftex-bin-svn40987-33.20160520.fc25.1.s390x texlive-xdvi-svn40768-33.fc25.1.noarch texlive-crop-svn15878.1.5-33.fc25.1.noarch texlive-babel-english-svn30264.3.3p-33.fc25.1.noarch texlive-cmextra-svn32831.0-33.fc25.1.noarch texlive-fancyhdr-svn15878.3.1-33.fc25.1.noarch texlive-luatex-svn40963-33.fc25.1.noarch texlive-knuth-local-svn38627-33.fc25.1.noarch texlive-mflogo-font-svn36898.1.002-33.fc25.1.noarch texlive-parskip-svn19963.2.0-33.fc25.1.noarch texlive-section-svn20180.0-33.fc25.1.noarch texlive-textcase-svn15878.0-33.fc25.1.noarch texlive-updmap-map-svn41159-33.fc25.1.noarch texlive-attachfile-svn38830-33.fc25.1.noarch nss-3.29.3-1.1.fc25.s390x glusterfs-client-xlators-3.10.1-1.fc25.s390x libglvnd-glx-0.2.999-14.20170308git8e6e102.fc25.s390x libtiff-4.0.7-4.fc25.s390x
dbus-devel-1.11.12-1.fc25.s390x java-1.8.0-openjdk-headless-1.8.0.121-10.b14.fc25.s390x pcre2-utf16-10.23-5.fc25.s390x git-core-doc-2.9.3-3.fc25.s390x
iproute-4.10.0-1.fc25.s390x
nfs-utils-2.1.1-3.rc1.fc25.s390x libglvnd-core-devel-0.2.999-14.20170308git8e6e102.fc25.s390x python-magic-5.29-4.fc25.noarch pcre2-devel-10.23-5.fc25.s390x p11-kit-devel-0.23.2-3.fc25.s390x texlive-luaotfload-svn40902-33.fc25.1.noarch texlive-unicode-math-svn38462-33.fc25.1.noarch texlive-fancyvrb-svn18492.2.8-33.fc25.1.noarch texlive-pst-pdf-bin-svn7838.0-33.20160520.fc25.1.noarch texlive-amscls-svn36804.0-33.fc25.1.noarch texlive-ltxmisc-svn21927.0-33.fc25.1.noarch texlive-breqn-svn38099.0.98d-33.fc25.1.noarch texlive-xetex-def-svn40327-33.fc25.1.noarch openssh-server-7.4p1-4.fc25.s390x sendmail-8.15.2-8.fc25.s390x python-firewall-0.4.4.4-1.fc25.noarch python3-sssdconfig-1.15.2-1.fc25.noarch tzdata-2017b-1.fc25.noarch
hunspell-1.4.1-2.fc25.s390x
gpg-pubkey-8e1431d5-53bcbac7
zlib-1.2.8-10.fc24.s390x
sed-4.2.2-15.fc24.s390x
psmisc-22.21-8.fc24.s390x
gpm-libs-1.20.7-9.fc24.s390x
zip-3.0-16.fc24.s390x
hostname-3.15-7.fc24.s390x
libyubikey-1.13-2.fc24.s390x sg3_utils-libs-1.41-3.fc24.s390x polkit-pkla-compat-0.1-7.fc24.s390x
passwd-0.79-8.fc24.s390x
trousers-0.3.13-6.fc24.s390x
grubby-8.40-3.fc24.s390x
rootfiles-8.1-19.fc24.noarch
nettle-3.3-1.fc25.s390x
jansson-2.9-1.fc25.s390x
libksba-1.3.5-1.fc25.s390x perl-Text-ParseWords-3.30-365.fc25.noarch perl-PathTools-3.63-366.fc25.s390x perl-File-Temp-0.23.04-365.fc25.noarch fuse-libs-2.9.7-1.fc25.s390x perl-Pod-Escapes-1.07-365.fc25.noarch perl-Term-ANSIColor-4.05-2.fc25.noarch perl-URI-1.71-5.fc25.noarch
libXfont-1.5.2-1.fc25.s390x
python-six-1.10.0-3.fc25.noarch
dbus-glib-0.108-1.fc25.s390x gobject-introspection-1.50.0-1.fc25.s390x libpwquality-1.3.0-6.fc25.s390x python-gobject-base-3.22.0-1.fc25.s390x python-html5lib-0.999-9.fc25.noarch python3-dbus-1.2.4-2.fc25.s390x python3-chardet-2.3.0-1.fc25.noarch python3-urllib3-1.15.1-3.fc25.noarch python-offtrac-0.1.0-7.fc25.noarch python2-cryptography-1.5.3-3.fc25.s390x python2-requests-kerberos-0.10.0-2.fc25.noarch libserf-1.3.9-1.fc25.s390x
libdatrie-0.2.9-3.fc25.s390x s390utils-base-1.36.0-1.fc25.s390x kpartx-0.4.9-83.fc25.s390x s390utils-cpuplugd-1.36.0-1.fc25.s390x rpmconf-1.0.18-2.fc25.noarch s390utils-osasnmpd-1.36.0-1.fc25.s390x python-dnf-plugins-extras-common-0.0.12-4.fc25.noarch fpc-srpm-macros-1.0-1.fc25.noarch
libuser-0.62-4.fc25.s390x
man-db-2.7.5-3.fc25.s390x
sqlite-3.14.2-1.fc25.s390x python-systemd-doc-232-1.fc25.s390x libdb-5.3.28-16.fc25.s390x
lz4-1.7.5-1.fc25.s390x
tar-1.29-3.fc25.s390x
emacs-common-25.1-3.fc25.s390x
unzip-6.0-31.fc25.s390x
bodhi-client-0.9.12.2-6.fc25.noarch glibc-headers-2.24-4.fc25.s390x
cairo-1.14.8-1.fc25.s390x ca-certificates-2017.2.11-1.0.fc25.noarch NetworkManager-glib-1.4.4-3.fc25.s390x gcc-go-6.3.1-1.fc25.s390x
cracklib-dicts-2.9.6-4.fc25.s390x libselinux-python3-2.5-13.fc25.s390x python2-enchant-1.6.8-1.fc25.noarch boost-iostreams-1.60.0-10.fc25.s390x userspace-rcu-0.9.2-2.fc25.s390x libXext-devel-1.3.3-4.fc24.s390x libXrandr-devel-1.5.1-1.fc25.s390x perl-XML-XPath-1.39-1.fc25.noarch python3-lxml-3.7.2-1.fc25.s390x vte-profile-0.46.1-1.fc25.s390x sqlite-devel-3.14.2-1.fc25.s390x libiscsi-1.15.0-2.fc24.s390x fontconfig-devel-2.12.1-1.fc25.s390x libfdt-devel-1.4.2-1.fc25.s390x ceph-devel-compat-10.2.4-2.fc25.s390x zlib-static-1.2.8-10.fc24.s390x
chrpath-0.16-3.fc24.s390x
python-2.7.13-1.fc25.s390x
kernel-core-4.9.5-200.fc25.s390x
info-6.1-4.fc25.s390x
iptables-libs-1.6.0-3.fc25.s390x bind-license-9.10.4-4.P6.fc25.noarch
lua-5.3.4-1.fc25.s390x
libfdisk-2.28.2-2.fc25.s390x dnf-plugins-core-0.1.21-5.fc25.noarch selinux-policy-3.13.1-225.11.fc25.noarch perl-Errno-1.25-385.fc25.s390x perl-Storable-2.56-368.fc25.s390x python2-decorator-4.0.11-1.fc25.noarch mariadb-common-10.1.21-3.fc25.s390x systemtap-client-3.1-2.fc25.s390x libnetfilter_conntrack-1.0.6-2.fc25.s390x texlive-texlive.infra-bin-svn40312-33.20160520.fc25.1.s390x texlive-ifluatex-svn41346-33.fc25.1.noarch texlive-fp-svn15878.0-33.fc25.1.noarch texlive-latex-fonts-svn28888.0-33.fc25.1.noarch texlive-bibtex-bin-svn40473-33.20160520.fc25.1.s390x texlive-glyphlist-svn28576.0-33.fc25.1.noarch texlive-marvosym-svn29349.2.2a-33.fc25.1.noarch texlive-tex-bin-svn40987-33.20160520.fc25.1.s390x texlive-texconfig-svn40768-33.fc25.1.noarch texlive-wasy2-ps-svn35830.0-33.fc25.1.noarch texlive-psfrag-svn15878.3.04-33.fc25.1.noarch texlive-charter-svn15878.0-33.fc25.1.noarch texlive-ec-svn25033.1.0-33.fc25.1.noarch texlive-lineno-svn21442.4.41-33.fc25.1.noarch texlive-hyphen-base-svn41138-33.fc25.1.noarch texlive-manfnt-font-svn35799.0-33.fc25.1.noarch texlive-ncntrsbk-svn31835.0-33.fc25.1.noarch texlive-pst-math-svn34786.0.63-33.fc25.1.noarch texlive-symbol-svn31835.0-33.fc25.1.noarch texlive-environ-svn33821.0.3-33.fc25.1.noarch texlive-algorithms-svn38085.0.1-33.fc25.1.noarch glusterfs-libs-3.10.1-1.fc25.s390x mesa-libwayland-egl-13.0.4-3.fc25.s390x glusterfs-api-3.10.1-1.fc25.s390x kernel-core-4.10.8-200.fc25.s390x mesa-libwayland-egl-devel-13.0.4-3.fc25.s390x nss-tools-3.29.3-1.1.fc25.s390x
pcre2-10.23-5.fc25.s390x
perl-Git-2.9.3-3.fc25.noarch
gssproxy-0.7.0-3.fc25.s390x glusterfs-server-3.10.1-1.fc25.s390x libglvnd-devel-0.2.999-14.20170308git8e6e102.fc25.s390x python3-hawkey-0.6.4-3.fc25.s390x vim-enhanced-8.0.514-1.fc25.s390x mesa-libgbm-devel-13.0.4-3.fc25.s390x texlive-ifplatform-svn21156.0.4-33.fc25.1.noarch texlive-eso-pic-svn37925.2.0g-33.fc25.1.noarch texlive-xcolor-svn41044-33.fc25.1.noarch texlive-pst-eps-svn15878.1.0-33.fc25.1.noarch texlive-pst-text-svn15878.1.00-33.fc25.1.noarch texlive-rotating-svn16832.2.16b-33.fc25.1.noarch texlive-pdfpages-svn40638-33.fc25.1.noarch texlive-cm-super-svn15878.0-33.fc25.1.noarch texlive-xetex-svn41438-33.fc25.1.noarch dnf-yum-1.1.10-6.fc25.noarch mariadb-libs-10.1.21-3.fc25.s390x
rpmlint-1.9-8.fc25.noarch systemtap-sdt-devel-3.1-2.fc25.s390x libseccomp-devel-2.3.2-1.fc25.s390x telnet-0.17-67.fc25.s390x
gpgme-1.8.0-10.fc25.s390x
apr-util-1.5.4-3.fc24.s390x
rsync-3.1.2-2.fc24.s390x
jbigkit-libs-2.1-5.fc24.s390x
pixman-0.34.0-2.fc24.s390x
dwz-0.12-2.fc24.s390x
expect-5.45-22.fc24.s390x
libsigsegv-2.10-10.fc24.s390x fakeroot-libs-1.20.2-4.fc24.s390x m17n-lib-1.7.0-5.fc24.s390x
libverto-0.2.6-6.fc24.s390x
libXmu-1.1.2-4.fc24.s390x
libXcursor-1.1.14-6.fc24.s390x python-kitchen-1.2.4-2.fc24.noarch polkit-libs-0.113-5.fc24.s390x
fakeroot-1.20.2-4.fc24.s390x
blktrace-1.1.0-3.fc24.s390x
usermode-1.111-8.fc24.s390x
kbd-2.0.3-3.fc24.s390x
libaio-devel-0.3.110-6.fc24.s390x web-assets-filesystem-5-4.fc24.noarch expat-2.2.0-1.fc25.s390x
libgpg-error-1.24-1.fc25.s390x
libgcrypt-1.6.6-1.fc25.s390x
findutils-4.6.0-8.fc25.s390x
libassuan-2.4.3-1.fc25.s390x
libusbx-1.0.21-1.fc25.s390x
libxslt-1.1.28-13.fc25.s390x
libmetalink-0.1.3-1.fc25.s390x perl-File-Path-2.12-365.fc25.noarch perl-MIME-Base64-3.15-365.fc25.s390x ncurses-6.0-6.20160709.fc25.s390x libwayland-server-1.12.0-1.fc25.s390x perl-Fedora-VSP-0.001-4.fc25.noarch perl-libintl-perl-1.26-1.fc25.s390x shadow-utils-4.2.1-11.fc25.s390x
atk-2.22.0-1.fc25.s390x
pam-1.3.0-1.fc25.s390x
harfbuzz-icu-1.3.2-1.fc25.s390x libsecret-0.18.5-2.fc25.s390x s390utils-iucvterm-1.36.0-1.fc25.s390x python3-requests-2.10.0-4.fc25.noarch pyusb-1.0.0-2.fc25.noarch
python-enum34-1.0.4-6.fc25.noarch pyOpenSSL-16.0.0-2.fc25.noarch
pyxattr-0.5.3-8.fc25.s390x
libbabeltrace-1.4.0-3.fc25.s390x
libthai-0.1.25-1.fc25.s390x
deltarpm-3.6-17.fc25.s390x s390utils-mon_statd-1.36.0-1.fc25.s390x device-mapper-multipath-0.4.9-83.fc25.s390x python3-pygpgme-0.3-18.fc25.s390x libreport-filesystem-2.8.0-1.fc25.s390x ghc-srpm-macros-1.4.2-4.fc25.noarch rpmdevtools-8.9-1.fc25.noarch python-dnf-plugins-extras-migrate-0.0.12-4.fc25.noarch perl-IO-Socket-SSL-2.038-1.fc25.noarch perl-File-ShareDir-1.102-7.fc25.noarch tcl-8.6.6-1.fc25.s390x
glibc-2.24-4.fc25.s390x
elfutils-libelf-0.168-1.fc25.s390x perl-Scalar-List-Utils-1.47-1.fc25.s390x bzip2-1.0.6-21.fc25.s390x
libss-1.43.3-1.fc25.s390x
libselinux-utils-2.5-13.fc25.s390x
koji-1.11.0-1.fc25.noarch python3-enchant-1.6.8-1.fc25.noarch python2-dockerfile-parse-0.0.5-7.fc25.noarch systemd-bootchart-231-2.fc25.s390x gcc-objc-6.3.1-1.fc25.s390x
e2fsprogs-1.43.3-1.fc25.s390x libstdc++-static-6.3.1-1.fc25.s390x libpng-devel-1.6.27-1.fc25.s390x perl-XML-Parser-2.44-5.fc25.s390x lttng-ust-2.8.1-2.fc25.s390x libXfixes-devel-5.0.3-1.fc25.s390x libXcomposite-devel-0.4.4-8.fc24.s390x quota-nls-4.03-7.fc25.noarch python3-javapackages-4.7.0-6.1.fc25.noarch libcephfs_jni-devel-10.2.4-2.fc25.s390x keyutils-libs-devel-1.5.9-8.fc24.s390x libicu-devel-57.1-4.fc25.s390x harfbuzz-devel-1.3.2-1.fc25.s390x libidn-devel-1.33-1.fc25.s390x
libnfs-1.9.8-2.fc24.s390x
libssh2-devel-1.8.0-1.fc25.s390x qemu-sanity-check-nodeps-1.1.5-5.fc24.s390x alsa-lib-devel-1.1.1-2.fc25.s390x
libnl3-3.2.29-2.fc25.s390x kernel-modules-4.9.5-200.fc25.s390x libpsl-0.17.0-1.fc25.s390x
lua-libs-5.3.4-1.fc25.s390x
libseccomp-2.3.2-1.fc25.s390x nss-softokn-freebl-devel-3.29.3-1.0.fc25.s390x copy-jdk-configs-2.2-2.fc25.noarch json-glib-1.2.6-1.fc25.s390x python2-dnf-1.1.10-6.fc25.noarch bind-libs-lite-9.10.4-4.P6.fc25.s390x perl-IO-1.36-385.fc25.s390x python2-GitPython-2.1.3-1.fc25.noarch linux-firmware-20170313-72.git695f2d6d.fc25.noarch systemd-container-231-14.fc25.s390x gnutls-dane-3.5.10-1.fc25.s390x texlive-tetex-bin-svn36770.0-33.20160520.fc25.1.noarch texlive-amsfonts-svn29208.3.04-33.fc25.1.noarch texlive-babel-svn40706-33.fc25.1.noarch texlive-colortbl-svn29803.v1.0a-33.fc25.1.noarch texlive-babelbib-svn25245.1.31-33.fc25.1.noarch texlive-footmisc-svn23330.5.5b-33.fc25.1.noarch texlive-makeindex-svn40768-33.fc25.1.noarch texlive-plain-svn40274-33.fc25.1.noarch texlive-texconfig-bin-svn29741.0-33.20160520.fc25.1.noarch texlive-zapfding-svn31835.0-33.fc25.1.noarch texlive-microtype-svn41127-33.fc25.1.noarch texlive-bookman-svn31835.0-33.fc25.1.noarch texlive-dvisvgm-def-svn41011-33.fc25.1.noarch texlive-finstrut-svn21719.0.5-33.fc25.1.noarch texlive-hyph-utf8-svn41189-33.fc25.1.noarch texlive-lualibs-svn40370-33.fc25.1.noarch glusterfs-3.10.1-1.fc25.s390x mesa-libglapi-13.0.4-3.fc25.s390x mesa-libgbm-13.0.4-3.fc25.s390x kernel-modules-4.10.8-200.fc25.s390x glusterfs-fuse-3.10.1-1.fc25.s390x openldap-2.4.44-10.fc25.s390x
pcre-utf32-8.40-6.fc25.s390x
git-2.9.3-3.fc25.s390x
python2-gluster-3.10.1-1.fc25.s390x glusterfs-devel-3.10.1-1.fc25.s390x mesa-libEGL-devel-13.0.4-3.fc25.s390x glusterfs-api-devel-3.10.1-1.fc25.s390x sudo-1.8.19p2-1.fc25.s390x
python2-hawkey-0.6.4-3.fc25.s390x texlive-mparhack-svn15878.1.4-33.fc25.1.noarch texlive-pspicture-svn15878.0-33.fc25.1.noarch texlive-soul-svn15878.2.4-33.fc25.1.noarch texlive-trimspaces-svn15878.1.1-33.fc25.1.noarch texlive-varwidth-svn24104.0.92-33.fc25.1.noarch texlive-geometry-svn19716.5.6-33.fc25.1.noarch texlive-memoir-svn41203-33.fc25.1.noarch texlive-pgf-svn40966-33.fc25.1.noarch texlive-pst-coil-svn37377.1.07-33.fc25.1.noarch texlive-pst-plot-svn41242-33.fc25.1.noarch texlive-latex-bin-svn41438-33.fc25.1.noarch texlive-ucs-svn35853.2.2-33.fc25.1.noarch texlive-ae-svn15878.1.4-33.fc25.1.noarch texlive-xetex-bin-svn41091-33.20160520.fc25.1.s390x fedora-upgrade-26.1-1.fc25.noarch
fedpkg-1.28-1.fc25.noarch perl-Thread-Queue-3.12-1.fc25.noarch gstreamer1-plugins-base-1.10.4-1.fc25.s390x screen-4.5.1-1.fc25.s390x
strace-4.16-1.fc25.s390x
fedora-repos-25-3.noarch
libacl-2.2.52-11.fc24.s390x cdparanoia-libs-10.2-21.fc24.s390x
ustr-1.0.4-21.fc24.s390x
libusb-0.1.5-7.fc24.s390x
readline-devel-6.3-8.fc24.s390x
chkconfig-1.8-1.fc25.s390x
avahi-libs-0.6.32-4.fc25.s390x perl-Unicode-Normalize-1.25-365.fc25.s390x perl-libnet-3.10-1.fc25.noarch perl-podlators-4.09-1.fc25.noarch graphite2-1.3.6-1.fc25.s390x
dbus-python-1.2.4-2.fc25.s390x libgnome-keyring-3.12.0-7.fc25.s390x python-backports-1.0-8.fc25.s390x python-pycparser-2.14-7.fc25.noarch plymouth-scripts-0.9.3-0.6.20160620git0e65b86c.fc25.s390x cronie-1.5.1-2.fc25.s390x python2-librepo-1.7.18-3.fc25.s390x libXv-1.0.11-1.fc25.s390x python2-ndg_httpsclient-0.4.0-4.fc25.noarch btrfs-progs-4.6.1-1.fc25.s390x
libgcc-6.3.1-1.fc25.s390x
libgomp-6.3.1-1.fc25.s390x
perl-Encode-2.88-5.fc25.s390x
cracklib-2.9.6-4.fc25.s390x
libobjc-6.3.1-1.fc25.s390x
gcc-6.3.1-1.fc25.s390x python3-dnf-plugin-system-upgrade-0.7.1-4.fc25.noarch NetworkManager-1.4.4-3.fc25.s390x glibc-static-2.24-4.fc25.s390x boost-random-1.60.0-10.fc25.s390x libref_array-0.1.5-29.fc25.s390x libXrender-devel-0.9.10-1.fc25.s390x javapackages-tools-4.7.0-6.1.fc25.noarch keyutils-1.5.9-8.fc24.s390x libcom_err-devel-1.43.3-1.fc25.s390x graphite2-devel-1.3.6-1.fc25.s390x lzo-minilzo-2.08-8.fc24.s390x libusbx-devel-1.0.21-1.fc25.s390x virglrenderer-devel-0.5.0-1.20160411git61846f92f.fc25.s390x acpica-tools-20160831-1.fc25.s390x
grep-2.27-2.fc25.s390x
dnf-conf-1.1.10-6.fc25.noarch crypto-policies-20160921-4.gitf3018dd.fc25.noarch rpm-build-libs-4.13.0.1-1.fc25.s390x libnfsidmap-0.27-1.fc25.s390x systemtap-devel-3.1-2.fc25.s390x
systemd-231-14.fc25.s390x
SDL2-2.0.5-3.fc25.s390x texlive-etex-pkg-svn39355-33.fc25.1.noarch texlive-multido-svn18302.1.42-33.fc25.1.noarch texlive-gsftopk-svn40768-33.fc25.1.noarch texlive-pst-ovl-svn40873-33.fc25.1.noarch texlive-ltabptch-svn17533.1.74d-33.fc25.1.noarch texlive-cite-svn36428.5.5-33.fc25.1.noarch texlive-fpl-svn15878.1.002-33.fc25.1.noarch texlive-mathpazo-svn15878.1.003-33.fc25.1.noarch texlive-rcs-svn15878.0-33.fc25.1.noarch texlive-type1cm-svn21820.0-33.fc25.1.noarch texlive-l3kernel-svn41246-33.fc25.1.noarch texlive-hyperref-svn41396-33.fc25.1.noarch texlive-pst-tree-svn24142.1.12-33.fc25.1.noarch texlive-sansmathaccent-svn30187.0-33.fc25.1.noarch texlive-dvipdfmx-bin-svn40273-33.20160520.fc25.1.s390x texlive-zapfchan-svn31835.0-33.fc25.1.noarch firewalld-0.4.4.4-1.fc25.noarch glib2-static-2.50.3-1.fc25.s390x libmicrohttpd-0.9.52-3.fc25.s390x perl-open-1.10-385.fc25.noarch bash-completion-2.5-1.fc25.noarch libsolv-0.6.26-3.fc25.s390x ghostscript-core-9.20-7.fc25.s390x nss-util-devel-3.29.3-1.1.fc25.s390x kernel-headers-4.10.8-200.fc25.s390x system-python-3.5.3-4.fc25.s390x iproute-tc-4.10.0-1.fc25.s390x
audit-2.7.4-1.fc25.s390x
gpg-pubkey-a29cb19c-53bcbba6
m4-1.4.17-9.fc24.s390x
liblockfile-1.09-4.fc24.s390x
sg3_utils-1.41-3.fc24.s390x
libXinerama-1.1.3-6.fc24.s390x
libXft-2.3.2-4.fc24.s390x tcp_wrappers-libs-7.6-83.fc25.s390x perl-Text-Tabs+Wrap-2013.0523-365.fc25.noarch perl-Error-0.17024-7.fc25.noarch perl-Term-Cap-1.17-365.fc25.noarch perl-Pod-Usage-1.69-1.fc25.noarch device-mapper-persistent-data-0.6.3-1.fc25.s390x net-snmp-libs-5.7.3-13.fc25.s390x
libgusb-0.2.9-1.fc25.s390x
python3-six-1.10.0-3.fc25.noarch python3-pysocks-1.5.6-5.fc25.noarch python-chardet-2.3.0-1.fc25.noarch python2-cffi-1.7.0-2.fc25.s390x
gc-devel-7.4.4-1.fc25.s390x plymouth-0.9.3-0.6.20160620git0e65b86c.fc25.s390x ebtables-2.0.10-21.fc25.s390x python3-librepo-1.7.18-3.fc25.s390x net-snmp-5.7.3-13.fc25.s390x
at-spi2-atk-2.22.0-1.fc25.s390x avahi-autoipd-0.6.32-4.fc25.s390x libcrypt-nss-2.24-4.fc25.s390x
libgo-6.3.1-1.fc25.s390x
cpp-6.3.1-1.fc25.s390x
glibc-devel-2.24-4.fc25.s390x
emacs-25.1-3.fc25.s390x
pyparsing-2.1.10-1.fc25.noarch
libproxy-0.4.14-1.fc25.s390x python3-pyparsing-2.1.10-1.fc25.noarch libcollection-0.7.0-29.fc25.s390x libcephfs-devel-10.2.4-2.fc25.s390x libXdamage-devel-1.1.4-8.fc24.s390x libverto-devel-0.2.6-6.fc24.s390x
snappy-1.1.3-2.fc24.s390x cairo-gobject-devel-1.14.8-1.fc25.s390x cyrus-sasl-devel-2.1.26-26.2.fc24.s390x kernel-devel-4.9.5-200.fc25.s390x
libXi-1.7.9-1.fc25.s390x distribution-gpg-keys-1.11-1.fc25.noarch texlive-base-2016-33.20160520.fc25.noarch gstreamer1-1.10.4-1.fc25.s390x python3-rpm-4.13.0.1-1.fc25.s390x systemtap-runtime-3.1-2.fc25.s390x perl-SelfLoader-1.23-385.fc25.noarch bind99-license-9.9.9-4.P6.fc25.noarch texlive-booktabs-svn40846-33.fc25.1.noarch texlive-lm-svn28119.2.004-33.fc25.1.noarch texlive-gsftopk-bin-svn40473-33.20160520.fc25.1.s390x texlive-tex-svn40793-33.fc25.1.noarch texlive-fancyref-svn15878.0.9c-33.fc25.1.noarch texlive-chngcntr-svn17157.1.0a-33.fc25.1.noarch texlive-fix2col-svn38770-33.fc25.1.noarch texlive-marginnote-svn41382-33.fc25.1.noarch texlive-pxfonts-svn15878.0-33.fc25.1.noarch texlive-txfonts-svn15878.0-33.fc25.1.noarch texlive-l3packages-svn41246-33.fc25.1.noarch texlive-oberdiek-svn41346-33.fc25.1.noarch texlive-pst-tools-svn34067.0.05-33.fc25.1.noarch texlive-tex-gyre-svn18651.2.004-33.fc25.1.noarch texlive-dvipdfmx-svn41149-33.fc25.1.noarch texlive-collection-fontsrecommended-svn35830.0-33.20160520.fc25.1.noarch gnutls-devel-3.5.10-1.fc25.s390x libcacard-devel-2.5.3-1.fc25.s390x selinux-policy-targeted-3.13.1-225.11.fc25.noarch ykpers-1.18.0-2.fc25.s390x
python2-idna-2.5-1.fc25.noarch dbus-libs-1.11.12-1.fc25.s390x ghostscript-x11-9.20-7.fc25.s390x vim-minimal-8.0.514-1.fc25.s390x libdrm-devel-2.4.77-1.fc25.s390x
file-libs-5.29-4.fc25.s390x
gtk3-devel-3.22.11-1.fc25.s390x policycoreutils-2.5-20.fc25.s390x python-async-0.6.1-9.fc22.s390x dejavu-sans-mono-fonts-2.35-3.fc24.noarch popt-1.16-7.fc24.s390x
cyrus-sasl-lib-2.1.26-26.2.fc24.s390x
xz-5.2.2-2.fc24.s390x
libpipeline-1.4.1-2.fc24.s390x
pinentry-0.9.7-2.fc24.s390x
pth-2.0.7-27.fc24.s390x
libsepol-2.5-10.fc25.s390x
sqlite-libs-3.14.2-1.fc25.s390x
libxcb-1.12-1.fc25.s390x
libicu-57.1-4.fc25.s390x perl-Getopt-Long-2.49.1-1.fc25.noarch avahi-glib-0.6.32-4.fc25.s390x python3-pip-8.1.2-2.fc25.noarch python3-libcomps-0.1.7-5.fc25.s390x python-slip-0.6.4-4.fc25.noarch python2-libcomps-0.1.7-5.fc25.s390x
gc-7.4.4-1.fc25.s390x
s390utils-cmsfs-1.36.0-1.fc25.s390x newt-python-0.52.19-2.fc25.s390x valgrind-3.12.0-1.fc25.s390x emacs-filesystem-25.1-3.fc25.noarch libdb-utils-5.3.28-16.fc25.s390x qt5-srpm-macros-5.7.1-1.fc25.noarch elfutils-default-yama-scope-0.168-1.fc25.noarch device-mapper-event-1.02.136-3.fc25.s390x perl-Class-Inspector-1.31-2.fc25.noarch poppler-0.45.0-2.fc25.s390x libbasicobjects-0.1.1-29.fc25.s390x libradosstriper1-10.2.4-2.fc25.s390x libXxf86vm-devel-1.1.4-3.fc24.s390x
gsm-1.0.16-1.fc25.s390x
zziplib-0.13.62-7.fc24.s390x
libpaper-1.1.24-12.fc24.s390x libini_config-1.3.0-29.fc25.s390x snappy-devel-1.1.3-2.fc24.s390x libcap-ng-devel-0.7.8-1.fc25.s390x libxkbcommon-devel-0.7.1-1.fc25.s390x kernel-4.9.5-200.fc25.s390x nss-softokn-3.29.3-1.0.fc25.s390x openssl-libs-1.0.2k-1.fc25.s390x libkadm5-1.14.4-7.fc25.s390x
rpm-libs-4.13.0.1-1.fc25.s390x
perl-5.24.1-385.fc25.s390x
util-linux-2.28.2-2.fc25.s390x
libICE-1.0.9-8.fc25.s390x texlive-etoolbox-svn38031.2.2a-33.fc25.1.noarch texlive-dvips-svn41149-33.fc25.1.noarch texlive-latexconfig-svn40274-33.fc25.1.noarch texlive-tex-ini-files-svn40533-33.fc25.1.noarch texlive-qstest-svn15878.0-33.fc25.1.noarch texlive-cmap-svn41168-33.fc25.1.noarch texlive-luatex-bin-svn41091-33.20160520.fc25.1.s390x texlive-mflogo-svn38628-33.fc25.1.noarch texlive-sansmath-svn17997.1.1-33.fc25.1.noarch texlive-unicode-data-svn39808-33.fc25.1.noarch texlive-luaotfload-bin-svn34647.0-33.20160520.fc25.1.noarch texlive-listings-svn37534.1.6-33.fc25.1.noarch texlive-pstricks-svn41321-33.fc25.1.noarch texlive-metalogo-svn18611.0.12-33.fc25.1.noarch texlive-collection-latex-svn41011-33.20160520.fc25.1.noarch kernel-4.10.5-200.fc25.s390x python2-dnf-plugins-core-0.1.21-5.fc25.noarch xkeyboard-config-2.20-2.fc25.noarch nss-util-3.29.3-1.1.fc25.s390x
dbus-1.11.12-1.fc25.s390x
ghostscript-9.20-7.fc25.s390x vim-filesystem-8.0.514-1.fc25.s390x jasper-libs-1.900.13-3.fc25.s390x
file-5.29-4.fc25.s390x
curl-7.51.0-6.fc25.s390x perl-Test-Harness-3.39-1.fc25.noarch libattr-2.4.47-16.fc24.s390x
acl-2.2.52-11.fc24.s390x
libvisual-0.4.0-20.fc24.s390x
libpcap-1.7.4-2.fc24.s390x
libutempter-1.1.6-8.fc24.s390x
libgudev-230-3.fc24.s390x
popt-devel-1.16-7.fc24.s390x
make-4.1-5.fc24.s390x
hicolor-icon-theme-0.15-3.fc24.noarch setup-2.10.4-1.fc25.noarch
bash-4.3.43-4.fc25.s390x
nspr-4.13.1-1.fc25.s390x
libjpeg-turbo-1.5.1-0.fc25.s390x perl-Socket-2.024-1.fc25.s390x perl-HTTP-Tiny-0.070-1.fc25.noarch
ipset-6.29-1.fc25.s390x python2-setuptools-25.1.1-1.fc25.noarch gsettings-desktop-schemas-3.22.0-1.fc25.s390x python3-setuptools-25.1.1-1.fc25.noarch python-slip-dbus-0.6.4-4.fc25.noarch python2-ply-3.8-2.fc25.noarch
dtc-1.4.2-1.fc25.s390x
guile-2.0.13-1.fc25.s390x
cronie-anacron-1.5.1-2.fc25.s390x
libXtst-1.2.3-1.fc25.s390x
iso-codes-3.70-1.fc25.noarch
s390utils-1.36.0-1.fc25.s390x python-backports-ssl_match_hostname-3.5.0.1-3.fc25.noarch fedora-cert-0.6.0.1-1.fc25.noarch libstdc++-6.3.1-1.fc25.s390x subversion-libs-1.9.5-1.fc25.s390x libgfortran-6.3.1-1.fc25.s390x
libtasn1-4.10-1.fc25.s390x dnf-plugin-system-upgrade-0.7.1-4.fc25.noarch lvm2-2.02.167-3.fc25.s390x libselinux-devel-2.5-13.fc25.s390x perl-Time-Local-1.250-1.fc25.noarch libtirpc-1.0.1-3.rc3.fc25.s390x libradosstriper-devel-10.2.4-2.fc25.s390x flac-libs-1.3.2-1.fc25.s390x perl-Digest-1.17-366.fc25.noarch
teckit-2.5.1-15.fc24.s390x
libpath_utils-0.2.1-29.fc25.s390x
attr-2.4.47-16.fc24.s390x
usbredir-0.7.1-2.fc24.s390x
cairo-devel-1.14.8-1.fc25.s390x
lzo-devel-2.08-8.fc24.s390x
libcap-devel-2.25-2.fc25.s390x
opus-1.1.3-2.fc25.s390x firewalld-filesystem-0.4.4.4-1.fc25.noarch coreutils-8.25-16.fc25.s390x
krb5-devel-1.14.4-7.fc25.s390x
rpm-4.13.0.1-1.fc25.s390x
kernel-devel-4.10.5-200.fc25.s390x systemd-pam-231-14.fc25.s390x
libbsd-0.8.3-1.fc25.s390x texlive-url-svn32528.3.4-33.fc25.1.noarch texlive-dvips-bin-svn40987-33.20160520.fc25.1.s390x texlive-index-svn24099.4.1beta-33.fc25.1.noarch texlive-setspace-svn24881.6.7a-33.fc25.1.noarch texlive-mathtools-svn38833-33.fc25.1.noarch texlive-cm-svn32865.0-33.fc25.1.noarch texlive-graphics-def-svn41879-33.fc25.1.noarch texlive-mdwtools-svn15878.1.05.4-33.fc25.1.noarch texlive-rsfs-svn15878.0-33.fc25.1.noarch texlive-ucharcat-svn38907-33.fc25.1.noarch texlive-fontspec-svn41262-33.fc25.1.noarch texlive-showexpl-svn32737.v0.3l-33.fc25.1.noarch texlive-pstricks-add-svn40744-33.fc25.1.noarch texlive-beamer-svn36461.3.36-33.fc25.1.noarch texlive-collection-basic-svn41149-33.20160520.fc25.1.noarch mock-1.3.4-1.fc25.noarch
rpm-build-4.13.0.1-1.fc25.s390x xemacs-filesystem-21.5.34-20.20170124hgf412e9f093d4.fc25.noarch nss-sysinit-3.29.3-1.1.fc25.s390x
hawkey-0.6.4-3.fc25.s390x
mesa-libGLES-13.0.4-3.fc25.s390x vim-common-8.0.514-1.fc25.s390x gdk-pixbuf2-modules-2.36.6-1.fc25.s390x bluez-libs-5.44-1.fc25.s390x libcurl-devel-7.51.0-6.fc25.s390x
mc-4.8.19-1.fc25.s390x
gpg-pubkey-a0a7badb-52844296
readline-6.3-8.fc24.s390x
cpio-2.12-3.fc24.s390x
qrencode-libs-3.4.2-6.fc24.s390x libXcomposite-0.4.4-8.fc24.s390x procps-ng-3.3.10-11.fc24.s390x
GConf2-3.2.6-16.fc24.s390x
xz-devel-5.2.2-2.fc24.s390x
fedora-logos-22.0.0-3.fc24.s390x gpg-pubkey-e372e838-56fd7943
kmod-libs-23-1.fc25.s390x
perl-parent-0.236-1.fc25.noarch perl-TermReadKey-2.37-1.fc25.s390x dhcp-libs-4.3.5-1.fc25.s390x ncurses-c++-libs-6.0-6.20160709.fc25.s390x gzip-1.8-1.fc25.s390x python3-gobject-base-3.22.0-1.fc25.s390x python2-yubico-1.3.2-3.fc25.noarch s390utils-ziomon-1.36.0-1.fc25.s390x librepo-1.7.18-3.fc25.s390x
librsvg2-2.40.16-2.fc25.s390x gnat-srpm-macros-4-1.fc25.noarch python-decoratortools-1.8-12.fc25.noarch m17n-db-1.7.0-7.fc25.noarch
glibc-common-2.24-4.fc25.s390x e2fsprogs-libs-1.43.3-1.fc25.s390x libvorbis-1.3.5-1.fc25.s390x gcc-gdb-plugin-6.3.1-1.fc25.s390x perl-Time-HiRes-1.9741-1.fc25.s390x
npth-1.3-1.fc25.s390x
libcephfs1-10.2.4-2.fc25.s390x wayland-devel-1.12.0-1.fc25.s390x libxcb-devel-1.12-1.fc25.s390x perl-encoding-2.19-5.fc25.s390x python3-cssselect-0.9.2-1.fc25.noarch gettext-libs-0.19.8.1-3.fc25.s390x at-spi2-atk-devel-2.22.0-1.fc25.s390x virglrenderer-0.5.0-1.20160411git61846f92f.fc25.s390x pixman-devel-0.34.0-2.fc24.s390x libnfs-devel-1.9.8-2.fc24.s390x libX11-common-1.6.4-4.fc25.noarch nss-softokn-devel-3.29.3-1.0.fc25.s390x libblkid-2.28.2-2.fc25.s390x bind-libs-9.10.4-4.P6.fc25.s390x glib2-devel-2.50.3-1.fc25.s390x systemd-udev-231-14.fc25.s390x texlive-ifxetex-svn19685.0.5-33.fc25.1.noarch texlive-caption-svn41409-33.fc25.1.noarch texlive-float-svn15878.1.3d-33.fc25.1.noarch texlive-pdftex-def-svn22653.0.06d-33.fc25.1.noarch texlive-xdvi-bin-svn40750-33.20160520.fc25.1.s390x texlive-beton-svn15878.0-33.fc25.1.noarch texlive-filecontents-svn24250.1.3-33.fc25.1.noarch texlive-lm-math-svn36915.1.959-33.fc25.1.noarch texlive-pslatex-svn16416.0-33.fc25.1.noarch texlive-times-svn35058.0-33.fc25.1.noarch texlive-breakurl-svn29901.1.40-33.fc25.1.noarch texlive-filehook-svn24280.0.5d-33.fc25.1.noarch texlive-pst-pdf-svn31660.1.1v-33.fc25.1.noarch texlive-seminar-svn34011.1.62-33.fc25.1.noarch texlive-xetexconfig-svn41133-33.fc25.1.noarch systemtap-3.1-2.fc25.s390x python-rpm-macros-3-12.fc25.noarch rpm-devel-4.13.0.1-1.fc25.s390x
nss-pem-1.0.3-3.fc25.s390x
mesa-libGL-13.0.4-3.fc25.s390x at-spi2-core-2.22.1-1.fc25.s390x pcre2-utf32-10.23-5.fc25.s390x
gtk3-3.22.11-1.fc25.s390x GeoIP-GeoLite-data-2017.04-1.fc25.noarch pcre-static-8.40-6.fc25.s390x kernel-devel-4.10.8-200.fc25.s390x
=== TEST BEGIN ===
Using CC: /home/fam/bin/cc
Install prefix /var/tmp/patchew-tester-tmp-zy6kocel/src/install BIOS directory /var/tmp/patchew-tester-tmp-zy6kocel/src/install/share/qemu binary directory /var/tmp/patchew-tester-tmp-zy6kocel/src/install/bin
library directory /var/tmp/patchew-tester-tmp-zy6kocel/src/install/lib module directory /var/tmp/patchew-tester-tmp-zy6kocel/src/install/lib/qemu libexec directory /var/tmp/patchew-tester-tmp-zy6kocel/src/install/libexec include directory /var/tmp/patchew-tester-tmp-zy6kocel/src/install/include config directory /var/tmp/patchew-tester-tmp-zy6kocel/src/install/etc
local state directory /var/tmp/patchew-tester-tmp-zy6kocel/src/install/var
Manual directory /var/tmp/patchew-tester-tmp-zy6kocel/src/install/share/man ELF interp prefix /usr/gnemul/qemu-%M
Source path /var/tmp/patchew-tester-tmp-zy6kocel/src C compiler /home/fam/bin/cc Host C compiler cc C++ compiler c++ Objective-C compiler /home/fam/bin/cc ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g QEMU_CFLAGS -I/usr/include/pixman-1 -Werror -DHAS_LIBSSH2_SFTP_FSYNC -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_GNU_SOURCE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/cacard -I/usr/include/nss3 -I/usr/include/nspr4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libusb-1.0 LDFLAGS -Wl,--warn-common -m64 -g make make install install python python -B smbd /usr/sbin/smbd module support no host CPU s390x host big endian yes target list aarch64-softmmu alpha-softmmu arm-softmmu cris-softmmu i386-softmmu lm32-softmmu m68k-softmmu microblazeel-softmmu microblaze-softmmu mips64el-softmmu mips64-softmmu mipsel-softmmu mips-softmmu moxie-softmmu nios2-softmmu or1k-softmmu ppc64-softmmu ppcemb-softmmu ppc-softmmu s390x-softmmu sh4eb-softmmu sh4-softmmu sparc64-softmmu sparc-softmmu tricore-softmmu unicore32-softmmu x86_64-softmmu xtensaeb-softmmu xtensa-softmmu aarch64-linux-user alpha-linux-user armeb-linux-user arm-linux-user cris-linux-user hppa-linux-user i386-linux-user m68k-linux-user microblazeel-linux-user microblaze-linux-user mips64el-linux-user mips64-linux-user mipsel-linux-user mips-linux-user mipsn32el-linux-user mipsn32-linux-user nios2-linux-user or1k-linux-user ppc64abi32-linux-user ppc64le-linux-user ppc64-linux-user ppc-linux-user s390x-linux-user sh4eb-linux-user sh4-linux-user sparc32plus-linux-user sparc64-linux-user sparc-linux-user tilegx-linux-user x86_64-linux-user tcg debug enabled no gprof enabled no sparse enabled no strip binaries yes profiler no static build no pixman system SDL support yes (2.0.5) GTK support yes (3.22.11) GTK GL support yes VTE support yes (0.46.1) TLS priority NORMAL GNUTLS support yes GNUTLS rnd yes libgcrypt no libgcrypt kdf no nettle yes (3.3) nettle kdf yes libtasn1 yes curses support yes virgl support yes curl support yes mingw32 support no Audio drivers oss Block whitelist (rw) Block whitelist (ro) VirtFS support yes VNC support yes VNC SASL support yes VNC JPEG support yes VNC PNG support yes xen support no brlapi support yes bluez support yes Documentation yes PIE no vde support no netmap support no Linux AIO support yes ATTR/XATTR support yes Install blobs yes KVM support yes HAX support no RDMA support no TCG interpreter no fdt support yes preadv support yes fdatasync yes madvise yes posix_madvise yes
libcap-ng support yes
vhost-net support yes
vhost-scsi support yes
vhost-vsock support yes
Trace backends log spice support no rbd support yes xfsctl support no smartcard support yes libusb yes usb net redir yes OpenGL support yes OpenGL dmabufs yes libiscsi support yes libnfs support yes
build guest agent yes
QGA VSS support no
QGA w32 disk info no
QGA MSI support no
seccomp support no
coroutine backend ucontext
coroutine pool yes
debug stack usage no
GlusterFS support yes
gcov gcov gcov enabled no TPM support yes libssh2 support yes TPM passthrough no QOM debugging yes Live block migration yes lzo support yes snappy support yes bzip2 support yes
NUMA host support no
tcmalloc support no
jemalloc support no
avx2 optimization no
replication support yes
VxHS block device no
GEN aarch64-softmmu/config-devices.mak.tmp
GEN cris-softmmu/config-devices.mak.tmp
GEN alpha-softmmu/config-devices.mak.tmp
GEN arm-softmmu/config-devices.mak.tmp
GEN cris-softmmu/config-devices.mak
GEN alpha-softmmu/config-devices.mak
GEN arm-softmmu/config-devices.mak
GEN i386-softmmu/config-devices.mak.tmp
GEN lm32-softmmu/config-devices.mak.tmp
GEN m68k-softmmu/config-devices.mak.tmp
GEN aarch64-softmmu/config-devices.mak
GEN m68k-softmmu/config-devices.mak
GEN microblazeel-softmmu/config-devices.mak.tmp
GEN lm32-softmmu/config-devices.mak
GEN mips64el-softmmu/config-devices.mak.tmp
GEN microblaze-softmmu/config-devices.mak.tmp
GEN i386-softmmu/config-devices.mak
GEN mips64-softmmu/config-devices.mak.tmp
GEN microblaze-softmmu/config-devices.mak
GEN microblazeel-softmmu/config-devices.mak
GEN mipsel-softmmu/config-devices.mak.tmp
GEN mips-softmmu/config-devices.mak.tmp
GEN mips64el-softmmu/config-devices.mak
GEN moxie-softmmu/config-devices.mak.tmp
GEN mips64-softmmu/config-devices.mak
GEN moxie-softmmu/config-devices.mak
GEN nios2-softmmu/config-devices.mak.tmp
GEN mips-softmmu/config-devices.mak
GEN mipsel-softmmu/config-devices.mak
GEN or1k-softmmu/config-devices.mak.tmp
GEN ppc64-softmmu/config-devices.mak.tmp
GEN ppcemb-softmmu/config-devices.mak.tmp
GEN nios2-softmmu/config-devices.mak
GEN or1k-softmmu/config-devices.mak
GEN ppc-softmmu/config-devices.mak.tmp
GEN s390x-softmmu/config-devices.mak.tmp
GEN ppcemb-softmmu/config-devices.mak
GEN sh4eb-softmmu/config-devices.mak.tmp
GEN ppc64-softmmu/config-devices.mak
GEN ppc-softmmu/config-devices.mak
GEN sh4-softmmu/config-devices.mak.tmp
GEN s390x-softmmu/config-devices.mak
GEN sparc64-softmmu/config-devices.mak.tmp
GEN sparc-softmmu/config-devices.mak.tmp
GEN sh4eb-softmmu/config-devices.mak
GEN tricore-softmmu/config-devices.mak.tmp
GEN sh4-softmmu/config-devices.mak
GEN sparc-softmmu/config-devices.mak
GEN unicore32-softmmu/config-devices.mak.tmp
GEN sparc64-softmmu/config-devices.mak
GEN tricore-softmmu/config-devices.mak
GEN x86_64-softmmu/config-devices.mak.tmp
GEN xtensaeb-softmmu/config-devices.mak.tmp
GEN xtensa-softmmu/config-devices.mak.tmp
GEN unicore32-softmmu/config-devices.mak
GEN xtensaeb-softmmu/config-devices.mak
GEN aarch64-linux-user/config-devices.mak.tmp
GEN alpha-linux-user/config-devices.mak.tmp
GEN xtensa-softmmu/config-devices.mak
GEN x86_64-softmmu/config-devices.mak
GEN arm-linux-user/config-devices.mak.tmp
GEN armeb-linux-user/config-devices.mak.tmp
GEN aarch64-linux-user/config-devices.mak
GEN cris-linux-user/config-devices.mak.tmp
GEN alpha-linux-user/config-devices.mak
GEN arm-linux-user/config-devices.mak
GEN i386-linux-user/config-devices.mak.tmp
GEN hppa-linux-user/config-devices.mak.tmp
GEN armeb-linux-user/config-devices.mak
GEN m68k-linux-user/config-devices.mak.tmp
GEN cris-linux-user/config-devices.mak
GEN hppa-linux-user/config-devices.mak
GEN i386-linux-user/config-devices.mak
GEN microblazeel-linux-user/config-devices.mak.tmp
GEN mips64el-linux-user/config-devices.mak.tmp
GEN microblaze-linux-user/config-devices.mak.tmp
GEN m68k-linux-user/config-devices.mak
GEN microblazeel-linux-user/config-devices.mak
GEN mips64-linux-user/config-devices.mak.tmp
GEN microblaze-linux-user/config-devices.mak
GEN mips64el-linux-user/config-devices.mak
GEN mipsel-linux-user/config-devices.mak.tmp
GEN mips-linux-user/config-devices.mak.tmp
GEN mipsn32el-linux-user/config-devices.mak.tmp
GEN mips-linux-user/config-devices.mak
GEN mips64-linux-user/config-devices.mak
GEN mipsel-linux-user/config-devices.mak
GEN mipsn32el-linux-user/config-devices.mak
GEN mipsn32-linux-user/config-devices.mak.tmp
GEN nios2-linux-user/config-devices.mak.tmp
GEN or1k-linux-user/config-devices.mak.tmp
GEN ppc64abi32-linux-user/config-devices.mak.tmp
GEN nios2-linux-user/config-devices.mak
GEN mipsn32-linux-user/config-devices.mak
GEN ppc64abi32-linux-user/config-devices.mak
GEN ppc64-linux-user/config-devices.mak.tmp
GEN or1k-linux-user/config-devices.mak
GEN ppc-linux-user/config-devices.mak.tmp
GEN ppc64le-linux-user/config-devices.mak.tmp
GEN s390x-linux-user/config-devices.mak.tmp
GEN ppc-linux-user/config-devices.mak
GEN sh4eb-linux-user/config-devices.mak.tmp
GEN s390x-linux-user/config-devices.mak
GEN ppc64-linux-user/config-devices.mak
GEN sparc32plus-linux-user/config-devices.mak.tmp
GEN sh4-linux-user/config-devices.mak.tmp
GEN ppc64le-linux-user/config-devices.mak
GEN sparc64-linux-user/config-devices.mak.tmp
GEN sh4eb-linux-user/config-devices.mak
GEN sparc32plus-linux-user/config-devices.mak
GEN tilegx-linux-user/config-devices.mak.tmp
GEN sparc-linux-user/config-devices.mak.tmp
GEN sh4-linux-user/config-devices.mak
GEN sparc64-linux-user/config-devices.mak
GEN x86_64-linux-user/config-devices.mak.tmp
GEN sparc-linux-user/config-devices.mak
GEN tilegx-linux-user/config-devices.mak
GEN config-host.h
GEN qemu-options.def
GEN x86_64-linux-user/config-devices.mak
GEN qmp-commands.h
GEN qapi-types.h
GEN qapi-visit.h
GEN qapi-event.h
GEN qmp-marshal.c
GEN qapi-types.c
GEN qapi-visit.c
GEN qapi-event.c
GEN qmp-introspect.h
GEN qmp-introspect.c
GEN trace/generated-tcg-tracers.h
GEN trace/generated-helpers.h
GEN trace/generated-helpers-wrappers.h
GEN trace/generated-helpers.c
GEN module_block.h
GEN tests/test-qapi-types.h
GEN tests/test-qapi-visit.h
GEN tests/test-qmp-commands.h
GEN tests/test-qapi-event.h
GEN tests/test-qmp-introspect.h
GEN trace-root.h
GEN util/trace.h
GEN crypto/trace.h
GEN io/trace.h
GEN migration/trace.h
GEN block/trace.h
GEN hw/block/trace.h
GEN backends/trace.h
GEN hw/block/dataplane/trace.h
GEN hw/net/trace.h
GEN hw/char/trace.h
GEN hw/intc/trace.h
GEN hw/virtio/trace.h
GEN hw/audio/trace.h
GEN hw/misc/trace.h
GEN hw/usb/trace.h
GEN hw/scsi/trace.h
GEN hw/nvram/trace.h
GEN hw/display/trace.h
GEN hw/input/trace.h
GEN hw/timer/trace.h
GEN hw/dma/trace.h
GEN hw/sparc/trace.h
GEN hw/sd/trace.h
GEN hw/isa/trace.h
GEN hw/mem/trace.h
GEN hw/i386/trace.h
GEN hw/i386/xen/trace.h
GEN hw/9pfs/trace.h
GEN hw/ppc/trace.h
GEN hw/pci/trace.h
GEN hw/s390x/trace.h
GEN hw/vfio/trace.h
GEN hw/acpi/trace.h
GEN hw/arm/trace.h
GEN hw/alpha/trace.h
GEN hw/xen/trace.h
GEN ui/trace.h
GEN audio/trace.h
GEN net/trace.h
GEN target/arm/trace.h
GEN target/i386/trace.h
GEN target/mips/trace.h
GEN target/sparc/trace.h
GEN target/s390x/trace.h
GEN linux-user/trace.h
GEN target/ppc/trace.h
GEN qom/trace.h
GEN qapi/trace.h
GEN trace-root.c
GEN util/trace.c
GEN io/trace.c
GEN crypto/trace.c
GEN migration/trace.c
GEN block/trace.c
GEN backends/trace.c
GEN hw/block/trace.c
GEN hw/block/dataplane/trace.c
GEN hw/char/trace.c
GEN hw/intc/trace.c
GEN hw/net/trace.c
GEN hw/virtio/trace.c
GEN hw/audio/trace.c
GEN hw/misc/trace.c
GEN hw/scsi/trace.c
GEN hw/usb/trace.c
GEN hw/nvram/trace.c
GEN hw/display/trace.c
GEN hw/input/trace.c
GEN hw/dma/trace.c
GEN hw/timer/trace.c
GEN hw/sparc/trace.c
GEN hw/isa/trace.c
GEN hw/sd/trace.c
GEN hw/mem/trace.c
GEN hw/i386/trace.c
GEN hw/i386/xen/trace.c
GEN hw/9pfs/trace.c
GEN hw/ppc/trace.c
GEN hw/pci/trace.c
GEN hw/s390x/trace.c
GEN hw/vfio/trace.c
GEN hw/acpi/trace.c
GEN hw/arm/trace.c
GEN hw/alpha/trace.c
GEN hw/xen/trace.c
GEN ui/trace.c
GEN audio/trace.c
GEN net/trace.c
GEN target/arm/trace.c
GEN target/i386/trace.c
GEN target/mips/trace.c
GEN target/sparc/trace.c
GEN target/s390x/trace.c
GEN target/ppc/trace.c
GEN qom/trace.c
GEN linux-user/trace.c
GEN qapi/trace.c
GEN config-all-devices.mak
GEN qemu-options.texi
CC tests/qemu-iotests/socket_scm_helper.o
GEN qemu-img-cmds.texi
GEN qemu-monitor.texi
GEN qemu-monitor-info.texi
GEN qemu-img.1
GEN qemu-nbd.8
GEN qemu-ga.8
GEN docs/version.texi
GEN docs/qemu-qmp-qapi.texi
GEN docs/qemu-ga-qapi.texi
GEN fsdev/virtfs-proxy-helper.1
GEN qga/qapi-generated/qga-qapi-types.h
GEN qga/qapi-generated/qga-qmp-commands.h
GEN qga/qapi-generated/qga-qapi-visit.h
GEN qga/qapi-generated/qga-qapi-types.c
GEN qga/qapi-generated/qga-qmp-marshal.c
GEN qga/qapi-generated/qga-qapi-visit.c
CC qmp-introspect.o
CC qapi-types.o
CC qapi-visit.o
CC qapi-event.o
CC qapi/qapi-visit-core.o
CC qapi/qobject-input-visitor.o
CC qapi/qapi-dealloc-visitor.o
CC qapi/qobject-output-visitor.o
CC qapi/qmp-registry.o
CC qapi/string-input-visitor.o
CC qapi/qmp-dispatch.o
CC qapi/string-output-visitor.o
CC qapi/opts-visitor.o
CC qapi/qmp-event.o
CC qapi/qapi-clone-visitor.o
CC qapi/qapi-util.o
CC qobject/qnull.o
CC qobject/qint.o
CC qobject/qstring.o
CC qobject/qdict.o
CC qobject/qlist.o
CC qobject/qfloat.o
CC qobject/qbool.o
CC qobject/qjson.o
CC qobject/qobject.o
CC qobject/json-lexer.o
CC qobject/json-streamer.o
CC qobject/json-parser.o
CC trace/control.o
CC trace/qmp.o
CC util/osdep.o
CC util/cutils.o
CC util/qemu-timer-common.o
CC util/unicode.o
CC util/bufferiszero.o
In file included from /var/tmp/patchew-tester-tmp-zy6kocel/src/include/net/net.h:9:0,
from /var/tmp/patchew-tester-tmp-zy6kocel/src/util/cutils.c:31:
/var/tmp/patchew-tester-tmp-zy6kocel/src/include/migration/vmstate.h:1056:5: error: unknown type name ‘QemuMutex’
QemuMutex active_lock;
^~~~~~~~~
/var/tmp/patchew-tester-tmp-zy6kocel/src/include/migration/vmstate.h:1059:5: error: unknown type name ‘QEMUClockType’
QEMUClockType type;
^~~~~~~~~~~~~
/var/tmp/patchew-tester-tmp-zy6kocel/src/include/migration/vmstate.h:1064:40: error: unknown type name ‘QEMUClockType’
QEMUClockType type);
^~~~~~~~~~~~~
/var/tmp/patchew-tester-tmp-zy6kocel/src/include/migration/vmstate.h:1066:43: error: unknown type name ‘QEMUClockType’
QEMUClockType type,
^~~~~~~~~~~~~
/var/tmp/patchew-tester-tmp-zy6kocel/src/include/migration/vmstate.h:1067:43: error: unknown type name ‘QEMUTimerCB’
QEMUTimerCB *cb);
^~~~~~~~~~~/var/tmp/patchew-tester-tmp-zy6kocel/src/rules.mak:69: recipe for target 'util/cutils.o' failed
make: *** [util/cutils.o] Error 1
make: *** Waiting for unfinished jobs....
=== OUTPUT END ===
Test command exited with code: 2
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
This series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally.
Hi,
This series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally.
Subject: [Qemu-devel] [PATCH 00/12] self-announce updates
Message-id: [email protected]
Type: series
=== TEST SCRIPT BEGIN ===
#!/bin/bash
set -e
git submodule update --init dtc
# Let docker tests dump environment info
export SHOW_ENV=1
export J=8
time make docker-test-quick@centos6
time make docker-test-mingw@fedora
time make docker-test-build@min-glib
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
3f42430 tests: Add a test for qemu self announcments
dbfc50a tests/test-hmp: Add announce parameter tests
913d3ab hmp: Add hmp_announce_self
a668d43 hmp: add announce paraters info/set
9e8f35b announce_timer: Add ability to reset an existing
0c23820 migration: Allow for a limited number of announce timers 1c59722 qmp: Expose qemu_announce_self as a qmp command
6662e88 virtio-net: Allow qemu_announce_self to trigger virtio announcements 220cde3 net: Add a network device specific self-announcement ability 10b866e migration: Switch to using announcement timer
b7e78e9 migration: Introduce announcement timer
df9e8b3 migration: Introduce announce parameters
=== OUTPUT BEGIN ===
Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Cloning into '/var/tmp/patchew-tester-tmp-l1r65ell/src/dtc'... Submodule path 'dtc': checked out '558cd81bdd432769b59bff01240c44f82cfb1a9d'
BUILD centos6
make[1]: Entering directory '/var/tmp/patchew-tester-tmp-l1r65ell/src'
ARCHIVE qemu.tgz
ARCHIVE dtc.tgz
COPY RUNNER
RUN test-quick in qemu:centos6
Packages installed:
SDL-devel-1.2.14-7.el6_7.1.x86_64
ccache-3.1.6-2.el6.x86_64
epel-release-6-8.noarch
gcc-4.4.7-17.el6.x86_64
git-1.7.1-4.el6_7.1.x86_64
glib2-devel-2.28.8-5.el6.x86_64
libfdt-devel-1.4.0-1.el6.x86_64
make-3.81-23.el6.x86_64
package g++ is not installed
pixman-devel-0.32.8-1.el6.x86_64
tar-1.23-15.el6_8.x86_64
zlib-devel-1.2.3-29.el6.x86_64
Environment variables:
PACKAGES=libfdt-devel ccache tar git make gcc g++ zlib-devel glib2-devel SDL-devel pixman-devel epel-release
HOSTNAME=a36404b38874
TERM=xterm
MAKEFLAGS= -j8
HISTSIZE=1000
J=8
USER=root
CCACHE_DIR=/var/tmp/ccache
EXTRA_CONFIGURE_OPTS=
V=
SHOW_ENV=1
MAIL=/var/spool/mail/root PATH=/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD=/
LANG=en_US.UTF-8
TARGET_LIST=
HISTCONTROL=ignoredups
SHLVL=1
HOME=/root
TEST_DIR=/tmp/qemu-test
LOGNAME=root
LESSOPEN=||/usr/bin/lesspipe.sh %s
FEATURES= dtc
DEBUG=
G_BROKEN_FILENAMES=1
CCACHE_HASHDIR=
_=/usr/bin/env
Configure options:
--enable-werror --target-list=x86_64-softmmu,aarch64-softmmu --prefix=/var/tmp/qemu-build/install No C++ compiler available; disabling C++ specific optional code
Install prefix /var/tmp/qemu-build/install BIOS directory /var/tmp/qemu-build/install/share/qemu binary directory /var/tmp/qemu-build/install/bin
library directory /var/tmp/qemu-build/install/lib module directory /var/tmp/qemu-build/install/lib/qemu libexec directory /var/tmp/qemu-build/install/libexec include directory /var/tmp/qemu-build/install/include config directory /var/tmp/qemu-build/install/etc
local state directory /var/tmp/qemu-build/install/var
Manual directory /var/tmp/qemu-build/install/share/man ELF interp prefix /usr/gnemul/qemu-%M
Source path /tmp/qemu-test/src C compiler cc Host C compiler cc C++ compiler Objective-C compiler cc ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g QEMU_CFLAGS -I/usr/include/pixman-1 -I$(SRC_PATH)/dtc/libfdt -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all LDFLAGS -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g make make install install python python -B smbd /usr/sbin/smbd module support no host CPU x86_64 host big endian no target list x86_64-softmmu aarch64-softmmu tcg debug enabled no gprof enabled no sparse enabled no strip binaries yes profiler no static build no pixman system SDL support yes (1.2.14) GTK support no GTK GL support no VTE support no TLS priority NORMAL GNUTLS support no GNUTLS rnd no libgcrypt no libgcrypt kdf no nettle no nettle kdf no libtasn1 no curses support no virgl support no curl support no mingw32 support no Audio drivers oss Block whitelist (rw) Block whitelist (ro) VirtFS support no VNC support yes VNC SASL support no VNC JPEG support no VNC PNG support no xen support no brlapi support no bluez support no Documentation no PIE yes vde support no netmap support no Linux AIO support no ATTR/XATTR support yes Install blobs yes KVM support yes HAX support no RDMA support no TCG interpreter no fdt support yes preadv support yes fdatasync yes madvise yes posix_madvise yes
libcap-ng support no
vhost-net support yes
vhost-scsi support yes
vhost-vsock support yes
Trace backends log spice support no rbd support no xfsctl support no smartcard support no libusb no usb net redir no OpenGL support no OpenGL dmabufs no libiscsi support no libnfs support no
build guest agent yes
QGA VSS support no
QGA w32 disk info no
QGA MSI support no
seccomp support no
coroutine backend ucontext
coroutine pool yes
debug stack usage no
GlusterFS support no
gcov gcov gcov enabled no TPM support yes libssh2 support no TPM passthrough yes QOM debugging yes Live block migration yes lzo support no snappy support no bzip2 support no
NUMA host support no
tcmalloc support no
jemalloc support no
avx2 optimization no
replication support yes
VxHS block device no
mkdir -p dtc/libfdt
GEN x86_64-softmmu/config-devices.mak.tmp
mkdir -p dtc/tests
GEN aarch64-softmmu/config-devices.mak.tmp GEN qemu-options.def GEN config-host.h GEN qmp-commands.h GEN qapi-types.h GEN qapi-visit.h GEN qapi-event.h GEN x86_64-softmmu/config-devices.mak GEN qmp-marshal.c GEN aarch64-softmmu/config-devices.mak GEN qapi-types.c GEN qapi-visit.c GEN qapi-event.c GEN qmp-introspect.h GEN qmp-introspect.c GEN trace/generated-tcg-tracers.h GEN trace/generated-helpers-wrappers.h GEN trace/generated-helpers.h GEN trace/generated-helpers.c GEN module_block.h GEN tests/test-qapi-types.h GEN tests/test-qapi-visit.h GEN tests/test-qmp-commands.h GEN tests/test-qapi-event.h GEN tests/test-qmp-introspect.h GEN trace-root.h GEN util/trace.h GEN crypto/trace.h GEN io/trace.h GEN migration/trace.h GEN block/trace.h GEN backends/trace.h GEN hw/block/trace.h GEN hw/block/dataplane/trace.h GEN hw/char/trace.h GEN hw/intc/trace.h GEN hw/net/trace.h GEN hw/virtio/trace.h GEN hw/audio/trace.h GEN hw/misc/trace.h GEN hw/usb/trace.h GEN hw/scsi/trace.h GEN hw/nvram/trace.h GEN hw/display/trace.h GEN hw/input/trace.h GEN hw/timer/trace.h GEN hw/dma/trace.h GEN hw/sparc/trace.h GEN hw/sd/trace.h GEN hw/isa/trace.h GEN hw/mem/trace.h GEN hw/i386/trace.h GEN hw/i386/xen/trace.h GEN hw/9pfs/trace.h GEN hw/ppc/trace.h GEN hw/pci/trace.h GEN hw/s390x/trace.h GEN hw/vfio/trace.h GEN hw/acpi/trace.h GEN hw/arm/trace.h GEN hw/alpha/trace.h GEN hw/xen/trace.h GEN ui/trace.h GEN audio/trace.h GEN net/trace.h GEN target/arm/trace.h GEN target/i386/trace.h GEN target/mips/trace.h GEN target/sparc/trace.h GEN target/s390x/trace.h GEN target/ppc/trace.h GEN qom/trace.h GEN linux-user/trace.h GEN qapi/trace.h GEN trace-root.c GEN util/trace.c GEN crypto/trace.c GEN io/trace.c GEN migration/trace.c GEN block/trace.c GEN backends/trace.c GEN hw/block/trace.c GEN hw/block/dataplane/trace.c GEN hw/char/trace.c GEN hw/intc/trace.c GEN hw/net/trace.c GEN hw/virtio/trace.c GEN hw/audio/trace.c GEN hw/misc/trace.c GEN hw/usb/trace.c GEN hw/scsi/trace.c GEN hw/nvram/trace.c GEN hw/display/trace.c GEN hw/input/trace.c GEN hw/timer/trace.c GEN hw/dma/trace.c GEN hw/sparc/trace.c GEN hw/sd/trace.c GEN hw/isa/trace.c GEN hw/mem/trace.c GEN hw/i386/trace.c GEN hw/i386/xen/trace.c GEN hw/9pfs/trace.c GEN hw/ppc/trace.c GEN hw/pci/trace.c GEN hw/s390x/trace.c GEN hw/vfio/trace.c GEN hw/acpi/trace.c GEN hw/arm/trace.c GEN hw/alpha/trace.c GEN hw/xen/trace.c GEN ui/trace.c GEN audio/trace.c GEN net/trace.c GEN target/arm/trace.c GEN target/i386/trace.c GEN target/mips/trace.c GEN target/sparc/trace.c GEN target/s390x/trace.c GEN target/ppc/trace.c GEN qom/trace.c GEN linux-user/trace.c GEN qapi/trace.c GEN config-all-devices.mak
DEP /tmp/qemu-test/src/dtc/tests/dumptrees.c
DEP /tmp/qemu-test/src/dtc/tests/trees.S
DEP /tmp/qemu-test/src/dtc/tests/testutils.c
DEP /tmp/qemu-test/src/dtc/tests/value-labels.c DEP /tmp/qemu-test/src/dtc/tests/asm_tree_dump.c DEP /tmp/qemu-test/src/dtc/tests/truncated_property.c DEP /tmp/qemu-test/src/dtc/tests/overlay_bad_fixup.c DEP /tmp/qemu-test/src/dtc/tests/check_path.c
DEP /tmp/qemu-test/src/dtc/tests/overlay.c
DEP /tmp/qemu-test/src/dtc/tests/subnode_iterate.c DEP /tmp/qemu-test/src/dtc/tests/property_iterate.c DEP /tmp/qemu-test/src/dtc/tests/integer-expressions.c DEP /tmp/qemu-test/src/dtc/tests/utilfdt_test.c DEP /tmp/qemu-test/src/dtc/tests/path_offset_aliases.c DEP /tmp/qemu-test/src/dtc/tests/add_subnode_with_nops.c DEP /tmp/qemu-test/src/dtc/tests/dtbs_equal_unordered.c DEP /tmp/qemu-test/src/dtc/tests/dtb_reverse.c DEP /tmp/qemu-test/src/dtc/tests/dtbs_equal_ordered.c DEP /tmp/qemu-test/src/dtc/tests/extra-terminating-null.c DEP /tmp/qemu-test/src/dtc/tests/incbin.c
DEP /tmp/qemu-test/src/dtc/tests/boot-cpuid.c
DEP /tmp/qemu-test/src/dtc/tests/phandle_format.c DEP /tmp/qemu-test/src/dtc/tests/path-references.c DEP /tmp/qemu-test/src/dtc/tests/references.c
DEP /tmp/qemu-test/src/dtc/tests/string_escapes.c DEP /tmp/qemu-test/src/dtc/tests/propname_escapes.c DEP /tmp/qemu-test/src/dtc/tests/appendprop2.c DEP /tmp/qemu-test/src/dtc/tests/appendprop1.c DEP /tmp/qemu-test/src/dtc/tests/del_node.c
DEP /tmp/qemu-test/src/dtc/tests/del_property.c DEP /tmp/qemu-test/src/dtc/tests/setprop.c
DEP /tmp/qemu-test/src/dtc/tests/set_name.c
DEP /tmp/qemu-test/src/dtc/tests/rw_tree1.c
DEP /tmp/qemu-test/src/dtc/tests/open_pack.c
DEP /tmp/qemu-test/src/dtc/tests/nopulate.c
DEP /tmp/qemu-test/src/dtc/tests/mangle-layout.c DEP /tmp/qemu-test/src/dtc/tests/move_and_save.c DEP /tmp/qemu-test/src/dtc/tests/sw_tree1.c
DEP /tmp/qemu-test/src/dtc/tests/nop_node.c
DEP /tmp/qemu-test/src/dtc/tests/setprop_inplace.c DEP /tmp/qemu-test/src/dtc/tests/stringlist.c
DEP /tmp/qemu-test/src/dtc/tests/nop_property.c DEP /tmp/qemu-test/src/dtc/tests/addr_size_cells.c DEP /tmp/qemu-test/src/dtc/tests/notfound.c
DEP /tmp/qemu-test/src/dtc/tests/sized_cells.c DEP /tmp/qemu-test/src/dtc/tests/char_literal.c DEP /tmp/qemu-test/src/dtc/tests/get_alias.c
DEP /tmp/qemu-test/src/dtc/tests/node_offset_by_compatible.c DEP /tmp/qemu-test/src/dtc/tests/node_check_compatible.c DEP /tmp/qemu-test/src/dtc/tests/node_offset_by_phandle.c DEP /tmp/qemu-test/src/dtc/tests/node_offset_by_prop_value.c DEP /tmp/qemu-test/src/dtc/tests/parent_offset.c DEP /tmp/qemu-test/src/dtc/tests/supernode_atdepth_offset.c DEP /tmp/qemu-test/src/dtc/tests/get_path.c
DEP /tmp/qemu-test/src/dtc/tests/get_phandle.c DEP /tmp/qemu-test/src/dtc/tests/getprop.c
DEP /tmp/qemu-test/src/dtc/tests/get_name.c
DEP /tmp/qemu-test/src/dtc/tests/path_offset.c DEP /tmp/qemu-test/src/dtc/tests/subnode_offset.c DEP /tmp/qemu-test/src/dtc/tests/find_property.c DEP /tmp/qemu-test/src/dtc/tests/root_node.c
DEP /tmp/qemu-test/src/dtc/tests/get_mem_rsv.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_overlay.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_addresses.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_empty_tree.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_rw.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_strerror.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_sw.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_ro.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_wip.c
DEP /tmp/qemu-test/src/dtc/util.c
DEP /tmp/qemu-test/src/dtc/fdtget.c
DEP /tmp/qemu-test/src/dtc/fdtdump.c
DEP /tmp/qemu-test/src/dtc/fdtput.c
LEX convert-dtsv0-lexer.lex.c
make[1]: flex: Command not found
DEP /tmp/qemu-test/src/dtc/srcpos.c
BISON dtc-parser.tab.c
LEX dtc-lexer.lex.c
make[1]: bison: Command not found
DEP /tmp/qemu-test/src/dtc/treesource.c
make[1]: flex: Command not found
DEP /tmp/qemu-test/src/dtc/livetree.c
DEP /tmp/qemu-test/src/dtc/fstree.c
DEP /tmp/qemu-test/src/dtc/flattree.c
DEP /tmp/qemu-test/src/dtc/dtc.c
DEP /tmp/qemu-test/src/dtc/data.c
DEP /tmp/qemu-test/src/dtc/checks.c
CHK version_gen.h
LEX convert-dtsv0-lexer.lex.c
make[1]: flex: Command not found
BISON dtc-parser.tab.c
LEX dtc-lexer.lex.c
make[1]: bison: Command not found
make[1]: flex: Command not found
UPD version_gen.h
DEP /tmp/qemu-test/src/dtc/util.c
LEX convert-dtsv0-lexer.lex.c
make[1]: flex: Command not found
BISON dtc-parser.tab.c
make[1]: bison: Command not found
LEX dtc-lexer.lex.c
make[1]: flex: Command not found
CC libfdt/fdt.o
CC libfdt/fdt_ro.o
CC libfdt/fdt_wip.o
CC libfdt/fdt_sw.o
CC libfdt/fdt_strerror.o
CC libfdt/fdt_rw.o
CC libfdt/fdt_empty_tree.o
CC libfdt/fdt_addresses.o
CC libfdt/fdt_overlay.o
AR libfdt/libfdt.a
ar: creating libfdt/libfdt.a
a - libfdt/fdt.o
a - libfdt/fdt_ro.o
a - libfdt/fdt_wip.o
a - libfdt/fdt_sw.o
a - libfdt/fdt_rw.o
a - libfdt/fdt_strerror.o
a - libfdt/fdt_empty_tree.o
a - libfdt/fdt_addresses.o
a - libfdt/fdt_overlay.o
LEX convert-dtsv0-lexer.lex.c
make[1]: flex: Command not found
BISON dtc-parser.tab.c
make[1]: bison: Command not found
LEX dtc-lexer.lex.c
make[1]: flex: Command not found
GEN qga/qapi-generated/qga-qapi-types.h
CC tests/qemu-iotests/socket_scm_helper.o
GEN qga/qapi-generated/qga-qapi-types.c
GEN qga/qapi-generated/qga-qmp-commands.h
GEN qga/qapi-generated/qga-qapi-visit.h
CC qmp-introspect.o
GEN qga/qapi-generated/qga-qapi-visit.c
GEN qga/qapi-generated/qga-qmp-marshal.c
CC qapi-types.o
CC qapi-visit.o
CC qapi-event.o
CC qapi/qapi-dealloc-visitor.o
CC qapi/qapi-visit-core.o
CC qapi/qobject-input-visitor.o
CC qapi/qobject-output-visitor.o
CC qapi/qmp-registry.o
CC qapi/qmp-dispatch.o
CC qapi/string-input-visitor.o
CC qapi/string-output-visitor.o
CC qapi/opts-visitor.o
CC qapi/qapi-clone-visitor.o
CC qapi/qmp-event.o
CC qapi/qapi-util.o
CC qobject/qnull.o
CC qobject/qint.o
CC qobject/qstring.o
CC qobject/qlist.o
CC qobject/qfloat.o
CC qobject/qdict.o
CC qobject/qbool.o
CC qobject/qjson.o
CC qobject/qobject.o
CC qobject/json-lexer.o
CC qobject/json-streamer.o
CC qobject/json-parser.o
CC trace/control.o
CC trace/qmp.o
CC util/osdep.o
CC util/cutils.o
CC util/unicode.o
CC util/qemu-timer-common.o
In file included from /tmp/qemu-test/src/include/net/net.h:10,
from /tmp/qemu-test/src/util/cutils.c:32:/tmp/qemu-test/src/include/migration/vmstate.h:1056: error: expected specifier-qualifier-list before ‘QemuMutex’ /tmp/qemu-test/src/include/migration/vmstate.h:1064: error: expected declaration specifiers or ‘...’ before ‘QEMUClockType’ /tmp/qemu-test/src/include/migration/vmstate.h:1066: error: expected declaration specifiers or ‘...’ before ‘QEMUClockType’ /tmp/qemu-test/src/include/migration/vmstate.h:1067: error: expected declaration specifiers or ‘...’ before ‘QEMUTimerCB’ /tmp/qemu-test/src/include/migration/vmstate.h: In function ‘self_announce_delay’:/tmp/qemu-test/src/include/migration/vmstate.h:1074: error: ‘AnnounceTimer’ has no member named ‘params’ /tmp/qemu-test/src/include/migration/vmstate.h:1075: error: ‘AnnounceTimer’ has no member named ‘params’ /tmp/qemu-test/src/include/migration/vmstate.h:1075: error: ‘AnnounceTimer’ has no member named ‘round’ /tmp/qemu-test/src/include/migration/vmstate.h:1076: error: ‘AnnounceTimer’ has no member named ‘params’ /tmp/qemu-test/src/include/migration/vmstate.h:1078: error: ‘AnnounceTimer’ has no member named ‘params’ /tmp/qemu-test/src/include/migration/vmstate.h:1079: error: ‘AnnounceTimer’ has no member named ‘params’
make: *** [util/cutils.o] Error 1
make: *** Waiting for unfinished jobs....
tests/docker/Makefile.include:118: recipe for target 'docker-run' failed
make[1]: *** [docker-run] Error 2
make[1]: Leaving directory '/var/tmp/patchew-tester-tmp-l1r65ell/src' tests/docker/Makefile.include:149: recipe for target 'docker-run-test-quick@centos6' failed
make: *** [docker-run-test-quick@centos6] Error 2
=== OUTPUT END ===
Test command exited with code: 2
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
This series seems to have some coding style problems. See output below for more information:
Hi,
This series seems to have some coding style problems. See output below for more information:
Subject: [Qemu-devel] [PATCH 00/12] self-announce updates
Message-id: [email protected]
Type: series
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
git config --local diff.renamelimit 0
git config --local diff.renames True
commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do
echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))done
exit $failed
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
3f42430 tests: Add a test for qemu self announcments
dbfc50a tests/test-hmp: Add announce parameter tests
913d3ab hmp: Add hmp_announce_self
a668d43 hmp: add announce paraters info/set
9e8f35b announce_timer: Add ability to reset an existing
0c23820 migration: Allow for a limited number of announce timers 1c59722 qmp: Expose qemu_announce_self as a qmp command
6662e88 virtio-net: Allow qemu_announce_self to trigger virtio announcements 220cde3 net: Add a network device specific self-announcement ability 10b866e migration: Switch to using announcement timer
b7e78e9 migration: Introduce announcement timer
df9e8b3 migration: Introduce announce parameters
=== OUTPUT BEGIN ===
Checking PATCH 1/12: migration: Introduce announce parameters...
ERROR: braces {} are necessary for all arms of this statement #133: FILE: migration/savevm.c:174:
+ if (!qemu_validate_announce_parameters(params, errp))
[...]
ERROR: trailing whitespace
#175: FILE: qapi-schema.json:597:
+# $
total: 2 errors, 0 warnings, 207 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
Checking PATCH 2/12: migration: Introduce announcement timer...
Checking PATCH 3/12: migration: Switch to using announcement timer... Checking PATCH 4/12: net: Add a network device specific self-announcement ability... Checking PATCH 5/12: virtio-net: Allow qemu_announce_self to trigger virtio announcements...
ERROR: braces {} are necessary for all arms of this statement
#49: FILE: hw/net/virtio-net.c:139:
+ if (n->announce_timer->round)
[...]
total: 1 errors, 0 warnings, 55 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
Checking PATCH 6/12: qmp: Expose qemu_announce_self as a qmp command...
ERROR: braces {} are necessary for all arms of this statement #29: FILE: migration/savevm.c:277:
+ if (has_params)
[...]
total: 1 errors, 0 warnings, 45 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
Checking PATCH 7/12: migration: Allow for a limited number of announce timers... Checking PATCH 8/12: announce_timer: Add ability to reset an existing...
ERROR: space prohibited before that close parenthesis ')'
#50: FILE: migration/savevm.c:239:
+ if (--timer->round ) {
total: 1 errors, 0 warnings, 81 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
Checking PATCH 9/12: hmp: add announce paraters info/set... Checking PATCH 10/12: hmp: Add hmp_announce_self... Checking PATCH 11/12: tests/test-hmp: Add announce parameter tests... Checking PATCH 12/12: tests: Add a test for qemu self announcments... === OUTPUT END ===
Test command exited with code: 1
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
Re: [Qemu-devel] [PATCH 01/12] migration: Introduce announce parameters
In reply to Vladislav YasevichQuoted 7 lines · Vladislav Yasevich
Add parameters that control RARP/GARP announcement timeouts. The parameters structure is added to the QAPI and a qmp command is added to set/get the parameter data.
Based on work by "Dr. David Alan Gilbert" <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>
I think it's better to explain e.g under which condition do we need to tweak such parameters.
Thanks
Re: [Qemu-devel] [PATCH 02/12] migration: Introduce announcement timer
In reply to Vladislav YasevichQuoted 1 line · Vladislav Yasevich
Introdec
Typo.
Thanks
Quoted 68 lines
an annoucement timer structure and initialization to be used by for self-annoucement.
Based on the work by Germano Veit Michel <[email protected]>
Signed-off-by Vlad Yasevich <[email protected]>--- include/migration/vmstate.h | 13 +++++++++++++ migration/savevm.c | 22 ++++++++++++++++++++++ 2 files changed, 35 insertions(+)include/migration/vmstate.h +13
-0@@ -1057,6 +1057,19 @@ void vmstate_register_ram(struct MemoryRegion *memory, DeviceState *dev);void vmstate_unregister_ram (struct MemoryRegion *memory,DeviceState *dev);void vmstate_register_ram_global (struct MemoryRegion *memory); +typedef struct AnnounceTimer { +QEMUTimer *tm; +AnnounceParameters params; +QEMUClockType type; +int round; +}AnnounceTimer ; + +AnnounceTimer *qemu_announce_timer_new (AnnounceParameters *params, +QEMUClockType type); +AnnounceTimer *qemu_announce_timer_create (AnnounceParameters *params, +QEMUClockType type, +QEMUTimerCB *cb); +static inline int64_t self_announce_delay (int round) {migration/savevm.c +22
-0@@ -230,6 +230,28 @@ static void qemu_announce_self_once(void *opaque) } } +AnnounceTimer *qemu_announce_timer_new (AnnounceParameters *params, +QEMUClockType type) +{ +AnnounceTimer *timer =g_new (AnnounceTimer,1 ); + + timer->params = *params; + timer->round = params->rounds; + timer->type = type; + +return timer; +} + +AnnounceTimer *qemu_announce_timer_create (AnnounceParameters *params, +QEMUClockType type, +QEMUTimerCB *cb) +{ +AnnounceTimer *timer =qemu_announce_timer_new (params, type); + + timer->tm =timer_new_ms (type, cb, timer); +return timer; +} +void qemu_announce_self (void ) {static QEMUTimer *timer;
Re: [Qemu-devel] [PATCH 03/12] migration: Switch to using announcement timer
In reply to Vladislav YasevichQuoted 134 lines · Vladislav Yasevich
Switch
qemu_announce_selfand virtio annoucements to use the announcement timer framework. This makes sure that both timers use the same timeouts and number of annoucement attemptsBased on work by Dr. David Alan Gilbert <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>--- hw/net/virtio-net.c | 28 ++++++++++++++++------------ include/hw/virtio/virtio-net.h | 3 +-- include/migration/vmstate.h | 17 +++++++++++------ include/sysemu/sysemu.h | 2 +- migration/migration.c | 2 +- migration/savevm.c | 28 ++++++++++++++-------------- 6 files changed, 44 insertions(+), 36 deletions(-)hw/net/virtio-net.c +16
-12@@ -25,6 +25,7 @@#include "qapi/qmp/qjson.h" #include "qapi-event.h" #include "hw/virtio/virtio-access.h" +#include "migration/migration.h" #define VIRTIO_NET_VM_VERSION 11@@ -115,7 +116,7 @@ static void virtio_net_announce_timer(void *opaque)VirtIONet *n = opaque;VirtIODevice *vdev =VIRTIO_DEVICE (n); - n->announce_counter--; + n->announce_timer->round--; n->status |=VIRTIO_NET_S_ANNOUNCE ;virtio_notify_config (vdev); }@@ -427,8 +428,8 @@ static void virtio_net_reset(VirtIODevice *vdev) n->nobcast =0 ;/* multiqueue is disabled by default */ n->curr_queues =1 ; -timer_del (n->announce_timer); - n->announce_counter =0 ; +timer_del (n->announce_timer->tm); + n->announce_timer->round =0 ; n->status &= ~VIRTIO_NET_S_ANNOUNCE ;/* Flush any MAC and VLAN filter table state */ @@ -872,10 +873,10 @@ static int virtio_net_handle_announce(VirtIONet *n, uint8_t cmd,if (cmd ==VIRTIO_NET_CTRL_ANNOUNCE_ACK && n->status &VIRTIO_NET_S_ANNOUNCE ) { n->status &= ~VIRTIO_NET_S_ANNOUNCE ; -if (n->announce_counter) { -timer_mod (n->announce_timer, +if (n->announce_timer->round) { +timer_mod (n->announce_timer->tm,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL ) + -self_announce_delay (n->announce_counter)); +self_announce_delay (n->announce_timer)); }return VIRTIO_NET_OK ; }else {@@ -1615,8 +1616,8 @@ static int virtio_net_post_load_device(void *opaque, int version_id)if (virtio_vdev_has_feature (vdev,VIRTIO_NET_F_GUEST_ANNOUNCE ) &&virtio_vdev_has_feature (vdev,VIRTIO_NET_F_CTRL_VQ )) { - n->announce_counter =SELF_ANNOUNCE_ROUNDS ; -timer_mod (n->announce_timer,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL )); + n->announce_timer->round = n->announce_timer->params.rounds; +timer_mod (n->announce_timer->tm,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL )); }return 0 ;@@ -1938,8 +1939,10 @@ static void virtio_net_device_realize(DeviceState *dev, Error **errp)qemu_macaddr_default_if_unset (&n->nic_conf.macaddr);memcpy (&n->mac[0 ], &n->nic_conf.macaddr,sizeof (n->mac)); n->status =VIRTIO_NET_S_LINK_UP ; - n->announce_timer =timer_new_ms (QEMU_CLOCK_VIRTUAL , - virtio_net_announce_timer, n); + n->announce_timer =qemu_announce_timer_new (qemu_get_announce_params (), +QEMU_CLOCK_VIRTUAL ); + n->announce_timer->tm =timer_new_ms (QEMU_CLOCK_VIRTUAL , + virtio_net_announce_timer, n);if (n->netclient_type) {/* @@ -2001,8 +2004,9 @@ static void virtio_net_device_unrealize(DeviceState *dev, Error **errp)virtio_net_del_queue (n, i); } -timer_del (n->announce_timer); -timer_free (n->announce_timer); +timer_del (n->announce_timer->tm); +timer_free (n->announce_timer->tm); +g_free (n->announce_timer);g_free (n->vqs);qemu_del_nic (n->nic);virtio_cleanup (vdev);include/hw/virtio/virtio-net.h +1
-2@@ -94,8 +94,7 @@ typedef struct VirtIONet {char *netclient_name;char *netclient_type;uint64_t curr_guest_offloads; -QEMUTimer *announce_timer; -int announce_counter; +AnnounceTimer *announce_timer;bool needs_vnet_hdr_swap; } VirtIONet;include/migration/vmstate.h +1
-5@@ -1022,8 +1022,6 @@ extern const VMStateInfo vmstate_info_qtailq;#define VMSTATE_END_OF_LIST () \ {} -#define SELF_ANNOUNCE_ROUNDS 5 -void loadvm_free_handlers (MigrationIncomingState *mis); int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,@@ -1071,11 +1069,18 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params, QEMUTimerCB *cb);static inline -int64_t self_announce_delay (int round) +int64_t self_announce_delay (AnnounceTimer *timer) { -assert (round <SELF_ANNOUNCE_ROUNDS && round >0 ); -/* delay 50ms, 150ms, 250ms, ... */
include/migration/vmstate.h AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params, · line 1082
Quoted 10 lines
include/migration/vmstate.h +9
-1-return 50 + (SELF_ANNOUNCE_ROUNDS - round -1 ) *100 ; +int64_t ret; + + ret = timer->params.initial + + (timer->params.rounds - timer->round -1 ) * + timer->params.step; + +if (ret <0 || ret > timer->params.max) { + ret = timer->params.max; + }
Can we move this check to qemu_validate_announce_parameters()?
Quoted 82 lines
include/migration/vmstate.h +1
-0+return ret; }void dump_vmstate_json_to_file (FILE *out_fp);include/sysemu/sysemu.h +1
-1@@ -85,7 +85,7 @@ bool qemu_validate_announce_parameters(AnnounceParameters *params, Error **errp);void qemu_set_announce_parameters (AnnounceParameters *announce_params,AnnounceParameters *params); -void qemu_announce_self (void ); +void qemu_announce_self (AnnounceParameters *params);/* Subcommands for QEMU_VM_COMMAND */ enum qemu_vm_cmd {migration/migration.c +1
-1@@ -345,7 +345,7 @@ static void process_incoming_migration_bh(void *opaque)* This must happen after all error conditions are dealt with and * we're sure the VM is going to be running on this host. */ -qemu_announce_self (); +qemu_announce_self (qemu_get_announce_params ());/* If global state section was not received or we are in running state, we need to obey autostart. Any other state is set with migration/savevm.c +13
-13@@ -212,21 +212,19 @@ static void qemu_announce_self_iter(NICState *nic, void *opaque)qemu_send_packet_raw (qemu_get_queue (nic), buf, len); } -static void qemu_announce_self_once (void *opaque) { -static int count =SELF_ANNOUNCE_ROUNDS ; -QEMUTimer *timer = *(QEMUTimer **)opaque; +AnnounceTimer *timer = (AnnounceTimer *)opaque;qemu_foreach_nic (qemu_announce_self_iter,NULL ); -if (--count) { -/* delay 50ms, 150ms, 250ms, ... */ -timer_mod (timer,qemu_clock_get_ms (QEMU_CLOCK_REALTIME ) + -self_announce_delay (count)); +if (--timer->round) { +timer_mod (timer->tm,qemu_clock_get_ms (timer->type) + +self_announce_delay (timer)); }else { -timer_del (timer); -timer_free (timer); +timer_del (timer->tm); +timer_free (timer->tm); +g_free (timer); } }@@ -252,11 +250,13 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params,return timer; } -void qemu_announce_self (void ) +void qemu_announce_self (AnnounceParameters *params) { -static QEMUTimer *timer; - timer =timer_new_ms (QEMU_CLOCK_REALTIME , qemu_announce_self_once, &timer); -qemu_announce_self_once (&timer); +AnnounceTimer *timer; + + timer =qemu_announce_timer_create (params,QEMU_CLOCK_REALTIME , + qemu_announce_self_once); +qemu_announce_self_once (timer); }/***********************************************************/
migration/savevm.c static void loadvm_postcopy_handle_run_bh(void *opaque) · line 1736
Quoted 8 lines
migration/savevm.c +1
-1@@ -1730,7 +1730,7 @@ static void loadvm_postcopy_handle_run_bh(void *opaque)*/ cpu_synchronize_all_post_init (); -qemu_announce_self (); +qemu_announce_self (qemu_get_announce_params ());/* Make sure all file formats flush their mutable metadata. * If we get an error here, just don't restart the VM yet. */
Re: [Qemu-devel] [PATCH 04/12] net: Add a network device specific self-announcement ability
In reply to Vladislav YasevichQuoted 2 lines · Vladislav Yasevich
Some network devices have a capability to do self annoucements (ex: virtio-new).
I thought you mean "virtio-net" here.
Quoted 39 lines
Add infrustrcture that would allow devices
to expose this ability.Signed-off-by Vladislav Yasevich <[email protected]>--- include/net/net.h | 2 ++ migration/savevm.c | 6 ++++++ 2 files changed, 8 insertions(+)include/net/net.h +2
-0@@ -64,6 +64,7 @@ typedef int (SetVnetLE)(NetClientState *, bool);typedef int (SetVnetBE )(NetClientState *,bool );typedef struct SocketReadState SocketReadState ;typedef void (SocketReadStateFinalize )(SocketReadState *rs); +typedef void (NetAnnounce )(NetClientState *); typedef struct NetClientInfo { NetClientDriver type;@@ -84,6 +85,7 @@ typedef struct NetClientInfo {SetVnetHdrLen *set_vnet_hdr_len;SetVnetLE *set_vnet_le;SetVnetBE *set_vnet_be; +NetAnnounce *announce; } NetClientInfo;struct NetClientState {migration/savevm.c +1
-0@@ -207,9 +207,15 @@ static void qemu_announce_self_iter(NICState *nic, void *opaque)int len;trace_qemu_announce_self_iter (qemu_ether_ntoa (&nic->conf->macaddr)); + len =announce_self_create (buf, nic->conf->macaddr.a);
migration/savevm.c static void qemu_announce_self_iter(NICState *nic, void *opaque) · line 221
Quoted 10 lines
migration/savevm.c +5
-0qemu_send_packet_raw (qemu_get_queue (nic), buf, len); + +/* if the NIC provides it's own announcement support, use it as well */ +if (nic->ncs->info->announce) { + nic->ncs->info->announce (nic->ncs); + } }static void qemu_announce_self_once (void *opaque)
Re: [Qemu-devel] [PATCH 05/12] virtio-net: Allow qemu_announce_self to trigger virtio announcements
In reply to Vladislav YasevichQuoted 63 lines · Vladislav Yasevich
Expose the virtio-net self annoucement capability and allow
qemu_announce_self()to call it.Signed-off-by Vladislav Yasevich <[email protected]>--- hw/net/virtio-net.c | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-)hw/net/virtio-net.c +28
-3@@ -111,14 +111,38 @@ static bool virtio_net_started(VirtIONet *n, uint8_t status) (n->status &VIRTIO_NET_S_LINK_UP ) && vdev->vm_running; } +static void __virtio_net_announce (VirtIONet *net) +{ +VirtIODevice *vdev =VIRTIO_DEVICE (net); + + net->status |=VIRTIO_NET_S_ANNOUNCE ; +virtio_notify_config (vdev); +} +static void virtio_net_announce_timer (void *opaque) {VirtIONet *n = opaque; -VirtIODevice *vdev =VIRTIO_DEVICE (n); n->announce_timer->round--; - n->status |=VIRTIO_NET_S_ANNOUNCE ; -virtio_notify_config (vdev); +__virtio_net_announce (n); +} + +static void virtio_net_announce (NetClientState *nc) +{ +VirtIONet *n =qemu_get_nic_opaque (nc); +VirtIODevice *vdev =VIRTIO_DEVICE (n); + +/* Make sure the virtio migration announcement timer isn't running +* If it is, let it trigger announcement so that we do not cause +* confusion. +*/ +if (n->announce_timer->round) +return ; + +if (virtio_vdev_has_feature (vdev,VIRTIO_NET_F_GUEST_ANNOUNCE ) && +virtio_vdev_has_feature (vdev,VIRTIO_NET_F_CTRL_VQ )) { +__virtio_net_announce (n); + } }static void virtio_net_vhost_status (VirtIONet *n,uint8_t status)@@ -1834,6 +1858,7 @@ static NetClientInfo net_virtio_info = { .receive = virtio_net_receive, .link_status_changed = virtio_net_set_link_status, .query_rx_filter = virtio_net_query_rxfilter, + .announce = virtio_net_announce, };static bool virtio_net_guest_notifier_pending (VirtIODevice *vdev,int idx)
hw/net/virtio-net.c static void virtio_net_device_realize(DeviceState *dev, Error **errp) · line 1972
Quoted 7 lines
hw/net/virtio-net.c +1
-0@@ -1941,6 +1966,7 @@ static void virtio_net_device_realize(DeviceState *dev, Error **errp) n->status =VIRTIO_NET_S_LINK_UP ; n->announce_timer =qemu_announce_timer_new (qemu_get_announce_params (),QEMU_CLOCK_VIRTUAL ); + n->announce_timer->round =0 ; n->announce_timer->tm =timer_new_ms (QEMU_CLOCK_VIRTUAL , virtio_net_announce_timer, n);
Re: [Qemu-devel] [PATCH 03/12] migration: Switch to using announcement timer
In reply to Jason WangQuoted 132 lines · Jason Wang
Quoted 129 lines · Vladislav Yasevich
Switch
qemu_announce_selfand virtio annoucements to use the announcement timer framework. This makes sure that both timers use the same timeouts and number of annoucement attemptsBased on work by Dr. David Alan Gilbert <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>--- hw/net/virtio-net.c | 28 ++++++++++++++++------------ include/hw/virtio/virtio-net.h | 3 +-- include/migration/vmstate.h | 17 +++++++++++------ include/sysemu/sysemu.h | 2 +- migration/migration.c | 2 +- migration/savevm.c | 28 ++++++++++++++-------------- 6 files changed, 44 insertions(+), 36 deletions(-)hw/net/virtio-net.c +1
-0@@ -25,6 +25,7 @@#include "qapi/qmp/qjson.h" #include "qapi-event.h" #include "hw/virtio/virtio-access.h" +#include "migration/migration.h" #define VIRTIO_NET_VM_VERSION 11 @@ -115,7 +116,7 @@ static void virtio_net_announce_timer(void *opaque) VirtIONet *n = opaque;VirtIODevice *vdev = VIRTIO_DEVICE(n);- n->announce_counter--;
hw/net/virtio-net.c +15
-10+ n->announce_timer->round--; n->status |=VIRTIO_NET_S_ANNOUNCE ;virtio_notify_config (vdev); }@@ -427,8 +428,8 @@ static void virtio_net_reset(VirtIODevice *vdev) n->nobcast =0 ;/* multiqueue is disabled by default */ n->curr_queues =1 ; -timer_del (n->announce_timer); - n->announce_counter =0 ; +timer_del (n->announce_timer->tm); + n->announce_timer->round =0 ; n->status &= ~VIRTIO_NET_S_ANNOUNCE ;/* Flush any MAC and VLAN filter table state */ @@ -872,10 +873,10 @@ static int virtio_net_handle_announce(VirtIONet *n, uint8_t cmd,if (cmd ==VIRTIO_NET_CTRL_ANNOUNCE_ACK && n->status &VIRTIO_NET_S_ANNOUNCE ) { n->status &= ~VIRTIO_NET_S_ANNOUNCE ; -if (n->announce_counter) { -timer_mod (n->announce_timer, +if (n->announce_timer->round) { +timer_mod (n->announce_timer->tm,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL ) + -self_announce_delay (n->announce_counter)); +self_announce_delay (n->announce_timer)); }return VIRTIO_NET_OK ; }else {@@ -1615,8 +1616,8 @@ static int virtio_net_post_load_device(void *opaque, int version_id)if (virtio_vdev_has_feature (vdev,VIRTIO_NET_F_GUEST_ANNOUNCE ) &&virtio_vdev_has_feature (vdev,VIRTIO_NET_F_CTRL_VQ )) { - n->announce_counter =SELF_ANNOUNCE_ROUNDS ; -timer_mod (n->announce_timer,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL )); + n->announce_timer->round = n->announce_timer->params.rounds; +timer_mod (n->announce_timer->tm,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL )); }return 0 ;@@ -1938,8 +1939,10 @@ static void virtio_net_device_realize(DeviceState *dev, Error **errp)qemu_macaddr_default_if_unset (&n->nic_conf.macaddr);memcpy (&n->mac[0 ], &n->nic_conf.macaddr,sizeof (n->mac)); n->status =VIRTIO_NET_S_LINK_UP ; - n->announce_timer =timer_new_ms (QEMU_CLOCK_VIRTUAL , - virtio_net_announce_timer, n); + n->announce_timer =qemu_announce_timer_new (qemu_get_announce_params (), +QEMU_CLOCK_VIRTUAL ); + n->announce_timer->tm =timer_new_ms (QEMU_CLOCK_VIRTUAL , + virtio_net_announce_timer, n);if (n->netclient_type) {/* @@ -2001,8 +2004,9 @@ static void virtio_net_device_unrealize(DeviceState *dev, Error **errp)virtio_net_del_queue (n, i); } -timer_del (n->announce_timer); -timer_free (n->announce_timer); +timer_del (n->announce_timer->tm); +timer_free (n->announce_timer->tm); +g_free (n->announce_timer);g_free (n->vqs);qemu_del_nic (n->nic);virtio_cleanup (vdev);include/hw/virtio/virtio-net.h +1
-2@@ -94,8 +94,7 @@ typedef struct VirtIONet {char *netclient_name;char *netclient_type;uint64_t curr_guest_offloads; -QEMUTimer *announce_timer; -int announce_counter; +AnnounceTimer *announce_timer;bool needs_vnet_hdr_swap; } VirtIONet; diff --git a/include/migration/vmstate.h b/include/migration/vmstate.hindex a6bf84d..f8aed9b 100644
include/migration/vmstate.h +4
-5@@ -1022,8 +1022,6 @@ extern const VMStateInfo vmstate_info_qtailq;#define VMSTATE_END_OF_LIST () \ {} -#define SELF_ANNOUNCE_ROUNDS 5 -void loadvm_free_handlers (MigrationIncomingState *mis); int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,@@ -1071,11 +1069,18 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params, QEMUTimerCB *cb);static inline -int64_t self_announce_delay (int round) +int64_t self_announce_delay (AnnounceTimer *timer) { -assert (round <SELF_ANNOUNCE_ROUNDS && round >0 ); -/* delay 50ms, 150ms, 250ms, ... */ -return 50 + (SELF_ANNOUNCE_ROUNDS - round -1 ) *100 ; +int64_t ret; + + ret = timer->params.initial +
Quoted 8 lines
include/migration/vmstate.h AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params, · line 1082
Quoted 6 lines
include/migration/vmstate.h +6
-0+ (timer->params.rounds - timer->round -1 ) * + timer->params.step; + +if (ret <0 || ret > timer->params.max) { + ret = timer->params.max; + }Can we move this check to
qemu_validate_announce_parameters()?
Not really. Consider a situation where you don't really want to wait for more the then say 5 seconds between announcements, but you want to increase the number of announcement attempts (since you are not sure how long it will take to plumb the whole network path). In this case, you will hit the max delay before hitting max rounds, and the code above makes sure that we don't exceed max delay.
I can update the names to make it clearer, if it will help.
Thanks
-vlad
Quoted 84 lines
Quoted 75 lines
include/migration/vmstate.h +1
-0+return ret; }void dump_vmstate_json_to_file (FILE *out_fp);include/sysemu/sysemu.h +1
-1@@ -85,7 +85,7 @@ bool qemu_validate_announce_parameters(AnnounceParameters *params, Error **errp);void qemu_set_announce_parameters (AnnounceParameters *announce_params,AnnounceParameters *params); -void qemu_announce_self (void ); +void qemu_announce_self (AnnounceParameters *params);/* Subcommands for QEMU_VM_COMMAND */ enum qemu_vm_cmd {migration/migration.c +1
-1@@ -345,7 +345,7 @@ static void process_incoming_migration_bh(void *opaque)* This must happen after all error conditions are dealt with and * we're sure the VM is going to be running on this host. */ -qemu_announce_self (); +qemu_announce_self (qemu_get_announce_params ());/* If global state section was not received or we are in running state, we need to obey autostart. Any other state is set with migration/savevm.c +13
-10@@ -212,21 +212,19 @@ static void qemu_announce_self_iter(NICState *nic, void *opaque)qemu_send_packet_raw (qemu_get_queue (nic), buf, len); } - static void qemu_announce_self_once(void *opaque) { -static int count =SELF_ANNOUNCE_ROUNDS ; -QEMUTimer *timer = *(QEMUTimer **)opaque; +AnnounceTimer *timer = (AnnounceTimer *)opaque;qemu_foreach_nic (qemu_announce_self_iter,NULL ); - if (--count) { -/* delay 50ms, 150ms, 250ms, ... */ -timer_mod (timer,qemu_clock_get_ms (QEMU_CLOCK_REALTIME ) + -self_announce_delay (count)); +if (--timer->round) { +timer_mod (timer->tm,qemu_clock_get_ms (timer->type) + +self_announce_delay (timer)); }else { -timer_del (timer ); -timer_free (timer); +timer_del (timer->tm); +timer_free (timer->tm); +g_free (timer); } } @@ -252,11 +250,13 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params, return timer; } -void qemu_announce_self(void) +void qemu_announce_self(AnnounceParameters *params) { -static QEMUTimer *timer; - timer =timer_new_ms (QEMU_CLOCK_REALTIME , qemu_announce_self_once, &timer); -qemu_announce_self_once (&timer); + AnnounceTimer *timer; + + timer =qemu_announce_timer_create (params,QEMU_CLOCK_REALTIME , + qemu_announce_self_once); +qemu_announce_self_once (timer); }/***********************************************************/ migration/savevm.c static void loadvm_postcopy_handle_run_bh(void *opaque) · line 1735
Quoted 6 lines
migration/savevm.c +1
-0@@ -1730,7 +1730,7 @@ static void loadvm_postcopy_handle_run_bh(void *opaque)*/ cpu_synchronize_all_post_init (); -qemu_announce_self (); +qemu_announce_self (qemu_get_announce_params ());/* Make sure all file formats flush their mutable metadata. * If we get an error here, just don't restart the VM yet. */ Reviewed-by Jason Wang <[email protected]>
Re: [Qemu-devel] [PATCH 01/12] migration: Introduce announce parameters
In reply to Jason WangQuoted 6 lines · Jason Wang
Quoted 4 lines · Vladislav Yasevich
Add parameters that control RARP/GARP announcement timeouts. The parameters structure is added to the QAPI and a qmp command is added to set/get the parameter data.
Quoted 8 lines
Quoted 3 lines
Based on work by "Dr. David Alan Gilbert" <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>I think it's better to explain e.g under which condition do we need to tweak such parameters.
Thanks
OK. I'll rip off what dgilbert wrote in his original series for the description.
Dave, if you have any text to add as to why migration might need to tweak this, I'd appreciate it.
Thanks
-vlad
Re: [Qemu-devel] [PATCH 01/12] migration: Introduce announce parameters
In reply to Vladislav YasevichQuoted 8 lines · Vladislav Yasevich
Add parameters that control RARP/GARP announcement timeouts. The parameters structure is added to the QAPI and a qmp command is added to set/get the parameter data.
Based on work by "Dr. David Alan Gilbert" <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>---
Just an interface review for now:
Quoted 5 lines
+++
b/qapi-schema.jsonqapi-schema.json +0
-0@@ -569,6 +569,90 @@ ## { 'command': 'query-events', 'returns': ['EventInfo'] }
qapi-schema.json line 581
Quoted 10 lines
qapi-schema.json +10
-0+ +## +# @AnnounceParameter: +# +# @AnnounceParameter enumeration +# +# @initial: Initial delay (in ms) before sending the first GARP/RARP +# announcement +# +# @max: Maximum delay (in ms) to between GARP/RARP announcemnt packets
s/announcemnt/announcement/
qapi-schema.json line 585
Quoted 4 lines
qapi-schema.json +4
-0+# +# @rounds: Number of self-announcement attempts +# +# @step: Delay increate (in ms) after each self-announcment attempt
s/increate/increase/
s/announcment/announcement/
qapi-schema.json line 590
Quoted 5 lines
qapi-schema.json +5
-0+# +# Since: 2.10 +## +{ 'enum' : 'AnnounceParameter', + 'data' : [ 'initial', 'max', 'rounds', 'step' ] }
Why are we creating an enum here? Without reading further, it looks like you plan on using the enum to delineate members of a union? But that feels like it will be overly complicated. A struct should be sufficient (each parameter being an optional member of the struct, where you can supply as many or as few on input, but all are reported on output).
qapi-schema.json line 595
Quoted 5 lines
qapi-schema.json +5
-0+ +## +# @AnnounceParameters: +# +# Optional members may be omited on input, but all values will be present
s/omited/omitted/
qapi-schema.json line 601
Quoted 6 lines
qapi-schema.json +6
-0+# on output. +# +# @initial: Initial delay (in ms) before sending the first GARP/RARP +# announcement +# +# @max: Maximum delay (in ms) to between GARP/RARP announcemnt packets
s/announcemnt/announcement/
qapi-schema.json line 585
Quoted 4 lines
qapi-schema.json +4
-0+# +# @rounds: Number of self-announcement attempts +# +# @step: Delay increate (in ms) after each self-announcment attempt
s/increate/increase/
s/announcment/announcement/
Quoted 39 lines
qapi-schema.json +39
-0+# +# Since: 2.10 +## + +{ 'struct': 'AnnounceParameters', + 'data': { '*initial': 'int', + '*max': 'int', + '*rounds': 'int', + '*step': 'int' } } + +## +# @announce-set-parameters: +# +# Set qemu announce parameters. +# +# Since: 2.10 +# +# Example: +# +# -> { "execute": "announce-set-parameters", +# "arguments": { "announce-rounds": 10 } } +# +## +{ 'command': 'announce-set-parameters', 'boxed': true, + 'data': 'AnnounceParameters' } + +## +# @query-announce-parameters: +# +# Returns information about the current announce parameters +# +# Returns: @AnnounceParameters +# +# Since: 2.10 +# +# Example: +# +# -> { "execute": "query-announce-parameters" } +# <- { "return": {
qapi-schema.json line 654
Quoted 10 lines
qapi-schema.json +10
-0+# "initial": 50, +# "max": 500, +# "rounds": 5, +# "step": 100 +# } +# } +# +## +{ 'command': 'query-announce-parameters', + 'returns': 'AnnounceParameters' }
Yep, I'm right. The enum is bogus. The struct is sufficient, so you don't need the enum.
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Re: [Qemu-devel] [PATCH 06/12] qmp: Expose qemu_announce_self as a qmp command
In reply to Vladislav YasevichQuoted 11 lines · Vladislav Yasevich
Add a qmp command that can trigger guest announcements.
Based on work of Germano Veit Michel <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>--- migration/savevm.c | 14 ++++++++++++++ qapi-schema.json | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+)
migration/savevm.c void qemu_announce_self(AnnounceParameters *params) · line 274
Quoted 7 lines
migration/savevm.c +7
-0+void qmp_announce_self (bool has_params,AnnounceParameters *params, +Error **errp) +{ +AnnounceParameters announce_params; + +memcpy (&announce_params,qemu_get_announce_params (), +sizeof (announce_params));
Shallow copies of a QAPI type happen to work when the type is all scalar (as AnnounceParameters currently is), but it's more robust to use QAPI_CLONE() or QAPI_CLONE_MEMBERS() so that any future non-scalar additions to the parameters type will be correctly copied without introducing memory leaks or double frees.
Even this might be better:
AnnounceParameters announce_params = { 0 }; qemu_set_announce_parameters(&announce_params, qemu_get_announce_params());
migration/savevm.c void qemu_announce_self(AnnounceParameters *params) · line 280
Quoted 6 lines
migration/savevm.c +6
-0+ +if (has_params) +qemu_set_announce_parameters (&announce_params, params); + +qemu_announce_self (&announce_params); +}
The QMP changes look okay. Do you have a testsuite covering the new QMP command somewhere in the series?
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Re: [Qemu-devel] [PATCH 01/12] migration: Introduce announce parameters
In reply to Eric BlakeQuoted 38 lines · Eric Blake
Quoted 8 lines · Vladislav Yasevich
Add parameters that control RARP/GARP announcement timeouts. The parameters structure is added to the QAPI and a qmp command is added to set/get the parameter data.
Based on work by "Dr. David Alan Gilbert" <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>---
Just an interface review for now:
Quoted 5 lines
+++
b/qapi-schema.jsonqapi-schema.json +0
-0@@ -569,6 +569,90 @@ ## { 'command': 'query-events', 'returns': ['EventInfo'] }qapi-schema.json line 581
Quoted 10 lines
qapi-schema.json +10
-0+ +## +# @AnnounceParameter: +# +# @AnnounceParameter enumeration +# +# @initial: Initial delay (in ms) before sending the first GARP/RARP +# announcement +# +# @max: Maximum delay (in ms) to between GARP/RARP announcemnt packetss/announcemnt/announcement/
qapi-schema.json line 585
Quoted 4 lines
qapi-schema.json +4
-0+# +# @rounds: Number of self-announcement attempts +# +# @step: Delay increate (in ms) after each self-announcment attempts/increate/increase/
s/announcment/announcement/
Quoted 12 lines
qapi-schema.json line 590
Quoted 5 lines
qapi-schema.json +5
-0+# +# Since: 2.10 +## +{ 'enum' : 'AnnounceParameter', + 'data' : [ 'initial', 'max', 'rounds', 'step' ] }Why are we creating an enum here? Without reading further, it looks like you plan on using the enum to delineate members of a union? But that feels like it will be overly complicated. A struct should be sufficient (each parameter being an optional member of the struct, where you can supply as many or as few on input, but all are reported on output).
I end up using them for the HMP interface. If it's better, I can move this definition to the HMP patch.
Thanks
-vlad
Re: [Qemu-devel] [PATCH 06/12] qmp: Expose qemu_announce_self as a qmp command
In reply to Eric BlakeQuoted 26 lines · Eric Blake
Quoted 11 lines · Vladislav Yasevich
Add a qmp command that can trigger guest announcements.
Based on work of Germano Veit Michel <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>--- migration/savevm.c | 14 ++++++++++++++ qapi-schema.json | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+)migration/savevm.c void qemu_announce_self(AnnounceParameters *params) · line 274
Quoted 7 lines
migration/savevm.c +7
-0+void qmp_announce_self (bool has_params,AnnounceParameters *params, +Error **errp) +{ +AnnounceParameters announce_params; + +memcpy (&announce_params,qemu_get_announce_params (), +sizeof (announce_params));Shallow copies of a QAPI type happen to work when the type is all scalar (as AnnounceParameters currently is), but it's more robust to use
QAPI_CLONE()orQAPI_CLONE_MEMBERS()so that any future non-scalar additions to the parameters type will be correctly copied without introducing memory leaks or double frees.
Quoted 4 lines
Even this might be better:
AnnounceParametersannounce_params= { 0 };qemu_set_announce_parameters(&announce_params, qemu_get_announce_params());
Ok.
Quoted 9 lines
migration/savevm.c void qemu_announce_self(AnnounceParameters *params) · line 280
Quoted 6 lines
migration/savevm.c +6
-0+ +if (has_params) +qemu_set_announce_parameters (&announce_params, params); + +qemu_announce_self (&announce_params); +}The QMP changes look okay. Do you have a testsuite covering the new QMP command somewhere in the series?
There is basic test in patch 12.
Thanks
-vlad
Re: [Qemu-devel] [PATCH 01/12] migration: Introduce announce parameters
In reply to Vladislav YasevichQuoted 7 lines · Vladislav Yasevich
Add parameters that control RARP/GARP announcement timeouts. The parameters structure is added to the QAPI and a qmp command is added to set/get the parameter data.
Based on work by "Dr. David Alan Gilbert" <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>
Hi
migration/savevm.c static struct mig_cmd_args { · line 80
Quoted 8 lines
migration/savevm.c +0
-0@@ -78,6 +78,104 @@ static struct mig_cmd_args { [MIG_CMD_MAX] = { .len = -1, .name = "MAX" }, };
Once that you are touching this, shouldn't it be better to be in net/<somewhere>?
They have nothing to do with migration really.
Quoted 27 lines
migration/savevm.c +27
-0+#define QEMU_ANNOUNCE_INITIAL 50 +#define QEMU_ANNOUNCE_MAX 550 +#define QEMU_ANNOUNCE_ROUNDS 5 +#define QEMU_ANNOUNCE_STEP 100 + +AnnounceParameters *qemu_get_announce_params (void ) +{ +static AnnounceParameters announce = { + .initial =QEMU_ANNOUNCE_INITIAL , + .max =QEMU_ANNOUNCE_MAX , + .rounds =QEMU_ANNOUNCE_ROUNDS , + .step =QEMU_ANNOUNCE_STEP , + }; + +return &announce; +} + +void qemu_fill_announce_parameters (AnnounceParameters **to, +AnnounceParameters *from) +{ +AnnounceParameters *params; + + params = *to =g_malloc0 (sizeof (*params)); + params->has_initial = true; + params->initial = from->initial; + params->has_max = true; + params->max = from->max;
migration/savevm.c static struct mig_cmd_args { · line 117
Quoted 10 lines
migration/savevm.c +10
-0+ params->has_rounds = true; + params->rounds = from->rounds; + params->has_step = true; + params->step = from->step; +} + +bool qemu_validate_announce_parameters (AnnounceParameters *params,Error **errp) +{ +if (params->has_initial && + (params->initial <1 || params->initial >100000 )) {
This is independent of this patch, but we really need a macro:
CHECK(field, mininum, maximum)
We repeat this left and right.
migration/savevm.c static struct mig_cmd_args { · line 169
Quoted 4 lines
migration/savevm.c +3
-0+void qemu_set_announce_parameters(AnnounceParameters *announce_params, + AnnounceParameters *params) +void qmp_announce_set_parameters(AnnounceParameters *params, Error **errp)
Really similar functions name. I assume by know that the 1st function is used somewhere else in the series.
Re: [Qemu-devel] [PATCH 02/12] migration: Introduce announcement timer
In reply to Vladislav YasevichQuoted 6 lines · Vladislav Yasevich
Introdec an annoucement timer structure and initialization to be used by for self-annoucement.
Based on the work by Germano Veit Michel <[email protected]>
Signed-off-by Vlad Yasevich <[email protected]>
Please, pretty please, create them in net/somewhere, or at least create
include/migration/net.h and migration/net.c
Except for that, code looks nice.
Re: [Qemu-devel] [PATCH 03/12] migration: Switch to using announcement timer
In reply to Vladislav Yasevichmigration/savevm.c static void qemu_announce_self_iter(NICState *nic, void *opaque) · line 217
Quoted 13 lines · Vladislav Yasevich
Switch
qemu_announce_selfand virtio annoucements to use the announcement timer framework. This makes sure that both timers use the same timeouts and number of annoucement attemptsBased on work by Dr. David Alan Gilbert <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>static void
qemu_announce_self_once(void *opaque){migration/savevm.c +1
-2-static int count =SELF_ANNOUNCE_ROUNDS ; -QEMUTimer *timer = *(QEMUTimer **)opaque; +AnnounceTimer *timer = (AnnounceTimer *)opaque;
Cast from void * is never needed.
Re: [Qemu-devel] [PATCH 06/12] qmp: Expose qemu_announce_self as a qmp command
In reply to Vladislav YasevichQuoted 20 lines · Vladislav Yasevich
Add a qmp command that can trigger guest announcements.
Based on work of Germano Veit Michel <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>--- migration/savevm.c | 14 ++++++++++++++ qapi-schema.json | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+)migration/savevm.c +2
-0@@ -265,6 +265,20 @@ void qemu_announce_self(AnnounceParameters *params)qemu_announce_self_once (timer); } +void qmp_announce_self (bool has_params,AnnounceParameters *params, +Error **errp)
migration/savevm.c void qemu_announce_self(AnnounceParameters *params) · line 279
Quoted 10 lines
migration/savevm.c +10
-0+{ +AnnounceParameters announce_params; + +memcpy (&announce_params,qemu_get_announce_params (), +sizeof (announce_params)); + +if (has_params) +qemu_set_announce_parameters (&announce_params, params); + +qemu_announce_self (&announce_params);
Are I missreading qemu_annouce_self()?
My reading is that it passes announce_params to a timer (i.e. async function), but here announce_params is a local variable here, no?
Re: [Qemu-devel] [PATCH 07/12] migration: Allow for a limited number of announce timers
In reply to Vladislav YasevichQuoted 8 lines · Vladislav Yasevich
We currently create a new announcement timer every time
qemu_announce_self()is called. Since this is now a qmp
command, this can lead to abuse. Limit the number of
timers that are created. Give QMP interface and migration process 1 timer each. This way, QMP can't abuse theannounce_selfmechanism.Signed-off-by Vladislav Yasevich <[email protected]>
Re: [Qemu-devel] [PATCH 08/12] announce_timer: Add ability to reset an existing
In reply to Vladislav YasevichQuoted 2 lines · Vladislav Yasevich
It is now potentially possible to issue annouce-self command in a tight loop. Instead of doing nother, we can reset the timeout pararameters,
nother?
migration/savevm.c static void qemu_announce_self_iter(NICState *nic, void *opaque) · line 238
Quoted 9 lines
static void
qemu_announce_self_once(void *opaque){ AnnounceTimer *timer = (AnnounceTimer *)opaque;migration/savevm.c +2
-1+qemu_mutex_lock (&timer->active_lock);qemu_foreach_nic (qemu_announce_self_iter,NULL ); -if (--timer->round) { +if (--timer->round ) {
extra space
Re: [Qemu-devel] [PATCH 09/12] hmp: add announce paraters info/set
In reply to Vladislav YasevichQuoted 3 lines · Vladislav Yasevich
Add HMP command to control and read annoucment parameters.
Signed-off-by Vladislav Yasevich <[email protected]>
hmp.c void hmp_info_snapshots(Monitor *mon, const QDict *qdict) · line 1510
Quoted 5 lines
+ cleanup:
hmp.c +4
-0+if (err) { +error_report_err (err); + } +}
My understanding is that this the "cool way" to spell this nowadays is:
hmp_handle_error(mon, &err);
Just in case you want to change it.
Re: [Qemu-devel] [PATCH 01/12] migration: Introduce announce parameters
In reply to Juan QuintelaQuoted 11 lines · Juan Quintela
Quoted 7 lines · Vladislav Yasevich
Add parameters that control RARP/GARP announcement timeouts. The parameters structure is added to the QAPI and a qmp command is added to set/get the parameter data.
Based on work by "Dr. David Alan Gilbert" <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>Hi
Quoted 13 lines
migration/savevm.c static struct mig_cmd_args { · line 80
Quoted 8 lines
migration/savevm.c +0
-0@@ -78,6 +78,104 @@ static struct mig_cmd_args { [MIG_CMD_MAX] = { .len = -1, .name = "MAX" }, };Once that you are touching this, shouldn't it be better to be in net/<somewhere>?
They have nothing to do with migration really.
Yeah, I considered this, but could really find a good slot for them. I can either put them into net.c directly or pull them out into their own little file.
Quoted 44 lines
Quoted 28 lines
migration/savevm.c +27
-0+#define QEMU_ANNOUNCE_INITIAL 50 +#define QEMU_ANNOUNCE_MAX 550 +#define QEMU_ANNOUNCE_ROUNDS 5 +#define QEMU_ANNOUNCE_STEP 100 + +AnnounceParameters *qemu_get_announce_params (void ) +{ +static AnnounceParameters announce = { + .initial =QEMU_ANNOUNCE_INITIAL , + .max =QEMU_ANNOUNCE_MAX , + .rounds =QEMU_ANNOUNCE_ROUNDS , + .step =QEMU_ANNOUNCE_STEP , + }; + +return &announce; +} + +void qemu_fill_announce_parameters (AnnounceParameters **to, +AnnounceParameters *from) +{ +AnnounceParameters *params; + + params = *to =g_malloc0 (sizeof (*params)); + params->has_initial = true; + params->initial = from->initial; + params->has_max = true; + params->max = from->max;migration/savevm.c static struct mig_cmd_args { · line 117
Quoted 10 lines
migration/savevm.c +10
-0+ params->has_rounds = true; + params->rounds = from->rounds; + params->has_step = true; + params->step = from->step; +} + +bool qemu_validate_announce_parameters (AnnounceParameters *params,Error **errp) +{ +if (params->has_initial && + (params->initial <1 || params->initial >100000 )) {This is independent of this patch, but we really need a macro:
CHECK(field, mininum, maximum)We repeat this left and right.
Quoted 8 lines
migration/savevm.c static struct mig_cmd_args { · line 169
Quoted 4 lines
migration/savevm.c +3
-0+void qemu_set_announce_parameters(AnnounceParameters *announce_params, + AnnounceParameters *params) +void qmp_announce_set_parameters(AnnounceParameters *params, Error **errp)Really similar functions name. I assume by know that the 1st function is used somewhere else in the series.
Yes, the first function is going to be used later.
Thanks
-vlad
Re: [Qemu-devel] [PATCH 03/12] migration: Switch to using announcement timer
In reply to Juan QuintelaQuoted 9 lines · Juan Quintela
Quoted 7 lines · Vladislav Yasevich
Switch
qemu_announce_selfand virtio annoucements to use the announcement timer framework. This makes sure that both timers use the same timeouts and number of annoucement attemptsBased on work by Dr. David Alan Gilbert <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>
Quoted 8 lines
migration/savevm.c static void qemu_announce_self_iter(NICState *nic, void *opaque) · line 217
Quoted 5 lines
static void
qemu_announce_self_once(void *opaque){migration/savevm.c +1
-2-static int count =SELF_ANNOUNCE_ROUNDS ; -QEMUTimer *timer = *(QEMUTimer **)opaque; +AnnounceTimer *timer = (AnnounceTimer *)opaque;Cast from void * is never needed.
OK
Thanks
-vlad
Re: [Qemu-devel] [PATCH 06/12] qmp: Expose qemu_announce_self as a qmp command
In reply to Juan QuintelaQuoted 19 lines · Juan Quintela
Quoted 18 lines · Vladislav Yasevich
Add a qmp command that can trigger guest announcements.
Based on work of Germano Veit Michel <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>--- migration/savevm.c | 14 ++++++++++++++ qapi-schema.json | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+)migration/savevm.c +0
-0@@ -265,6 +265,20 @@ void qemu_announce_self(AnnounceParameters *params)qemu_announce_self_once (timer); }
Quoted 17 lines
migration/savevm.c void qemu_announce_self(AnnounceParameters *params) · line 279
Quoted 12 lines
migration/savevm.c +12
-0+void qmp_announce_self (bool has_params,AnnounceParameters *params, +Error **errp) +{ +AnnounceParameters announce_params; + +memcpy (&announce_params,qemu_get_announce_params (), +sizeof (announce_params)); + +if (has_params) +qemu_set_announce_parameters (&announce_params, params); + +qemu_announce_self (&announce_params);Are I missreading
qemu_annouce_self()?
My reading is that it passesannounce_paramsto a timer (i.e. async function), but hereannounce_paramsis a local variable here, no?
The AnnounceTimer holds a copy since each timer may have it's own values.
Thanks
-vlad
Re: [Qemu-devel] [PATCH 09/12] hmp: add announce paraters info/set
In reply to Juan QuintelaQuoted 15 lines · Juan Quintela
Quoted 3 lines · Vladislav Yasevich
Add HMP command to control and read annoucment parameters.
Signed-off-by Vladislav Yasevich <[email protected]>Reviewed-by Juan Quintela <[email protected]>hmp.c void hmp_info_snapshots(Monitor *mon, const QDict *qdict) · line 1510
Quoted 5 lines
+ cleanup:
hmp.c +4
-0+if (err) { +error_report_err (err); + } +}
Quoted 6 lines
My understanding is that this the "cool way" to spell this nowadays is:
hmp_handle_error(mon, &err);Just in case you want to change it.
Thanks. I must have used an older function as base. I'll check it out.
-vlad
Re: [Qemu-devel] [PATCH 06/12] qmp: Expose qemu_announce_self as a qmp command
In reply to Vladislav YasevichQuoted 21 lines · Vladislav Yasevich
Add a qmp command that can trigger guest announcements.
Based on work of Germano Veit Michel <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>--- migration/savevm.c | 14 ++++++++++++++ qapi-schema.json | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+)migration/savevm.c +3
-0@@ -265,6 +265,20 @@ void qemu_announce_self(AnnounceParameters *params)qemu_announce_self_once (timer); } +void qmp_announce_self (bool has_params,AnnounceParameters *params, +Error **errp) +{
migration/savevm.c void qemu_announce_self(AnnounceParameters *params) · line 280
Quoted 10 lines
migration/savevm.c +10
-0+AnnounceParameters announce_params; + +memcpy (&announce_params,qemu_get_announce_params (), +sizeof (announce_params)); + +if (has_params) +qemu_set_announce_parameters (&announce_params, params); + +qemu_announce_self (&announce_params); +}
I'm not a huge fan of the idea of setting announce parameters in a global namespace, via a previously issued separate command.
I realize this is already done for the 'migrate' command, but there it has been the cause of a number of bugs in libvirt mgmt of QEMU. At least with migrate it makes sense for some parameters which need to be tuned 'on the fly' after migrate already started. That doesn't apply to this command though.
So I tend to think it'd be nicer to just make the parameters mandatory for this command, so it is self-contanied does and not rely on previously set (or potentially unknown/indeterminate) global state.
I'd also suggest that instad of adding an 'announce_set_parameters', the parameters for the automatic announce at end of migration should be set via the 'migrate_set_parameters' command.
Quoted 5 lines
qapi-schema.json +0
-0
qapi-schema.json line 662
Quoted 9 lines
qapi-schema.json +6
-0@@ -654,6 +654,25 @@ 'returns': 'AnnounceParameters' } ## +# @announce-self: +# +# Trigger generation of broadcast RARP frames to update network switches. +# This can be useful when network bonds fail-over the active slave. +# +# Arguments: None.
"None", but it has some arguments listed right below....
Quoted 20 lines
qapi-schema.json +13
-0+# +# Example: +# +# -> { "execute": "announce-self" +# "arguments": { "announce-rounds": 5 } } +# <- { "return": {} } +# +# Since: 2.10 +## +{ 'command': 'announce-self', + 'data' : {'*params': 'AnnounceParameters'} } + +## # @MigrationStats: # # Detailed migration status.Signature · 1 line
2.7.4
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Re: [Qemu-devel] [PATCH 06/12] qmp: Expose qemu_announce_self as a qmp command
In reply to Vlad YasevichQuoted 42 lines · Vlad Yasevich
Quoted 19 lines · Juan Quintela
Quoted 18 lines · Vladislav Yasevich
Add a qmp command that can trigger guest announcements.
Based on work of Germano Veit Michel <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>--- migration/savevm.c | 14 ++++++++++++++ qapi-schema.json | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+)migration/savevm.c +0
-0@@ -265,6 +265,20 @@ void qemu_announce_self(AnnounceParameters *params)qemu_announce_self_once (timer); }Quoted 17 lines
migration/savevm.c void qemu_announce_self(AnnounceParameters *params) · line 279
Quoted 12 lines
migration/savevm.c +12
-0+void qmp_announce_self (bool has_params,AnnounceParameters *params, +Error **errp) +{ +AnnounceParameters announce_params; + +memcpy (&announce_params,qemu_get_announce_params (), +sizeof (announce_params)); + +if (has_params) +qemu_set_announce_parameters (&announce_params, params); + +qemu_announce_self (&announce_params);Are I missreading
qemu_annouce_self()?
My reading is that it passesannounce_paramsto a timer (i.e. async function), but hereannounce_paramsis a local variable here, no?The AnnounceTimer holds a copy since each timer may have it's own values.
Quoted 6 lines
AnnounceTimer *qemu_announce_timer_new(AnnounceParameters *params,
QEMUClockType type){ AnnounceTimer *timer = g_new(AnnounceTimer, 1); timer->params = *params;
I have to remomember that C has learn how to copy structures long ago.
<repeat myself one hundred times>
I was missing the "*" on my previous reading, sorry for the noise.
Quoted 5 lines
timer->round = params->rounds; timer->type = type;return timer; }
Re: [Qemu-devel] [PATCH 06/12] qmp: Expose qemu_announce_self as a qmp command
Quoted 48 lines · Juan Quintela
Quoted 47 lines · Vlad Yasevich
Quoted 19 lines · Juan Quintela
Quoted 18 lines · Vladislav Yasevich
Add a qmp command that can trigger guest announcements.
Based on work of Germano Veit Michel <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>--- migration/savevm.c | 14 ++++++++++++++ qapi-schema.json | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+)migration/savevm.c +0
-0@@ -265,6 +265,20 @@ void qemu_announce_self(AnnounceParameters *params)qemu_announce_self_once (timer); }Quoted 17 lines
migration/savevm.c void qemu_announce_self(AnnounceParameters *params) · line 279
Quoted 12 lines
migration/savevm.c +12
-0+void qmp_announce_self (bool has_params,AnnounceParameters *params, +Error **errp) +{ +AnnounceParameters announce_params; + +memcpy (&announce_params,qemu_get_announce_params (), +sizeof (announce_params)); + +if (has_params) +qemu_set_announce_parameters (&announce_params, params); + +qemu_announce_self (&announce_params);Are I missreading
qemu_annouce_self()?
My reading is that it passesannounce_paramsto a timer (i.e. async function), but hereannounce_paramsis a local variable here, no?The AnnounceTimer holds a copy since each timer may have it's own values.
AnnounceTimer *qemu_announce_timer_new(AnnounceParameters *params,
QEMUClockType type){ AnnounceTimer *timer = g_new(AnnounceTimer, 1);
Quoted 7 lines
Quoted 1 line
timer->params = *params;I have to remomember that C has learn how to copy structures long ago.
<repeat myself one hundred times>
I was missing the "*" on my previous reading, sorry for the noise.
that actually changed, since as Eric Pointed out, shallow copies shouldn't be used. In the v2 code, this uses qemu_set_announce_paramters(), but the copy essentially remains.
-vlad
Quoted 8 lines
Quoted 6 lines
timer->round = params->rounds; timer->type = type;return timer; }
Re: [Qemu-devel] [PATCH 06/12] qmp: Expose qemu_announce_self as a qmp command
In reply to Daniel P. BerrangeQuoted 42 lines · Daniel P. Berrange
Quoted 21 lines · Vladislav Yasevich
Add a qmp command that can trigger guest announcements.
Based on work of Germano Veit Michel <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>--- migration/savevm.c | 14 ++++++++++++++ qapi-schema.json | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+)migration/savevm.c +3
-0@@ -265,6 +265,20 @@ void qemu_announce_self(AnnounceParameters *params)qemu_announce_self_once (timer); } +void qmp_announce_self (bool has_params,AnnounceParameters *params, +Error **errp) +{migration/savevm.c void qemu_announce_self(AnnounceParameters *params) · line 280
Quoted 10 lines
migration/savevm.c +10
-0+AnnounceParameters announce_params; + +memcpy (&announce_params,qemu_get_announce_params (), +sizeof (announce_params)); + +if (has_params) +qemu_set_announce_parameters (&announce_params, params); + +qemu_announce_self (&announce_params); +}I'm not a huge fan of the idea of setting announce parameters in a global namespace, via a previously issued separate command.
I realize this is already done for the 'migrate' command, but there it has been the cause of a number of bugs in libvirt mgmt of QEMU. At least with migrate it makes sense for some parameters which need to be tuned 'on the fly' after migrate already started. That doesn't apply to this command though.
Quoted 4 lines
So I tend to think it'd be nicer to just make the parameters mandatory for this command, so it is self-contanied does and not rely on previously set (or potentially unknown/indeterminate) global state.
The reason I didn't do this is that I didn't want to require the user to know or even think about the timeout values. I did want to provide an option though for those who may want to tweak things. In most circumstances, the timeout values would never really be touched and we'll just use the qemu defaults. in rare circumstances, values might need to be changed during migration. Here, I can definitely see the need to give migration it's own values.
Quoted 3 lines
I'd also suggest that instad of adding an '
announce_set_parameters', the parameters for the automatic announce at end of migration should be set via the 'migrate_set_parameters' command.
I can do that.
Quoted 8 lines
Quoted 8 lines
qapi-schema.json +0
-0@@ -654,6 +654,25 @@ 'returns': 'AnnounceParameters' }
Quoted 9 lines
qapi-schema.json line 662
Quoted 7 lines
qapi-schema.json +6
-0## +# @announce-self: +# +# Trigger generation of broadcast RARP frames to update network switches. +# This can be useful when network bonds fail-over the active slave. +# +# Arguments: None."None", but it has some arguments listed right below....
will fix
Thanks
-vlad
Quoted 25 lines
Quoted 21 lines
qapi-schema.json +13
-0+# +# Example: +# +# -> { "execute": "announce-self" +# "arguments": { "announce-rounds": 5 } } +# <- { "return": {} } +# +# Since: 2.10 +## +{ 'command': 'announce-self', + 'data' : {'*params': 'AnnounceParameters'} } + +## # @MigrationStats: # # Detailed migration status.Signature · 1 line
2.7.4Regards,
Daniel
Re: [Qemu-devel] [PATCH 01/12] migration: Introduce announce parameters
In reply to Vlad YasevichQuoted 13 lines · * Vlad Yasevich ([email protected]) wrote:
Quoted 12 lines · Jason Wang
Quoted 7 lines · Vladislav Yasevich
Add parameters that control RARP/GARP announcement timeouts. The parameters structure is added to the QAPI and a qmp command is added to set/get the parameter data.
Based on work by "Dr. David Alan Gilbert" <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>I think it's better to explain e.g under which condition do we need to tweak such parameters.
Quoted 7 lines
Quoted 2 lines
Thanks
OK. I'll rip off what dgilbert wrote in his original series for the description.
Dave, if you have any text to add as to why migration might need to tweak this, I'd appreciate it.
Pretty much what I originally said; that the existing values are arbitrary and fixed, and for systems with complex/sluggish network reconfiguration systems they can be too slow.
Dave
Quoted 2 lines
Thanks
-vlad
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH 01/12] migration: Introduce announce parameters
In reply to Vladislav YasevichQuoted 7 lines · * Vladislav Yasevich ([email protected]) wrote:
Add parameters that control RARP/GARP announcement timeouts. The parameters structure is added to the QAPI and a qmp command is added to set/get the parameter data.
Based on work by "Dr. David Alan Gilbert" <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>
Thanks; this is pretty much duplicating the migrate-parameter code; that's OK but I wonder if there's an easier/better way.
If you made a global gom object with these values as properties, then they could be set with either -global or with 'qom-set'
Would that work/be simpler?
You wouldn't need to add any new commands.
(Some typo spots below)
Dave
Quoted 145 lines
--- include/sysemu/sysemu.h | 7 ++++ migration/savevm.c | 98 +++++++++++++++++++++++++++++++++++++++++++++++++ qapi-schema.json | 84 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 189 insertions(+)include/sysemu/sysemu.h +7
-0@@ -78,6 +78,13 @@ void qemu_remove_machine_init_done_notifier(Notifier *notify);int save_vmstate (const char *name,Error **errp);int load_vmstate (const char *name,Error **errp); +AnnounceParameters *qemu_get_announce_params (void ); +void qemu_fill_announce_parameters (AnnounceParameters **to, +AnnounceParameters *from); +bool qemu_validate_announce_parameters (AnnounceParameters *params, +Error **errp); +void qemu_set_announce_parameters (AnnounceParameters *announce_params, +AnnounceParameters *params);void qemu_announce_self (void );/* Subcommands for QEMU_VM_COMMAND */ migration/savevm.c +98
-0@@ -78,6 +78,104 @@ static struct mig_cmd_args { [MIG_CMD_MAX] = { .len = -1, .name = "MAX" }, }; +#define QEMU_ANNOUNCE_INITIAL 50 +#define QEMU_ANNOUNCE_MAX 550 +#define QEMU_ANNOUNCE_ROUNDS 5 +#define QEMU_ANNOUNCE_STEP 100 + +AnnounceParameters *qemu_get_announce_params (void ) +{ +static AnnounceParameters announce = { + .initial =QEMU_ANNOUNCE_INITIAL , + .max =QEMU_ANNOUNCE_MAX , + .rounds =QEMU_ANNOUNCE_ROUNDS , + .step =QEMU_ANNOUNCE_STEP , + }; + +return &announce; +} + +void qemu_fill_announce_parameters (AnnounceParameters **to, +AnnounceParameters *from) +{ +AnnounceParameters *params; + + params = *to =g_malloc0 (sizeof (*params)); + params->has_initial = true; + params->initial = from->initial; + params->has_max = true; + params->max = from->max; + params->has_rounds = true; + params->rounds = from->rounds; + params->has_step = true; + params->step = from->step; +} + +bool qemu_validate_announce_parameters (AnnounceParameters *params,Error **errp) +{ +if (params->has_initial && + (params->initial <1 || params->initial >100000 )) { +error_setg (errp,QERR_INVALID_PARAMETER_VALUE ,"initial" , +"is invalid, it should be in the range of 1 to 100000 ms" ); +return false; + } +if (params->has_max && + (params->max <1 || params->max >100000 )) { +error_setg (errp,QERR_INVALID_PARAMETER_VALUE ,"max" , +"is invalid, it should be in the range of 1 to 100000 ms" ); +return false; + } +if (params->has_rounds && + (params->rounds <1 || params->rounds >1000 )) { +error_setg (errp,QERR_INVALID_PARAMETER_VALUE ,"rounds" , +"is invalid, it should be in the range of 1 to 1000" ); +return false; + } +if (params->has_step && + (params->step <0 || params->step >10000 )) { +error_setg (errp,QERR_INVALID_PARAMETER_VALUE ,"step" , +"is invalid, it should be in the range of 1 to 10000 ms" ); +return false; + } + +return true; +} + +void qemu_set_announce_parameters (AnnounceParameters *announce_params, +AnnounceParameters *params) +{ +if (params->has_initial) { + announce_params->initial = params->initial; + } +if (params->has_max) { + announce_params->max = params->max; + } +if (params->has_rounds) { + announce_params->rounds = params->rounds; + } +if (params->has_step) { + announce_params->step = params->step; + } +} + +AnnounceParameters *qmp_query_announce_parameters (Error **errp) +{ +AnnounceParameters *params =NULL ; + +qemu_fill_announce_parameters (¶ms,qemu_get_announce_params ()); +return params; +} + +void qmp_announce_set_parameters (AnnounceParameters *params,Error **errp) +{ +AnnounceParameters *current =qemu_get_announce_params (); + +if (!qemu_validate_announce_parameters (params, errp)) +return ; + +qemu_set_announce_parameters (current, params); +} +static int announce_self_create (uint8_t *buf,uint8_t *mac_addr) {qapi-schema.json +4
-0@@ -569,6 +569,90 @@ ## { 'command': 'query-events', 'returns': ['EventInfo'] } + +## +# @AnnounceParameter: +#
qapi-schema.json line 585
Quoted 10 lines
qapi-schema.json +10
-0+# @AnnounceParameter enumeration +# +# @initial: Initial delay (in ms) before sending the first GARP/RARP +# announcement +# +# @max: Maximum delay (in ms) to between GARP/RARP announcemnt packets +# +# @rounds: Number of self-announcement attempts +# +# @step: Delay increate (in ms) after each self-announcment attempt
^-s ^e
qapi-schema.json line 595
Quoted 10 lines
qapi-schema.json +10
-0+# +# Since: 2.10 +## +{ 'enum' : 'AnnounceParameter', + 'data' : [ 'initial', 'max', 'rounds', 'step' ] } + +## +# @AnnounceParameters: +# +# Optional members may be omited on input, but all values will be present
^t
Quoted 66 lines
qapi-schema.json +60
-0+# on output. +# +# @initial: Initial delay (in ms) before sending the first GARP/RARP +# announcement +# +# @max: Maximum delay (in ms) to between GARP/RARP announcemnt packets +# +# @rounds: Number of self-announcement attempts +# +# @step: Delay increate (in ms) after each self-announcment attempt +# +# Since: 2.10 +## + +{ 'struct': 'AnnounceParameters', + 'data': { '*initial': 'int', + '*max': 'int', + '*rounds': 'int', + '*step': 'int' } } + +## +# @announce-set-parameters: +# +# Set qemu announce parameters. +# +# Since: 2.10 +# +# Example: +# +# -> { "execute": "announce-set-parameters", +# "arguments": { "announce-rounds": 10 } } +# +## +{ 'command': 'announce-set-parameters', 'boxed': true, + 'data': 'AnnounceParameters' } + +## +# @query-announce-parameters: +# +# Returns information about the current announce parameters +# +# Returns: @AnnounceParameters +# +# Since: 2.10 +# +# Example: +# +# -> { "execute": "query-announce-parameters" } +# <- { "return": { +# "initial": 50, +# "max": 500, +# "rounds": 5, +# "step": 100 +# } +# } +# +## +{ 'command': 'query-announce-parameters', + 'returns': 'AnnounceParameters' } + ## # @MigrationStats: #Signature · 1 line
2.7.4
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH 03/12] migration: Switch to using announcement timer
In reply to Vladislav YasevichQuoted 63 lines · * Vladislav Yasevich ([email protected]) wrote:
Switch
qemu_announce_selfand virtio annoucements to use the announcement timer framework. This makes sure that both timers use the same timeouts and number of annoucement attemptsBased on work by Dr. David Alan Gilbert <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>--- hw/net/virtio-net.c | 28 ++++++++++++++++------------ include/hw/virtio/virtio-net.h | 3 +-- include/migration/vmstate.h | 17 +++++++++++------ include/sysemu/sysemu.h | 2 +- migration/migration.c | 2 +- migration/savevm.c | 28 ++++++++++++++-------------- 6 files changed, 44 insertions(+), 36 deletions(-)hw/net/virtio-net.c +7
-6@@ -25,6 +25,7 @@#include "qapi/qmp/qjson.h" #include "qapi-event.h" #include "hw/virtio/virtio-access.h" +#include "migration/migration.h" #define VIRTIO_NET_VM_VERSION 11@@ -115,7 +116,7 @@ static void virtio_net_announce_timer(void *opaque)VirtIONet *n = opaque;VirtIODevice *vdev =VIRTIO_DEVICE (n); - n->announce_counter--; + n->announce_timer->round--; n->status |=VIRTIO_NET_S_ANNOUNCE ;virtio_notify_config (vdev); }@@ -427,8 +428,8 @@ static void virtio_net_reset(VirtIODevice *vdev) n->nobcast =0 ;/* multiqueue is disabled by default */ n->curr_queues =1 ; -timer_del (n->announce_timer); - n->announce_counter =0 ; +timer_del (n->announce_timer->tm); + n->announce_timer->round =0 ; n->status &= ~VIRTIO_NET_S_ANNOUNCE ;/* Flush any MAC and VLAN filter table state */ @@ -872,10 +873,10 @@ static int virtio_net_handle_announce(VirtIONet *n, uint8_t cmd,if (cmd ==VIRTIO_NET_CTRL_ANNOUNCE_ACK && n->status &VIRTIO_NET_S_ANNOUNCE ) { n->status &= ~VIRTIO_NET_S_ANNOUNCE ; -if (n->announce_counter) { -timer_mod (n->announce_timer, +if (n->announce_timer->round) { +timer_mod (n->announce_timer->tm,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL ) + -self_announce_delay (n->announce_counter)); +self_announce_delay (n->announce_timer)); }return VIRTIO_NET_OK ; }else {
hw/net/virtio-net.c static int virtio_net_post_load_device(void *opaque, int version_id) · line 1620
Quoted 7 lines
hw/net/virtio-net.c +2
-2@@ -1615,8 +1616,8 @@ static int virtio_net_post_load_device(void *opaque, int version_id)if (virtio_vdev_has_feature (vdev,VIRTIO_NET_F_GUEST_ANNOUNCE ) &&virtio_vdev_has_feature (vdev,VIRTIO_NET_F_CTRL_VQ )) { - n->announce_counter =SELF_ANNOUNCE_ROUNDS ; -timer_mod (n->announce_timer,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL )); + n->announce_timer->round = n->announce_timer->params.rounds; +timer_mod (n->announce_timer->tm,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL ));
Do you think it's worth having a
qemu_announce_timer_init(AnnounceTimer *, QEMU_CLOCK_*)
that would initialise the round and any other values and do the initial timer_mod ?
Quoted 17 lines
hw/net/virtio-net.c +4
-2}return 0 ;@@ -1938,8 +1939,10 @@ static void virtio_net_device_realize(DeviceState *dev, Error **errp)qemu_macaddr_default_if_unset (&n->nic_conf.macaddr);memcpy (&n->mac[0 ], &n->nic_conf.macaddr,sizeof (n->mac)); n->status =VIRTIO_NET_S_LINK_UP ; - n->announce_timer =timer_new_ms (QEMU_CLOCK_VIRTUAL , - virtio_net_announce_timer, n); + n->announce_timer =qemu_announce_timer_new (qemu_get_announce_params (), +QEMU_CLOCK_VIRTUAL ); + n->announce_timer->tm =timer_new_ms (QEMU_CLOCK_VIRTUAL , + virtio_net_announce_timer, n);if (n->netclient_type) {/*
hw/net/virtio-net.c static void virtio_net_device_unrealize(DeviceState *dev, Error **errp) · line 2009
Quoted 8 lines
hw/net/virtio-net.c +3
-2@@ -2001,8 +2004,9 @@ static void virtio_net_device_unrealize(DeviceState *dev, Error **errp)virtio_net_del_queue (n, i); } -timer_del (n->announce_timer); -timer_free (n->announce_timer); +timer_del (n->announce_timer->tm); +timer_free (n->announce_timer->tm); +g_free (n->announce_timer);
Hmm, why is this all safe - I guess this is in the BQL?
Quoted 41 lines
hw/net/virtio-net.c +0
-0g_free (n->vqs);qemu_del_nic (n->nic);virtio_cleanup (vdev);include/hw/virtio/virtio-net.h +1
-2@@ -94,8 +94,7 @@ typedef struct VirtIONet {char *netclient_name;char *netclient_type;uint64_t curr_guest_offloads; -QEMUTimer *announce_timer; -int announce_counter; +AnnounceTimer *announce_timer;bool needs_vnet_hdr_swap; } VirtIONet;include/migration/vmstate.h +2
-6@@ -1022,8 +1022,6 @@ extern const VMStateInfo vmstate_info_qtailq;#define VMSTATE_END_OF_LIST () \ {} -#define SELF_ANNOUNCE_ROUNDS 5 -void loadvm_free_handlers (MigrationIncomingState *mis); int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,@@ -1071,11 +1069,18 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params, QEMUTimerCB *cb);static inline -int64_t self_announce_delay (int round) +int64_t self_announce_delay (AnnounceTimer *timer) { -assert (round <SELF_ANNOUNCE_ROUNDS && round >0 ); -/* delay 50ms, 150ms, 250ms, ... */ -return 50 + (SELF_ANNOUNCE_ROUNDS - round -1 ) *100 ; +int64_t ret;
include/migration/vmstate.h AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params, · line 1084
Quoted 10 lines
include/migration/vmstate.h +9
-0+ + ret = timer->params.initial + + (timer->params.rounds - timer->round -1 ) * + timer->params.step; + +if (ret <0 || ret > timer->params.max) { + ret = timer->params.max; + } +return ret; }
This feels like it should be with the rest of your code somewhere?
Quoted 47 lines
include/migration/vmstate.h +0
-0void dump_vmstate_json_to_file (FILE *out_fp);include/sysemu/sysemu.h +1
-1@@ -85,7 +85,7 @@ bool qemu_validate_announce_parameters(AnnounceParameters *params, Error **errp);void qemu_set_announce_parameters (AnnounceParameters *announce_params,AnnounceParameters *params); -void qemu_announce_self (void ); +void qemu_announce_self (AnnounceParameters *params);/* Subcommands for QEMU_VM_COMMAND */ enum qemu_vm_cmd {migration/migration.c +1
-1@@ -345,7 +345,7 @@ static void process_incoming_migration_bh(void *opaque)* This must happen after all error conditions are dealt with and * we're sure the VM is going to be running on this host. */ -qemu_announce_self (); +qemu_announce_self (qemu_get_announce_params ());/* If global state section was not received or we are in running state, we need to obey autostart. Any other state is set with migration/savevm.c +1
-6@@ -212,21 +212,19 @@ static void qemu_announce_self_iter(NICState *nic, void *opaque)qemu_send_packet_raw (qemu_get_queue (nic), buf, len); } -static void qemu_announce_self_once (void *opaque) { -static int count =SELF_ANNOUNCE_ROUNDS ; -QEMUTimer *timer = *(QEMUTimer **)opaque; +AnnounceTimer *timer = (AnnounceTimer *)opaque;qemu_foreach_nic (qemu_announce_self_iter,NULL ); -if (--count) { -/* delay 50ms, 150ms, 250ms, ... */ - timer_mod(timer, qemu_clock_get_ms(QEMU_CLOCK_REALTIME) +
migration/savevm.c static void qemu_announce_self_iter(NICState *nic, void *opaque) · line 227
Quoted 10 lines
migration/savevm.c +6
-3- self_announce_delay(count)); +if (--timer->round) { +timer_mod (timer->tm,qemu_clock_get_ms (timer->type) + +self_announce_delay (timer)); }else { -timer_del (timer); -timer_free (timer); +timer_del (timer->tm); +timer_free (timer->tm); +g_free (timer);
That's kind of odd in that it doesn't cause the thing the opaque pointed to, to be zero'd, so problem if someone free'd it in an exit path? But probably OK in this case.
Dave
Quoted 33 lines
migration/savevm.c +7
-5} }@@ -252,11 +250,13 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params,return timer; } -void qemu_announce_self (void ) +void qemu_announce_self (AnnounceParameters *params) { -static QEMUTimer *timer; - timer =timer_new_ms (QEMU_CLOCK_REALTIME , qemu_announce_self_once, &timer); -qemu_announce_self_once (&timer); +AnnounceTimer *timer; + + timer =qemu_announce_timer_create (params,QEMU_CLOCK_REALTIME , + qemu_announce_self_once); +qemu_announce_self_once (timer); }/***********************************************************/ @@ -1730,7 +1730,7 @@ static void loadvm_postcopy_handle_run_bh(void *opaque)*/ cpu_synchronize_all_post_init (); -qemu_announce_self (); +qemu_announce_self (qemu_get_announce_params ());/* Make sure all file formats flush their mutable metadata. * If we get an error here, just don't restart the VM yet. */ Signature · 1 line
2.7.4
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH 07/12] migration: Allow for a limited number of announce timers
In reply to Vladislav YasevichQuoted 100 lines · * Vladislav Yasevich ([email protected]) wrote:
We currently create a new announcement timer every time
qemu_announce_self()is called. Since this is now a qmp
command, this can lead to abuse. Limit the number of
timers that are created. Give QMP interface and migration process 1 timer each. This way, QMP can't abuse theannounce_selfmechanism.Signed-off-by Vladislav Yasevich <[email protected]>--- include/migration/vmstate.h | 1 + include/sysemu/sysemu.h | 9 ++++++++- migration/migration.c | 2 +- migration/savevm.c | 24 +++++++++++++++++++----- 4 files changed, 29 insertions(+), 7 deletions(-)include/migration/vmstate.h +1
-0@@ -1057,6 +1057,7 @@ void vmstate_register_ram_global(struct MemoryRegion *memory); typedef struct AnnounceTimer { QEMUTimer *tm; + struct AnnounceTimer **entry; AnnounceParameters params; QEMUClockType type; int round;include/sysemu/sysemu.h +8
-1@@ -78,14 +78,21 @@ void qemu_remove_machine_init_done_notifier(Notifier *notify);int save_vmstate (const char *name,Error **errp);int load_vmstate (const char *name,Error **errp); +typedef enum AnnounceType { +QEMU_ANNOUNCE_MIGRATION , +QEMU_ANNOUNCE_USER , +QEMU_ANNOUNCE__MAX , +}AnnounceType ; +AnnounceParameters *qemu_get_announce_params (void );void qemu_fill_announce_parameters (AnnounceParameters **to,AnnounceParameters *from); +bool qemu_validate_announce_parameters (AnnounceParameters *params,Error **errp);void qemu_set_announce_parameters (AnnounceParameters *announce_params,AnnounceParameters *params); -void qemu_announce_self (AnnounceParameters *params); +void qemu_announce_self (AnnounceParameters *params,AnnounceType type);/* Subcommands for QEMU_VM_COMMAND */ enum qemu_vm_cmd {migration/migration.c +1
-1@@ -345,7 +345,7 @@ static void process_incoming_migration_bh(void *opaque)* This must happen after all error conditions are dealt with and * we're sure the VM is going to be running on this host. */ -qemu_announce_self (qemu_get_announce_params ()); +qemu_announce_self (qemu_get_announce_params (),QEMU_ANNOUNCE_MIGRATION );/* If global state section was not received or we are in running state, we need to obey autostart. Any other state is set with migration/savevm.c +5
-3@@ -218,6 +218,8 @@ static void qemu_announce_self_iter(NICState *nic, void *opaque) } } +AnnounceTimer *announce_timers[QEMU_ANNOUNCE__MAX ]; +static void qemu_announce_self_once (void *opaque) {AnnounceTimer *timer = (AnnounceTimer *)opaque;@@ -228,6 +230,7 @@ static void qemu_announce_self_once(void *opaque)timer_mod (timer->tm,qemu_clock_get_ms (timer->type) +self_announce_delay (timer)); }else { + *(timer->entry) =NULL ;timer_del (timer->tm);timer_free (timer->tm);g_free (timer);@@ -256,12 +259,23 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params,return timer; } -void qemu_announce_self (AnnounceParameters *params) +void qemu_announce_self (AnnounceParameters *params,AnnounceType type) {AnnounceTimer *timer; - timer =qemu_announce_timer_create (params,QEMU_CLOCK_REALTIME , - qemu_announce_self_once); + timer = announce_timers[type];
migration/savevm.c AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params, · line 276
Quoted 10 lines
migration/savevm.c +10
-0+if (!timer) { + timer =qemu_announce_timer_create (params,QEMU_CLOCK_REALTIME , + qemu_announce_self_once); + announce_timers[type] = timer; + timer->entry = &announce_timers[type]; + }else { +/* For now, don't do anything. If we want to reset the timer, +* we'll need to add locking to each announce timer to prevent +* races between timeout handling and a reset. +*/
I worry that this is racy anyway; if you issue a command and it doesn't start because it's still doing the last one and you don't get any warning of that it's difficult (as in my comment on the 12th).
Is this really racy, isn't this in the big lock ? Hmm I guess the qmp triggered one is, this probably isn't.
Dave
Quoted 26 lines
migration/savevm.c +4
-2+return ; + }qemu_announce_self_once (timer); }@@ -276,7 +290,7 @@ void qmp_announce_self(bool has_params, AnnounceParameters *params,if (has_params)qemu_set_announce_parameters (&announce_params, params); -qemu_announce_self (&announce_params); +qemu_announce_self (&announce_params,QEMU_ANNOUNCE_USER ); }/***********************************************************/ @@ -1750,7 +1764,7 @@ static void loadvm_postcopy_handle_run_bh(void *opaque)*/ cpu_synchronize_all_post_init (); -qemu_announce_self (qemu_get_announce_params ()); +qemu_announce_self (qemu_get_announce_params (),QEMU_ANNOUNCE_MIGRATION );/* Make sure all file formats flush their mutable metadata. * If we get an error here, just don't restart the VM yet. */ Signature · 1 line
2.7.4
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH 03/12] migration: Switch to using announcement timer
In reply to Dr. David Alan GilbertQuoted 65 lines · Dr. David Alan Gilbert
Quoted 64 lines · * Vladislav Yasevich ([email protected]) wrote:
Switch
qemu_announce_selfand virtio annoucements to use the announcement timer framework. This makes sure that both timers use the same timeouts and number of annoucement attemptsBased on work by Dr. David Alan Gilbert <[email protected]>
Signed-off-by Vladislav Yasevich <[email protected]>--- hw/net/virtio-net.c | 28 ++++++++++++++++------------ include/hw/virtio/virtio-net.h | 3 +-- include/migration/vmstate.h | 17 +++++++++++------ include/sysemu/sysemu.h | 2 +- migration/migration.c | 2 +- migration/savevm.c | 28 ++++++++++++++-------------- 6 files changed, 44 insertions(+), 36 deletions(-)hw/net/virtio-net.c +7
-6@@ -25,6 +25,7 @@#include "qapi/qmp/qjson.h" #include "qapi-event.h" #include "hw/virtio/virtio-access.h" +#include "migration/migration.h" #define VIRTIO_NET_VM_VERSION 11@@ -115,7 +116,7 @@ static void virtio_net_announce_timer(void *opaque)VirtIONet *n = opaque;VirtIODevice *vdev =VIRTIO_DEVICE (n); - n->announce_counter--; + n->announce_timer->round--; n->status |=VIRTIO_NET_S_ANNOUNCE ;virtio_notify_config (vdev); }@@ -427,8 +428,8 @@ static void virtio_net_reset(VirtIODevice *vdev) n->nobcast =0 ;/* multiqueue is disabled by default */ n->curr_queues =1 ; -timer_del (n->announce_timer); - n->announce_counter =0 ; +timer_del (n->announce_timer->tm); + n->announce_timer->round =0 ; n->status &= ~VIRTIO_NET_S_ANNOUNCE ;/* Flush any MAC and VLAN filter table state */ @@ -872,10 +873,10 @@ static int virtio_net_handle_announce(VirtIONet *n, uint8_t cmd,if (cmd ==VIRTIO_NET_CTRL_ANNOUNCE_ACK && n->status &VIRTIO_NET_S_ANNOUNCE ) { n->status &= ~VIRTIO_NET_S_ANNOUNCE ; -if (n->announce_counter) { -timer_mod (n->announce_timer, +if (n->announce_timer->round) { +timer_mod (n->announce_timer->tm,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL ) + -self_announce_delay (n->announce_counter)); +self_announce_delay (n->announce_timer)); }return VIRTIO_NET_OK ; }else {@@ -1615,8 +1616,8 @@ static int virtio_net_post_load_device(void *opaque, int version_id)
Quoted 11 lines
hw/net/virtio-net.c static int virtio_net_post_load_device(void *opaque, int version_id) · line 1620
Quoted 6 lines
hw/net/virtio-net.c +2
-2if (virtio_vdev_has_feature (vdev,VIRTIO_NET_F_GUEST_ANNOUNCE ) &&virtio_vdev_has_feature (vdev,VIRTIO_NET_F_CTRL_VQ )) { - n->announce_counter =SELF_ANNOUNCE_ROUNDS ; -timer_mod (n->announce_timer,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL )); + n->announce_timer->round = n->announce_timer->params.rounds; +timer_mod (n->announce_timer->tm,qemu_clock_get_ms (QEMU_CLOCK_VIRTUAL ));Do you think it's worth having a
qemu_announce_timer_init(AnnounceTimer *, QEMU_CLOCK_*)
that would initialise the round and any other values and do the initialtimer_mod?
I had that initially, but ended up with just 1 user (virtio). So removed.
I think I might put it back. It's really a announce_timer_start() type thing. May be it'll convert both places to use that api to make it cleaner.
Quoted 21 lines
Quoted 21 lines
hw/net/virtio-net.c +4
-2}return 0 ;@@ -1938,8 +1939,10 @@ static void virtio_net_device_realize(DeviceState *dev, Error **errp)qemu_macaddr_default_if_unset (&n->nic_conf.macaddr);memcpy (&n->mac[0 ], &n->nic_conf.macaddr,sizeof (n->mac)); n->status =VIRTIO_NET_S_LINK_UP ; - n->announce_timer =timer_new_ms (QEMU_CLOCK_VIRTUAL , - virtio_net_announce_timer, n); + n->announce_timer =qemu_announce_timer_new (qemu_get_announce_params (), +QEMU_CLOCK_VIRTUAL ); + n->announce_timer->tm =timer_new_ms (QEMU_CLOCK_VIRTUAL , + virtio_net_announce_timer, n);if (n->netclient_type) {/* @@ -2001,8 +2004,9 @@ static void virtio_net_device_unrealize(DeviceState *dev, Error **errp)virtio_net_del_queue (n, i); }
Quoted 7 lines
hw/net/virtio-net.c static void virtio_net_device_unrealize(DeviceState *dev, Error **errp) · line 2009
Quoted 5 lines
hw/net/virtio-net.c +3
-2-timer_del (n->announce_timer); -timer_free (n->announce_timer); +timer_del (n->announce_timer->tm); +timer_free (n->announce_timer->tm); +g_free (n->announce_timer);Hmm, why is this all safe - I guess this is in the BQL?
Well, this is virito's explicit timer. I didn't check, but it really no different then destroying the virtio-specific QEMU timer created for the devices.
Quoted 46 lines
Quoted 46 lines
hw/net/virtio-net.c +0
-0g_free (n->vqs);qemu_del_nic (n->nic);virtio_cleanup (vdev);include/hw/virtio/virtio-net.h +1
-2@@ -94,8 +94,7 @@ typedef struct VirtIONet {char *netclient_name;char *netclient_type;uint64_t curr_guest_offloads; -QEMUTimer *announce_timer; -int announce_counter; +AnnounceTimer *announce_timer;bool needs_vnet_hdr_swap; } VirtIONet;include/migration/vmstate.h +6
-6@@ -1022,8 +1022,6 @@ extern const VMStateInfo vmstate_info_qtailq;#define VMSTATE_END_OF_LIST () \ {} -#define SELF_ANNOUNCE_ROUNDS 5 -void loadvm_free_handlers (MigrationIncomingState *mis); int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,@@ -1071,11 +1069,18 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params, QEMUTimerCB *cb);static inline -int64_t self_announce_delay (int round) +int64_t self_announce_delay (AnnounceTimer *timer) { -assert (round <SELF_ANNOUNCE_ROUNDS && round >0 ); -/* delay 50ms, 150ms, 250ms, ... */ -return 50 + (SELF_ANNOUNCE_ROUNDS - round -1 ) *100 ; +int64_t ret; + + ret = timer->params.initial + + (timer->params.rounds - timer->round -1 ) * + timer->params.step;
Quoted 8 lines
include/migration/vmstate.h AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params, · line 1084
Quoted 6 lines
include/migration/vmstate.h +5
-0+ +if (ret <0 || ret > timer->params.max) { + ret = timer->params.max; + } +return ret; }This feels like it should be with the rest of your code somewhere?
You had it moved into the vmstate.c with your patches. I left it in vmstate.h, but as Juan mentioned, this should all be moved together under net somewhere. I think I'll do that for the next series.
Quoted 54 lines
Quoted 54 lines
include/migration/vmstate.h +0
-0void dump_vmstate_json_to_file (FILE *out_fp);include/sysemu/sysemu.h +1
-1@@ -85,7 +85,7 @@ bool qemu_validate_announce_parameters(AnnounceParameters *params, Error **errp);void qemu_set_announce_parameters (AnnounceParameters *announce_params,AnnounceParameters *params); -void qemu_announce_self (void ); +void qemu_announce_self (AnnounceParameters *params);/* Subcommands for QEMU_VM_COMMAND */ enum qemu_vm_cmd {migration/migration.c +1
-1@@ -345,7 +345,7 @@ static void process_incoming_migration_bh(void *opaque)* This must happen after all error conditions are dealt with and * we're sure the VM is going to be running on this host. */ -qemu_announce_self (); +qemu_announce_self (qemu_get_announce_params ());/* If global state section was not received or we are in running state, we need to obey autostart. Any other state is set with migration/savevm.c +4
-8@@ -212,21 +212,19 @@ static void qemu_announce_self_iter(NICState *nic, void *opaque)qemu_send_packet_raw (qemu_get_queue (nic), buf, len); } -static void qemu_announce_self_once (void *opaque) { -static int count =SELF_ANNOUNCE_ROUNDS ; -QEMUTimer *timer = *(QEMUTimer **)opaque; +AnnounceTimer *timer = (AnnounceTimer *)opaque;qemu_foreach_nic (qemu_announce_self_iter,NULL ); -if (--count) { -/* delay 50ms, 150ms, 250ms, ... */ -timer_mod (timer,qemu_clock_get_ms (QEMU_CLOCK_REALTIME ) + -self_announce_delay (count)); +if (--timer->round) { +timer_mod (timer->tm,qemu_clock_get_ms (timer->type) + +self_announce_delay (timer)); }else { -timer_del (timer);
Quoted 9 lines
migration/savevm.c static void qemu_announce_self_iter(NICState *nic, void *opaque) · line 227
Quoted 4 lines
migration/savevm.c +3
-1-timer_free (timer); +timer_del (timer->tm); +timer_free (timer->tm); +g_free (timer);That's kind of odd in that it doesn't cause the thing the opaque pointed to, to be zero'd, so problem if someone free'd it in an exit path? But probably OK in this case.
In this case, the opaque is the AnnounceTimer itself. So we end up:
+-> Announce_timer: +----> QemuTimer: | tm -----------+ opaque --+ | | +----------------------------------------+
zero-ing opaque is a really qemu-timers job, but it doesn't do so, and in this case, it's OK (sort of), since we call timer_free().
Thanks
-vlad
Quoted 38 lines
Dave
Quoted 33 lines
migration/savevm.c +7
-5} }@@ -252,11 +250,13 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params,return timer; } -void qemu_announce_self (void ) +void qemu_announce_self (AnnounceParameters *params) { -static QEMUTimer *timer; - timer =timer_new_ms (QEMU_CLOCK_REALTIME , qemu_announce_self_once, &timer); -qemu_announce_self_once (&timer); +AnnounceTimer *timer; + + timer =qemu_announce_timer_create (params,QEMU_CLOCK_REALTIME , + qemu_announce_self_once); +qemu_announce_self_once (timer); }/***********************************************************/ @@ -1730,7 +1730,7 @@ static void loadvm_postcopy_handle_run_bh(void *opaque)*/ cpu_synchronize_all_post_init (); -qemu_announce_self (); +qemu_announce_self (qemu_get_announce_params ());/* Make sure all file formats flush their mutable metadata. * If we get an error here, just don't restart the VM yet. */ Signature · 1 line
2.7.4--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH 08/12] announce_timer: Add ability to reset an existing
In reply to Vladislav YasevichQuoted 6 lines · * Vladislav Yasevich ([email protected]) wrote:
It is now potentially possible to issue annouce-self command in a tight loop. Instead of doing nother, we can reset the timeout pararameters, especially since each instance may provide it's own values. This allows the user to extend or cut short currently runnig timer.
Signed-off-by Vladislav Yasevich <[email protected]>
ah ok, you can ignore my comment on the previous patch then!
Quoted 22 lines
--- include/migration/vmstate.h | 1 + migration/savevm.c | 41 +++++++++++++++++++++++++++++++---------- 2 files changed, 32 insertions(+), 10 deletions(-)include/migration/vmstate.h +1
-0@@ -1057,6 +1057,7 @@ void vmstate_register_ram_global(struct MemoryRegion *memory); typedef struct AnnounceTimer { QEMUTimer *tm; + QemuMutex active_lock; struct AnnounceTimer **entry; AnnounceParameters params; QEMUClockType type;migration/savevm.c +0
-0
migration/savevm.c static void qemu_announce_self_iter(NICState *nic, void *opaque) · line 227
Quoted 8 lines
migration/savevm.c +5
-0@@ -220,20 +220,29 @@ static void qemu_announce_self_iter(NICState *nic, void *opaque)AnnounceTimer *announce_timers[QEMU_ANNOUNCE__MAX ]; +static void qemu_announce_timer_destroy (AnnounceTimer *timer) +{ +timer_del (timer->tm); +timer_free (timer->tm); +qemu_mutex_destroy (&timer->active_lock);
Can you explain what makes this safe; we're not holding the lock at this point are we? Are we guaranteed that no one else will try and take it?
Either way it should be commented to say why it's safe.
Dave
Quoted 72 lines
migration/savevm.c +26
-10+g_free (timer); +} +static void qemu_announce_self_once (void *opaque) {AnnounceTimer *timer = (AnnounceTimer *)opaque; +qemu_mutex_lock (&timer->active_lock);qemu_foreach_nic (qemu_announce_self_iter,NULL ); -if (--timer->round) { +if (--timer->round ) {timer_mod (timer->tm,qemu_clock_get_ms (timer->type) +self_announce_delay (timer)); +qemu_mutex_unlock (&timer->active_lock); }else { - *(timer->entry) =NULL ; -timer_del (timer->tm); -timer_free (timer->tm); -g_free (timer); + *(timer->entry) =NULL ; +qemu_mutex_unlock (&timer->active_lock); +qemu_announce_timer_destroy (timer); } }@@ -242,6 +251,7 @@ AnnounceTimer *qemu_announce_timer_new(AnnounceParameters *params, {AnnounceTimer *timer =g_new (AnnounceTimer,1 ); +qemu_mutex_init (&timer->active_lock); timer->params = *params; timer->round = params->rounds; timer->type = type;@@ -259,6 +269,21 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params,return timer; } +static void qemu_announce_timer_update (AnnounceTimer *timer, +AnnounceParameters *params) +{ +qemu_mutex_lock (&timer->active_lock); + +/* Update timer paramenter with any new values. +* Reset the number of rounds to run, and stop the current timer. +*/ + timer->params = *params; + timer->round = params->rounds; +timer_del (timer->tm); + +qemu_mutex_unlock (&timer->active_lock); +} +void qemu_announce_self (AnnounceParameters *params,AnnounceType type) {AnnounceTimer *timer;@@ -270,11 +295,7 @@ void qemu_announce_self(AnnounceParameters *params, AnnounceType type) announce_timers[type] = timer; timer->entry = &announce_timers[type]; }else { -/* For now, don't do anything. If we want to reset the timer, -* we'll need to add locking to each announce timer to prevent -* races between timeout handling and a reset. -*/ -return ; +qemu_announce_timer_update (timer, params); }qemu_announce_self_once (timer); }Signature · 1 line
2.7.4
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH 08/12] announce_timer: Add ability to reset an existing
Quoted 35 lines · Dr. David Alan Gilbert
Quoted 6 lines · * Vladislav Yasevich ([email protected]) wrote:
It is now potentially possible to issue annouce-self command in a tight loop. Instead of doing nother, we can reset the timeout pararameters, especially since each instance may provide it's own values. This allows the user to extend or cut short currently runnig timer.
Signed-off-by Vladislav Yasevich <[email protected]>ah ok, you can ignore my comment on the previous patch then!
Quoted 25 lines
--- include/migration/vmstate.h | 1 + migration/savevm.c | 41 +++++++++++++++++++++++++++++++---------- 2 files changed, 32 insertions(+), 10 deletions(-)include/migration/vmstate.h +1
-0@@ -1057,6 +1057,7 @@ void vmstate_register_ram_global(struct MemoryRegion *memory); typedef struct AnnounceTimer { QEMUTimer *tm; + QemuMutex active_lock; struct AnnounceTimer **entry; AnnounceParameters params; QEMUClockType type;migration/savevm.c +0
-0@@ -220,20 +220,29 @@ static void qemu_announce_self_iter(NICState *nic, void *opaque)AnnounceTimer *announce_timers[QEMU_ANNOUNCE__MAX ];
Quoted 10 lines
migration/savevm.c static void qemu_announce_self_iter(NICState *nic, void *opaque) · line 227
Quoted 5 lines
migration/savevm.c +5
-0+static void qemu_announce_timer_destroy (AnnounceTimer *timer) +{ +timer_del (timer->tm); +timer_free (timer->tm); +qemu_mutex_destroy (&timer->active_lock);Can you explain what makes this safe; we're not holding the lock at this point are we? Are we guaranteed that no one else will try and take it?
Either way it should be commented to say why it's safe.
Looking at this again, it doesn't look safe.
The problem is the lookup code. There is needs to be a lock on the on the global array that needs to be held during creation/modification.
Thanks
-vlad
Quoted 78 lines
Dave
Quoted 72 lines
migration/savevm.c +26
-10+g_free (timer); +} +static void qemu_announce_self_once (void *opaque) {AnnounceTimer *timer = (AnnounceTimer *)opaque; +qemu_mutex_lock (&timer->active_lock);qemu_foreach_nic (qemu_announce_self_iter,NULL ); -if (--timer->round) { +if (--timer->round ) {timer_mod (timer->tm,qemu_clock_get_ms (timer->type) +self_announce_delay (timer)); +qemu_mutex_unlock (&timer->active_lock); }else { - *(timer->entry) =NULL ; -timer_del (timer->tm); -timer_free (timer->tm); -g_free (timer); + *(timer->entry) =NULL ; +qemu_mutex_unlock (&timer->active_lock); +qemu_announce_timer_destroy (timer); } }@@ -242,6 +251,7 @@ AnnounceTimer *qemu_announce_timer_new(AnnounceParameters *params, {AnnounceTimer *timer =g_new (AnnounceTimer,1 ); +qemu_mutex_init (&timer->active_lock); timer->params = *params; timer->round = params->rounds; timer->type = type;@@ -259,6 +269,21 @@ AnnounceTimer *qemu_announce_timer_create(AnnounceParameters *params,return timer; } +static void qemu_announce_timer_update (AnnounceTimer *timer, +AnnounceParameters *params) +{ +qemu_mutex_lock (&timer->active_lock); + +/* Update timer paramenter with any new values. +* Reset the number of rounds to run, and stop the current timer. +*/ + timer->params = *params; + timer->round = params->rounds; +timer_del (timer->tm); + +qemu_mutex_unlock (&timer->active_lock); +} +void qemu_announce_self (AnnounceParameters *params,AnnounceType type) {AnnounceTimer *timer;@@ -270,11 +295,7 @@ void qemu_announce_self(AnnounceParameters *params, AnnounceType type) announce_timers[type] = timer; timer->entry = &announce_timers[type]; }else { -/* For now, don't do anything. If we want to reset the timer, -* we'll need to add locking to each announce timer to prevent -* races between timeout handling and a reset. -*/ -return ; +qemu_announce_timer_update (timer, params); }qemu_announce_self_once (timer); }Signature · 1 line
2.7.4--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH 10/12] hmp: Add hmp_announce_self
In reply to Vladislav YasevichQuoted 3 lines · * Vladislav Yasevich ([email protected]) wrote:
Add an HMP command to trigger self annocements.
Signend-off-by Vladislav Yasevich <[email protected]>
^^
Quoted 15 lines
--- hmp-commands.hx | 14 ++++++++++++++ hmp.c | 5 +++++ hmp.h | 1 + 3 files changed, 20 insertions(+)hmp-commands.hx +1
-0@@ -939,6 +939,20 @@ Set the parameter @var{parameter} for GARP/RARP announcements. ETEXI { + .name = "qemu_announce_self",
hmp-commands.hx Set the parameter @var{parameter} for GARP/RARP announcements. · line 952
Quoted 10 lines
hmp-commands.hx +10
-0+ .args_type = "", + .params = "", + .help = "Trigger GARP/RARP announcements", + .cmd = hmp_announce_self, + }, + +STEXI +@item qemu_announce_self +@findex qemu_announce_self +Trigger GARP/RARP announcements.
Yes, you could probably just call that 'announce_self'; if I understand then this version doesn't take any parameters (unlike the qmp version) you just rely on the preset-configs. That's OK if that mechanism stays the same.
Dave
Quoted 36 lines
hmp-commands.hx +3
-0+ETEXI + + { .name = "migrate", .args_type = "detach:-d,blk:-b,inc:-i,uri:s", .params = "[-d] [-b] [-i] uri",hmp.c +5
-0@@ -1509,6 +1509,11 @@ void hmp_announce_set_parameter(Monitor *mon, const QDict *qdict) } } +void hmp_announce_self (Monitor *mon,const QDict *qdict) +{ +qmp_announce_self (false,NULL ,NULL ); +} +void hmp_migrate_cancel (Monitor *mon,const QDict *qdict) {qmp_migrate_cancel (NULL );hmp.h +1
-0@@ -147,5 +147,6 @@ void hmp_info_ramblock(Monitor *mon, const QDict *qdict);void hmp_hotpluggable_cpus (Monitor *mon,const QDict *qdict);void hmp_info_vm_generation_id (Monitor *mon,const QDict *qdict);void hmp_info_announce_parameters (Monitor *mon,const QDict *qdict); +void hmp_announce_self (Monitor *mon,const QDict *qdict);#endif Signature · 1 line
2.7.4
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH 11/12] tests/test-hmp: Add announce parameter tests
In reply to Vladislav YasevichQuoted 12 lines · * Vladislav Yasevich ([email protected]) wrote:
Add 2 new commands for announce parameters to the test.
Signed-off-by Vladislav Yasevich <[email protected]>--- tests/test-hmp.c | 2 ++ 1 file changed, 2 insertions(+)tests/test-hmp.c +0
-0
tests/test-hmp.c static const char *hmp_cmds[] = { · line 68
Quoted 4 lines
tests/test-hmp.c +1
-0@@ -65,6 +65,8 @@ static const char *hmp_cmds[] = {"sum 0 512" ,"x /8i 0x100" ,"xp /16x 0" , + "info announce_parameters",
I don't think you need to do that, test_info_commands gets the list of info commands and calls them all.
Dave
Quoted 7 lines
tests/test-hmp.c +1
-0+"announce_set_parameter rounds 10" , NULL };Signature · 1 line
2.7.4
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Quoted 29 lines · * Vladislav Yasevich ([email protected]) wrote:
This work a consolidation of the work by David Gilbert, Germano Veit Michel and myself.
It started out with David wanting to parametirize self-announcments so that the user may control how often annoucment packets (RARPs) were generated by Qemu.
At about the same time, Germano wanted to expose
qemu_announce_self()through a QMP command, to solve the issues of running qemu with a bond device as an uplink in the bridge. In this case, when there was failover event in the bond, we want a way to trigger qemu to announce itslef to make traffic flow to a different port in the bond. As an extension of this work, I propsed a expose annoucement capabilities in devices (like virtio-net) and consolidate the announcemnts.This series is all of the above wraped together with a bunch of modifications.
To begin with, I've separated the annocement parameters from migration as they are now not migration specific. I am also providing a way to set and retrieve current annoucemet values (like initial and max timeouts, number of annoucments, etc..)
The series converts migration annoucement (including virito-net) to use the new parameters, but allows virtio-net to manage its own timer mainly due to the fact that it's running on a different clock and finding a new place to call
qemu_announce_self()didn't yeild good results.
Quoted 6 lines
We expose qemu-announce-self() through QMP and HMP and add unit tests for all new commands.
And finally, this series limites the number of timers that can be created through the new commands, and have the ability to reset currently runing timers.
Thanks,
I think this is a pretty nice collection; I've commented on most
of the patches individually - nothing too major.
Dave
Quoted 26 lines
Thanks
Vladislav Yasevich (12):
migration: Introduce announce parameters
migration: Introduce announcement timer
migration: Switch to using announcement timer
net: Add a network device specific self-announcement ability
virtio-net: Allowqemu_announce_selfto trigger virtio announcements
qmp: Exposeqemu_announce_selfas a qmp command
migration: Allow for a limited number of announce timers
announce_timer: Add ability to reset an existing timer
hmp: add announce paraters info/set
hmp: Addhmp_announce_self
tests/test-hmp: Add announce parameter tests
tests: Add a test for qemu self announcmentshmp-commands-info.hx | 13 +++ hmp-commands.hx | 28 ++++++ hmp.c | 91 +++++++++++++++++++ hmp.h | 5 + hw/net/virtio-net.c | 58 +++++++++--- include/hw/virtio/virtio-net.h | 3 +- include/migration/vmstate.h | 32 +++++-- include/net/net.h | 2 + include/sysemu/sysemu.h | 16 +++- migration/migration.c | 2 +-
Quoted 12 lines
migration/savevm.c | 201 ++++++++++++++++++++++++++++++++++++++--- monitor.c | 18 ++++ qapi-schema.json | 103 +++++++++++++++++++++ tests/Makefile.include | 2 + tests/test-announce-self.c | 78 ++++++++++++++++ tests/test-hmp.c | 2 + 16 files changed, 617 insertions(+), 37 deletions(-) create mode 100644 tests/test-announce-self.cSignature · 1 line
2.7.4
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH 01/12] migration: Introduce announce parameters
In reply to Dr. David Alan GilbertQuoted 16 lines · Dr. David Alan Gilbert
Quoted 15 lines · * Vlad Yasevich ([email protected]) wrote:
Quoted 5 lines · Jason Wang
Quoted 4 lines · Vladislav Yasevich
Add parameters that control RARP/GARP announcement timeouts. The parameters structure is added to the QAPI and a qmp command is added to set/get the parameter data.
Quoted 7 lines
Quoted 3 lines
Based on work by "Dr. David Alan Gilbert"<[email protected]>
Signed-off-by Vladislav Yasevich<[email protected]>I think it's better to explain e.g under which condition do we need to tweak such parameters.
Thanks
OK. I'll rip off what dgilbert wrote in his original series for the description.
Quoted 8 lines
Quoted 2 lines
Dave, if you have any text to add as to why migration might need to tweak this, I'd appreciate it.
Pretty much what I originally said; that the existing values are arbitrary and fixed, and for systems with complex/sluggish network reconfiguration systems they can be too slow.
Dave
I agree, but I'm not sure how much it can help in fact unless management can set configuration specific parameters. And what we did here is best effort, there's no guarantee that G(R)ARP packet can reach the destination.
Thanks
Re: [Qemu-devel] [PATCH 01/12] migration: Introduce announce parameters
Quoted 26 lines · Jason Wang
Quoted 23 lines · Dr. David Alan Gilbert
Quoted 12 lines · * Vlad Yasevich ([email protected]) wrote:
Quoted 11 lines · Jason Wang
Quoted 7 lines · Vladislav Yasevich
Add parameters that control RARP/GARP announcement timeouts. The parameters structure is added to the QAPI and a qmp command is added to set/get the parameter data.
Based on work by "Dr. David Alan Gilbert"<[email protected]>
Signed-off-by Vladislav Yasevich<[email protected]>I think it's better to explain e.g under which condition do we need to tweak such parameters.
Quoted 6 lines
Quoted 2 lines
Thanks
OK. I'll rip off what dgilbert wrote in his original series for the description.
Dave, if you have any text to add as to why migration might need to tweak this, I'd appreciate it.
Pretty much what I originally said; that the existing values are arbitrary and fixed, and for systems with complex/sluggish network reconfiguration systems they can be too slow.
Quoted 7 lines
Quoted 2 lines
Dave
I agree, but I'm not sure how much it can help in fact unless management can set configuration specific parameters. And what we did here is best effort, there's no guarantee that G(R)ARP packet can reach the destination.
So, that's what the series allows. If management knows something new, it can set appropriate parameter values. Additionally, the management is also free to trigger additional announcements through the new commands.
I am starting to think that just for the sake of migration, exposing announce_self interface to management might be sufficient. Management, when it deems migration complete, may use the interface to trigger announcements in addition to whatever best effort QEMU may attempt itself.
Dave, would that be enough, or do the parameters still make sense?
Thanks
-vlad
Re: [Qemu-devel] [PATCH 01/12] migration: Introduce announce parameters
Quoted 39 lines · * Vlad Yasevich ([email protected]) wrote:
Quoted 26 lines · Jason Wang
Quoted 23 lines · Dr. David Alan Gilbert
Quoted 12 lines · * Vlad Yasevich ([email protected]) wrote:
Quoted 11 lines · Jason Wang
Quoted 7 lines · Vladislav Yasevich
Add parameters that control RARP/GARP announcement timeouts. The parameters structure is added to the QAPI and a qmp command is added to set/get the parameter data.
Based on work by "Dr. David Alan Gilbert"<[email protected]>
Signed-off-by Vladislav Yasevich<[email protected]>I think it's better to explain e.g under which condition do we need to tweak such parameters.
Quoted 6 lines
Quoted 2 lines
Thanks
OK. I'll rip off what dgilbert wrote in his original series for the description.
Dave, if you have any text to add as to why migration might need to tweak this, I'd appreciate it.
Pretty much what I originally said; that the existing values are arbitrary and fixed, and for systems with complex/sluggish network reconfiguration systems they can be too slow.
Quoted 7 lines
Quoted 2 lines
Dave
I agree, but I'm not sure how much it can help in fact unless management can set configuration specific parameters. And what we did here is best effort, there's no guarantee that G(R)ARP packet can reach the destination.
So, that's what the series allows. If management knows something new, it can set appropriate parameter values. Additionally, the management is also free to trigger additional announcements through the new commands.
Quoted 6 lines
I am starting to think that just for the sake of migration, exposing
announce_selfinterface to management might be sufficient. Management, when it deems migration complete, may use the interface to trigger announcements in addition to whatever best effort QEMU may attempt itself.Dave, would that be enough, or do the parameters still make sense?
I'd still like to be able to set the parameters to be able to work around the very broken setups that are out there.
The way I got to this point was a hack for a user where I just increased it so it was doing about 10 seconds of announce which was long enough for the network to get it's act together.
Dave
Quoted 4 lines
Thanks
-vlad
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK