grub-devel
[Top][All Lists]
Advanced

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

[PATCH 0/3] Implement virtio-net Driver Support


From: Andrew Hamilton
Subject: [PATCH 0/3] Implement virtio-net Driver Support
Date: Thu, 28 Nov 2024 12:41:39 -0600

Implement a virtio-net driver (using an in-built virtio-pci
driver) to allow GRUB to have network support in virtual 
environments such as Qemu without a dependency on the BIOS,
UEFI, etc. This provides a virtio-net driver implementation
targetting the 1.x virtio specification (using just the 
minimal required features of the specification to get this
working in GRUB).

Also add a net_http_transfer_test to provide an integration
test of the new driver running under Qemu and also exercise
some of the network stack code as well.

Right now this implementation has been tested on i386-pc and
x86_64-efi, so the module is only built for those architectures.
With additional architecture testing, this can likely be enabled
on other configurations as well.

For the user perspective, this patch will provide GRUB network
capability in a wider variety of virtualized configurations. It
will also improve test coverage of the network code in GRUB. This
driver should provide a basis for building upon this initial small
test for the network code in the future.

Andrew Hamilton (3):
  docs: Document Module virtionet
  net: Implement virtio-net Driver for Qemu in GRUB
  tests: Add net_http_transfer_test

 .gitignore                               |    2 +
 Makefile.util.def                        |   12 +
 docs/grub.texi                           |   16 +
 grub-core/Makefile.core.def              |   12 +
 grub-core/net/drivers/virtio/virtionet.c | 1000 ++++++++++++++++++++++
 tests/net_http_transfer_test.in          |  107 +++
 tests/util/grub-shell.in                 |    3 +
 tests/util/qemu-linkup.in                |   21 +
 8 files changed, 1173 insertions(+)
 create mode 100644 grub-core/net/drivers/virtio/virtionet.c
 create mode 100755 tests/net_http_transfer_test.in
 create mode 100755 tests/util/qemu-linkup.in

-- 
2.39.5




reply via email to

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