[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/5] qmp: Added the helper stamp check.
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH 3/5] qmp: Added the helper stamp check. |
Date: |
Tue, 28 Feb 2023 19:03:58 +0000 |
User-agent: |
Mutt/2.2.9 (2022-11-12) |
On Tue, Feb 28, 2023 at 08:01:51PM +0100, Toke Høiland-Jørgensen wrote:
> Daniel P. Berrangé <berrange@redhat.com> writes:
>
> Just to interject a note on this here: the skeleton code is mostly a
> convenience feature used to embed BPF programs into the calling binary.
> It is perfectly possible to just have the BPF object file itself reside
> directly in the file system and just use the regular libbpf APIs to load
> it. Some things get a bit more cumbersome (mostly setting values of
> global variables, if the BPF program uses those).
>
> So the JSON example above could just be a regular compiled-from-clang
> BPF object file, and the management program can load that, inspect its
> contents using the libbpf APIs and pass the file descriptors on to Qemu.
> It's even possible to embed version information into this so that Qemu
> can check if it understands the format and bail out if it doesn't - just
> stick a version field in the configuration map as the first entry :)
If all you have is the BPF object file is it possible to interrogate
it to get a list of all the maps, and get FDs associated for them ?
I had a look at the libbpf API and wasn't sure about that, it seemed
like you had to know the required maps upfront ? If it is possible
to auto-discover everything you need, soley from the BPF object file
as input, then just dealing with that in isolation would feel simpler.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [PATCH 0/5] eBPF RSS Helper support., Andrew Melnychenko, 2023/02/19
- [PATCH 1/5] ebpf: Added eBPF initialization by fds and map update., Andrew Melnychenko, 2023/02/19
- [PATCH 2/5] virtio-net: Added property to load eBPF RSS with fds., Andrew Melnychenko, 2023/02/19
- [PATCH 3/5] qmp: Added the helper stamp check., Andrew Melnychenko, 2023/02/19
- Re: [PATCH 3/5] qmp: Added the helper stamp check., Daniel P . Berrangé, 2023/02/20
- Re: [PATCH 3/5] qmp: Added the helper stamp check., Yuri Benditovich, 2023/02/28
- Re: [PATCH 3/5] qmp: Added the helper stamp check., Daniel P . Berrangé, 2023/02/28
- Re: [PATCH 3/5] qmp: Added the helper stamp check., Toke Høiland-Jørgensen, 2023/02/28
- Re: [PATCH 3/5] qmp: Added the helper stamp check.,
Daniel P . Berrangé <=
- Re: [PATCH 3/5] qmp: Added the helper stamp check., Toke Høiland-Jørgensen, 2023/02/28
- Re: [PATCH 3/5] qmp: Added the helper stamp check., Daniel P . Berrangé, 2023/02/28
[PATCH 4/5] ebpf_rss_helper: Added helper for eBPF RSS., Andrew Melnychenko, 2023/02/19
[PATCH 5/5] qmp: Added find-ebpf-rss-helper command., Andrew Melnychenko, 2023/02/19