Sorry for the late, this is the version 2 of passing tap fd to qemu.
We use ifup/ifdown script to do basic configuration of tap in the past which
have several limitations:
- mix the environment setup (bridge parameters) with tap setup
- need to maintain a customized ifup script for different bridge
- hard to add macvtap support

So this series first add helper for opening and setuping tap, then let autotest
use them to manage the tap for the virtual nics and pass the tap fd to the qemu.

Changes from v1:
- rebase to HEAD
- add more helpers for future use of macvtap support
- raise error directly in the helper
- use ip route instead of brctl show to do the bridge auto detecting
- several bug fixes

The bride parameter setup was not considered, as it should be a part of test
environment setup which should not be a work of autotest. But we still can
configure them through pre_command/post_command.

The macvtap support is on going and not included in the series as it not only
need fd support but also need changes of ip/mac verification. I would works on
it.

---

Jason Wang (2):
      KVM test: Add helpers to control the TAP/bridge
      KVM test: setup tap fd and pass it to qemu-kvm


 client/tests/kvm/scripts/qemu-ifup     |   11 --
 client/tests/kvm/tests_base.cfg.sample |    3 
 client/virt/kvm_vm.py                  |   56 +++++---
 client/virt/virt_utils.py              |  221 ++++++++++++++++++++++++++++++++
 4 files changed, 259 insertions(+), 32 deletions(-)
 delete mode 100755 client/tests/kvm/scripts/qemu-ifup

-- 
Jason Wang
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to