There are two parts to networking within QEMU:
- The virtual network device that is provided to the guest (e.g. a PCI network card).
- The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).
| jit-toy: jit-toy.cpp | |
| clang++ -g -o $@ $^ $(shell /usr/lib/llvm-5.0/bin/llvm-config --cxxflags --ldflags --system-libs --libs core) |
| // This will works on Embedded GPU that implements .gem_prime_mmap like Rockchip ones. | |
| // This will fail on most DRM drivers for GPU with dedicated memory as they tend to NOT implement .gem_prime_mmap. | |
| #include <stdio.h> | |
| #include <libdrm/drm.h> | |
| #include <stdint.h> | |
| #include <sys/mman.h> | |
| #include <string.h> |