[PATCH 2/5] qemu: Move parts of NIC_RX_FILTER_CHANGED even handling into a function

Ján Tomko jtomko at redhat.com
Wed Oct 19 10:32:08 UTC 2022


s/even/event/ in the commit summary

Jano

On a Tuesday in 2022, Michal Privoznik wrote:
>Parts of the code that responds to the NIC_RX_FILTER_CHANGED
>event are going to be re-used. Separate them into a function
>(qemuDomainSyncRxFilter()) and move the code into qemu_domain.c
>so that it can be re-used from other places of the driver.
>
>There's one slight change though: instead of passing device alias
>from the just received event to qemuMonitorQueryRxFilter(), I've
>switched to using the alias stored in our domain definition. But
>these two are guaranteed to be equal. virDomainDefFindDevice()
>made sure about that, if nothing else.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/qemu/qemu_domain.c | 251 +++++++++++++++++++++++++++++++++++++++++
> src/qemu/qemu_domain.h |   4 +
> src/qemu/qemu_driver.c | 242 +--------------------------------------
> 3 files changed, 256 insertions(+), 241 deletions(-)
>


More information about the libvir-list mailing list