Re: [PATCH] virsysinfo: Try reading DMI table

2024-04-05 Thread Brett Holman
> A colleague asked about the status of this patch and it's availability in > downstream openSUSE packages. I took a peek and LGTM. I then noticed Kristina > has also reviewed the patch. I've added both R-B to the commit and pushed it. I appreciate the review and push \o/ Should I have

Re: [PATCH v1] node_device_conf: virNodeDeviceGetSCSITargetCaps: fix memory leak

2024-04-05 Thread Jonathon Jongsma
On 4/3/24 4:26 AM, Marc Hartmayer wrote: Make sure the old value in `scsi_target->wwpn` is free'd before replacing it. ==9104== 38 bytes in 2 blocks are definitely lost in loss record 1,943 of 3,250 ==9104==at 0x483B8C0: malloc (vg_replace_malloc.c:442) ==9104==by 0x4DFB69B: g_malloc

Re: [PATCH 2/2] virDomainDeviceIsUSB: Handle all USB devices and simplify the code

2024-04-05 Thread Jonathon Jongsma
On 4/3/24 6:44 AM, Peter Krempa wrote: Rework 'virDomainUSBDeviceDefForeach' to use virDomainDeviceInfoIterate instead of open-coding all iterators. To achieve this 'virDomainDeviceIsUSB' needs to be fixed as it didn't properly handle 'sound', 'fs', 'chr', 'ccid', and 'net usb devices. missing

Re: [PATCH 1/2] docs: Rewrite documentation for network device models

2024-04-05 Thread Jonathon Jongsma
On 4/3/24 6:44 AM, Peter Krempa wrote: Since libvirt now tries to interpret network device models (unless an unknow model is used) the documentation didn't make a good job specifying what is supported. Rewrite the docs to explicitly list the models which we do parse. Signed-off-by: Peter

[PATCH 1/2] tests: mock: Accept spaces in build path

2024-04-05 Thread Michal Privoznik
If path to the build directory contains spaces (e.g. meson setup 'a b') then our mocks don't work. The problem is in glibc where not just a colon but also a space character is a delimiter for LD_PRELOAD [1]. Hence, a test using mock tries to preload something like libvirt.git/a

[PATCH 2/2] tests: Allow spaces in path to virt-aa-helper

2024-04-05 Thread Michal Privoznik
The virt-aa-helper bash script constructs a path to itself when it runs. But it isn't prepared for the case when there is a space in the path leading to the script (something, something, double quotes, something). Signed-off-by: Michal Privoznik --- tests/virt-aa-helper-test | 4 ++-- 1 file

[PATCH 0/2] A couple of fixes for non-standard builddir

2024-04-05 Thread Michal Privoznik
The other day somebody on #virt complained about test suite failing on a fresh checkout. Turned out, our mocking and some bash scripts are not prepared for a case when there's a space in builddir path. After these, there are still some tests failing, but my brain is too small to fix them: 1)