Re: [Qemu-devel] [PATCH] [RFC] Add a eBPF-capable PCIe device

2019-06-14 Thread Stefan Hajnoczi
On Mon, Jun 03, 2019 at 02:58:26PM -0600, Martin Ichilevici de Oliveira wrote: Thanks for sharing! The bpf_ram accesses are unsafe. The guest can modify bpf_ram while the device is accessing it. This is likely to cause security problems. I think a model is required where the device copies in t

[Qemu-devel] [PATCH] [RFC] Add a eBPF-capable PCIe device

2019-06-03 Thread Martin Ichilevici de Oliveira
This RFC adds a PCIe device model that is capable of running machine code complaint with the extended Berkeley Packet Filter (eBPF) virtual machine [1]. This machine can then be used to run offloaded code in the PCIe device against data passed to the PCIe device via DMA. eBPF is a very well support