On 11/05/2015 04:52 PM, Wen Congyang wrote:
> On 11/05/2015 03:43 PM, zhanghailiang wrote:
>> > Hi Jason,
>> > 
>> > On 2015/11/4 10:56, Jason Wang wrote:
>>> >>
>>> >>
>>> >> On 11/03/2015 07:56 PM, zhanghailiang wrote:
>>>> >>> Signed-off-by: zhanghailiang <[email protected]>
>>>> >>> Cc: Jason Wang <[email protected]>
>>> >>
>>> >> Commit log please.
>>> >>
>>>> >>> ---
>>>> >>> v10: new patch
>>>> >>> ---

[...]

>>>> >>> +}
>>>> >>> +/*
>>>> >>> +* This will be used by COLO or MC FT, for which they will need
>>>> >>> +* to buffer all the packets of all VM's net devices, Here we check
>>>> >>> +* and automatically add netfilter for netdev that doesn't attach any 
>>>> >>> buffer
>>>> >>> +* netfilter.
>>>> >>> +*/
>>>> >>> +void qemu_auto_add_filter_buffer(NetFilterDirection direction, Error 
>>>> >>> **errp)
>>>> >>> +{
>>>> >>> +    char *queue = g_strdup(NetFilterDirection_lookup[direction]);
>>>> >>> +
>>>> >>> +    qemu_foreach_netdev(netdev_add_filter_buffer, queue,
>>>> >>> +                                        errp);
>>>> >>> +    g_free(queue);
>>>> >>> +}
>>>> >>> +
>>> >>
>>> >> This make me think for following questions:
>>> >>
>>> >> - What if a nic is hot added after this "automatically" filter add?
> IIRC, we don't allow the user to hotplug a device when colo is running.
>
> Thanks
> Wen Congyang
>

Even in the future? And how could forbid the user to do this, management?

Thanks

Reply via email to