Re: [libvirt] [PATCH v2 03/17] vircgroup: introduce virCgroupV2DevicesAttachProg

2019-01-24 Thread Pavel Hrdina
On Tue, Jan 15, 2019 at 01:07:55PM +0100, Pavel Hrdina wrote: > On Tue, Jan 15, 2019 at 10:14:33AM +, Daniel P. Berrangé wrote: > > On Tue, Jan 15, 2019 at 09:58:47AM +0100, Pavel Hrdina wrote: > > > On Mon, Jan 14, 2019 at 04:43:34PM +, Daniel P. Berrangé wrote: > > > > On Mon, Jan 14,

Re: [libvirt] [PATCH v2 03/17] vircgroup: introduce virCgroupV2DevicesAttachProg

2019-01-15 Thread Pavel Hrdina
On Tue, Jan 15, 2019 at 10:14:33AM +, Daniel P. Berrangé wrote: > On Tue, Jan 15, 2019 at 09:58:47AM +0100, Pavel Hrdina wrote: > > On Mon, Jan 14, 2019 at 04:43:34PM +, Daniel P. Berrangé wrote: > > > On Mon, Jan 14, 2019 at 04:47:37PM +0100, Pavel Hrdina wrote: > > > > This function

Re: [libvirt] [PATCH v2 03/17] vircgroup: introduce virCgroupV2DevicesAttachProg

2019-01-15 Thread Daniel P . Berrangé
On Tue, Jan 15, 2019 at 09:58:47AM +0100, Pavel Hrdina wrote: > On Mon, Jan 14, 2019 at 04:43:34PM +, Daniel P. Berrangé wrote: > > On Mon, Jan 14, 2019 at 04:47:37PM +0100, Pavel Hrdina wrote: > > > This function loads the BPF prog with prepared map into kernel and > > > attaches it into

Re: [libvirt] [PATCH v2 03/17] vircgroup: introduce virCgroupV2DevicesAttachProg

2019-01-15 Thread Pavel Hrdina
On Mon, Jan 14, 2019 at 04:43:34PM +, Daniel P. Berrangé wrote: > On Mon, Jan 14, 2019 at 04:47:37PM +0100, Pavel Hrdina wrote: > > This function loads the BPF prog with prepared map into kernel and > > attaches it into guest cgroup. It can be also used to replace existing > > program in the

Re: [libvirt] [PATCH v2 03/17] vircgroup: introduce virCgroupV2DevicesAttachProg

2019-01-14 Thread Daniel P . Berrangé
On Mon, Jan 14, 2019 at 04:47:37PM +0100, Pavel Hrdina wrote: > This function loads the BPF prog with prepared map into kernel and > attaches it into guest cgroup. It can be also used to replace existing > program in the cgroup if we need to resize BPF map to store more rules > for devices. The

[libvirt] [PATCH v2 03/17] vircgroup: introduce virCgroupV2DevicesAttachProg

2019-01-14 Thread Pavel Hrdina
This function loads the BPF prog with prepared map into kernel and attaches it into guest cgroup. It can be also used to replace existing program in the cgroup if we need to resize BPF map to store more rules for devices. The old program will be closed and removed from kernel. There are two