qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reconfigure netdev


From: Derek Su
Subject: Reconfigure netdev
Date: Thu, 22 Oct 2020 17:26:01 +0800

Hello,

I create a network device (NIC)  by
....
-netdev tap,id=hn0,vhost=off,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown \  -device virtio-net-pci,id=e0,netdev=hn0,mac=56:00:00:00:00:01 \
...

At runtime, I replace the "vhost=on" by unplug (netdev_del+device_del) and plug (netdev_add + device_add).

Is there any better method to replace the vhost value at runtime instead of using hotplug?

Thank you.

Regards,
Derek 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]