Re: [PATCH 2/2] qemu_cgroup: Introduce qemuCgroupAllowDevicesPaths()

2022-07-21 Thread Martin Kletzander
On Thu, Jul 21, 2022 at 12:45:29PM +0200, Michal Prívozník wrote: On 7/21/22 12:31, Michal Privoznik wrote: We have qemuCgroupAllowDevicePath() which sets up devices controller for just one path. And if we have more paths we have to call it in a loop. So far, we have just one such place, but soo

Re: [PATCH 2/2] qemu_cgroup: Introduce qemuCgroupAllowDevicesPaths()

2022-07-21 Thread Michal Prívozník
On 7/21/22 12:31, Michal Privoznik wrote: > We have qemuCgroupAllowDevicePath() which sets up devices > controller for just one path. And if we have more paths we have > to call it in a loop. So far, we have just one such place, but > soon we'll have another one (for SGX memory). Separate the loop

[PATCH 2/2] qemu_cgroup: Introduce qemuCgroupAllowDevicesPaths()

2022-07-21 Thread Michal Privoznik
We have qemuCgroupAllowDevicePath() which sets up devices controller for just one path. And if we have more paths we have to call it in a loop. So far, we have just one such place, but soon we'll have another one (for SGX memory). Separate the loop into its own function so that it can be reused. A