4 # This work is licensed under the terms of the GNU GPL, version 2 or later.
5 # See the COPYING file in the top-level directory.
10 # eBPF object is an ELF binary that contains the eBPF
11 # program and eBPF map description(BTF). Overall, eBPF
12 # object should contain the program and enough metadata
13 # to create/load eBPF with libbpf. As the eBPF maps/program
14 # should correspond to QEMU, the eBPF can't be used from
15 # different QEMU build.
17 # Currently, there is a possible eBPF for receive-side scaling (RSS).
26 # @object: the eBPF object encoded in base64
30 { 'struct': 'EbpfObject',
31 'data': {'object': 'str'},
37 # The eBPF programs that can be gotten with request-ebpf.
39 # @rss: Receive side scaling, technology that allows steering traffic
40 # between queues by calculation hash. Users may set up
41 # indirection table and hash/packet types configurations. Used
46 { 'enum': 'EbpfProgramID',
48 'data': [ { 'name': 'rss' } ] }
53 # Retrieve an eBPF object that can be loaded with libbpf. Management
54 # applications (g.e. libvirt) may load it and pass file descriptors to
55 # QEMU, so they can run running QEMU without BPF capabilities.
57 # @id: The ID of the program to return.
59 # Returns: eBPF object encoded in base64.
63 { 'command': 'request-ebpf',
64 'data': { 'id': 'EbpfProgramID' },
65 'returns': 'EbpfObject',