Re: [RFC PATCH v2 3/8] failover: virtio-net: remove failover_primary_hidden flag

2021-08-25 Thread Juan Quintela
Laurent Vivier wrote: > We dont't need a flag to know if the primary device must be hidden, we > can rely on the machine state: > Device is hidden if the machine is in prelaunch state (src) or > in inmigrate state with migration status set to none (dst). > We don't need to check the flag in virtio

[RFC PATCH v2 3/8] failover: virtio-net: remove failover_primary_hidden flag

2021-08-20 Thread Laurent Vivier
We dont't need a flag to know if the primary device must be hidden, we can rely on the machine state: Device is hidden if the machine is in prelaunch state (src) or in inmigrate state with migration status set to none (dst). We don't need to check the flag in virtio_net_handle_migration_primary() b