[RFC PATCH 1/4] qemu_monitor: Added QEMU's "request-ebpf" support.

2023-10-08 Thread Andrew Melnychenko
Added code for monitor and monitor_json. The "request-ebpf" return's eBPF binary object encoded in base64. The function qemuMonitorGetEbpf() returns a decoded blob. QEMU provides eBPF that can be loaded and passed to it from Libvirt. QEMU requires exact eBPF program/maps, so it can be retrieved us

[RFC PATCH 4/4] qemu_command: Added "ebpf_rss_fds" support for virtio-net.

2023-10-08 Thread Andrew Melnychenko
Added logic for loading the "RSS" eBPF program. eBPF file descriptors passed to the QEMU. Signed-off-by: Andrew Melnychenko --- src/qemu/qemu_command.c | 53 + src/qemu/qemu_domain.c | 4 src/qemu/qemu_domain.h | 3 +++ 3 files changed, 60 inserti

[RFC PATCH 3/4] qemu_interface: Added routine for loading the eBPF objects.

2023-10-08 Thread Andrew Melnychenko
Also, added dependencies for libbpf with bpf option. Signed-off-by: Andrew Melnychenko --- meson.build | 6 ++ meson_options.txt | 1 + src/qemu/meson.build | 1 + src/qemu/qemu_interface.c | 42 +++ src/qemu/qemu_interface.h

[RFC PATCH 2/4] qemu_capabilities: Added new capability ebpf_rss_fds for QEMU.

2023-10-08 Thread Andrew Melnychenko
Also, added logic for retrieving eBPF objects from QEMU. eBPF objects stored in the hash table during runtime. eBPF objects cached encoded in base64 in the .xml cache file. Signed-off-by: Andrew Melnychenko --- src/qemu/qemu_capabilities.c | 181 +++ src/qemu/qemu

[RFC PATCH 0/4] Added virtio-net RSS with eBPF support.

2023-10-08 Thread Andrew Melnychenko
This series of rfc patches adds support for loading the RSS eBPF program and passing it to the QEMU. Comments and suggestions would be useful. QEMU with vhost may work with RSS through eBPF. To load eBPF, the capabilities required that Libvirt may provide. eBPF program and maps may be unique for

Re: [PATCH] docs: Fix typos

2023-10-08 Thread Ján Tomko
On a Monday in 2023, Han Han wrote: Signed-off-by: Han Han --- docs/formatdomain.rst | 2 +- docs/kbase/kvm-realtime.rst | 2 +- docs/manpages/virsh.rst | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Ján Tomko and pushed. Jano signature.asc Description: PGP

[PATCH] docs: Fix typos

2023-10-08 Thread Han Han
Signed-off-by: Han Han --- docs/formatdomain.rst | 2 +- docs/kbase/kvm-realtime.rst | 2 +- docs/manpages/virsh.rst | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index af62fcd820..03735e4593 100644 --- a/docs/format