commit | 7a930a814ee5e36bbfe5ba6957251891a4659e7a | [log] [tgz] |
---|---|---|
author | Junnan Wu <junnan01.wu@samsung.com> | Sat May 10 07:34:54 2025 |
committer | crosvm LUCI <crosvm-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 10 01:22:10 2025 |
tree | 2270f84d73c95a4f48415101684173627a8f9081 | |
parent | 5274caf47bf2b29cb1037c0f7376236e30235fe1 [diff] |
e2e: virtio: net: add e2e cases for virtio-net Add e2e cases to test virtio-net connection. 6 cases are added as following: - virtio_net_ping_test - virtio_net_ping_test_with_mrg_rxbuf - vhost_user_net_ping_test - vhost_user_net_ping_test_with_mrg_rxbuf - vhost_user_net_ncat_test_with_mrg_rxbuf_guest2host - vhost_user_net_ncat_test_with_mrg_rxbuf_host2guest These cases will firstly start a guest vm with virtio-net device. First four test following scenarios: - regular virtio-net without mrg_rxbuf - regular virtio-net with mrg_rxbuf - vhost-user-net without mrg_rxbuf - vhost-user-net with mrg_rxbuf After vm start, it will configured network in guest, and then do ping operation in two directions. Last two test cases will use ncat to transfer a random file between guest and host via vhost-user virtio-net with MRG_RXBUF feature. TEST=tools/run_tests --dut=vm -vv -E \ 'package(e2e_tests) & (test(vhost_user_net) | test(virtio_net))' Change-Id: I76dd1390ece75dee1d5d92b506537ca26c849615 Signed-off-by: Junnan Wu <junnan01.wu@samsung.com> Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/6545141 Reviewed-by: David Stevens <stevensd@chromium.org> Commit-Queue: David Stevens <stevensd@chromium.org> Reviewed-by: Zihan Chen <zihanchen@google.com>
crosvm is a virtual machine monitor (VMM) based on Linux’s KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the ChromeOS platform. Compared to QEMU, crosvm doesn’t emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.
crosvm is currently used to run Linux/Android guests on ChromeOS devices.