Re: [pve-devel] [PATCH v2 guest-common 1/1] Add foreach_passthrough_device

2023-10-31 Thread Thomas Lamprecht
On 30/10/2023 14:12, Wolfgang Bumiller wrote: > On Tue, Oct 24, 2023 at 02:55:54PM +0200, Filip Schauer wrote: >> + >> +$func->($key, "dev/bus/usb/$bus_id/$device_id", @param); > > So this will do... something :-) > But unfortunately it won't deal with the *interesting* bits. > > So while

Re: [pve-devel] [PATCH v2 guest-common 1/1] Add foreach_passthrough_device

2023-10-30 Thread Wolfgang Bumiller
On Tue, Oct 24, 2023 at 02:55:54PM +0200, Filip Schauer wrote: > Add a function to iterate over passthrough devices of a provided > container config. As container specific code this should be in pve-container. > > Signed-off-by: Filip Schauer > --- > src/PVE/AbstractConfig.pm | 44

[pve-devel] [PATCH v2 guest-common 1/1] Add foreach_passthrough_device

2023-10-24 Thread Filip Schauer
Add a function to iterate over passthrough devices of a provided container config. Signed-off-by: Filip Schauer --- src/PVE/AbstractConfig.pm | 44 +++ 1 file changed, 44 insertions(+) diff --git a/src/PVE/AbstractConfig.pm b/src/PVE/AbstractConfig.pm index a