Re: Versioned CPU types in libvirt

2023-11-06 Thread Jonathon Jongsma
On 11/6/23 6:25 PM, Jim Fehlig wrote: On 11/3/23 15:19, Jim Fehlig wrote: Hi Jonathon, I too on occasion poke at SEV-SNP support in libvirt. I've now pushed the dusty, hacky branch to my public fork https://gitlab.com/jfehlig/libvirt/-/tree/sev-snp?ref_type=heads Looking at the git log, it

Re: Versioned CPU types in libvirt

2023-11-06 Thread Jim Fehlig
On 11/3/23 15:19, Jim Fehlig wrote: Hi Jonathon, I too on occasion poke at SEV-SNP support in libvirt. I've now pushed the dusty, hacky branch to my public fork https://gitlab.com/jfehlig/libvirt/-/tree/sev-snp?ref_type=heads Looking at the git log, it seems I fiddle with it every 2 months o

[libvirt PATCH 11/19] cpu_map: Add versioned Intel Skylake CPUs

2023-11-06 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- src/cpu_map/index.xml | 3 + src/cpu_map/meson.build | 3 + src/cpu_map/x86_Skylake-Client-IBRS.xml | 1 + src/cpu_map/x86_Skylake-Client-noTSX-IBRS.xml | 1 + src/cpu_map/x86_Skylake-Client-v4.xml

[libvirt PATCH 13/19] cpu_map: Add versioned Intel Icelake CPUs

2023-11-06 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- src/cpu_map/index.xml | 4 + src/cpu_map/meson.build | 4 + src/cpu_map/x86_Icelake-Server-noTSX.xml | 1 + src/cpu_map/x86_Icelake-Server-v3.xml | 103 + src/cpu_map/x86_Icelake-S

[libvirt PATCH 17/19] cpu_map: Add versioned Dhyana CPUs

2023-11-06 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- src/cpu_map/index.xml | 1 + src/cpu_map/meson.build | 1 + src/cpu_map/x86_Dhyana-v2.xml | 81 +++ src/cpu_map/x86_Dhyana.xml| 1 + ..._64-cpuid-Hygon-C86-7185

[libvirt PATCH 08/19] cpu_map: Add versioned Intel IvyBridge CPUs

2023-11-06 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- src/cpu_map/x86_IvyBridge-IBRS.xml | 1 + src/cpu_map/x86_IvyBridge.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/cpu_map/x86_IvyBridge-IBRS.xml b/src/cpu_map/x86_IvyBridge-IBRS.xml index 430bc3232d..b2b257c11c 100644 --- a/src/cpu_map/x86

[libvirt PATCH 09/19] cpu_map: Add versioned Intel Haswell CPUs

2023-11-06 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- src/cpu_map/x86_Haswell-IBRS.xml | 1 + src/cpu_map/x86_Haswell-noTSX-IBRS.xml | 1 + src/cpu_map/x86_Haswell-noTSX.xml | 1 + src/cpu_map/x86_Haswell.xml| 1 + 4 files changed, 4 insertions(+) diff --git a/src/cpu_map/x86_Haswell-IBRS.x

[libvirt PATCH 15/19] cpu_map: Add versioned Intel Snowridge CPUs

2023-11-06 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- src/cpu_map/index.xml | 3 + src/cpu_map/meson.build | 3 + src/cpu_map/x86_Snowridge-v2.xml | 78 ++ src/cpu_map/x86_Snowridge-v3.xml | 80 +++ src/cpu_ma

[libvirt PATCH 04/19] cpu_map: Add versioned EPYC CPUs

2023-11-06 Thread Jonathon Jongsma
--- src/cpu_map/index.xml | 6 + src/cpu_map/meson.build | 6 + src/cpu_map/x86_EPYC-IBPB.xml | 1 + src/cpu_map/x86_EPYC-Milan-v2.xml | 108 ++ src/cpu_map/x86_EPYC-Milan.xml| 1 + sr

[libvirt PATCH 12/19] cpu_map: Add versioned Intel Cascadelake CPUs

2023-11-06 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- src/cpu_map/index.xml | 3 + src/cpu_map/meson.build | 3 + src/cpu_map/x86_Cascadelake-Server-noTSX.xml | 1 + src/cpu_map/x86_Cascadelake-Server-v2.xml | 93 +++ src/cpu_map/x86_Cascadelake

[libvirt PATCH 03/19] cpu_map: Update EPYC cpu definitions from qemu

2023-11-06 Thread Jonathon Jongsma
Since the EPYC CPUs were added to libvirt, some changes have been made to these models in qemu, mostly adding features. Update these CPUS to the latest values from qemu. Signed-off-by: Jonathon Jongsma --- src/cpu_map/x86_EPYC-IBPB.xml | 2 ++ src/cpu_map/x86_EP

[libvirt PATCH 16/19] cpu_map: Add versioned Intel SapphireRapids CPUs

2023-11-06 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- src/cpu_map/index.xml | 1 + src/cpu_map/meson.build | 1 + src/cpu_map/x86_SapphireRapids-v2.xml | 125 ++ src/cpu_map/x86_SapphireRapids.xml| 1 + .../domaincapsdata/qemu_

[libvirt PATCH 14/19] cpu_map: Add versioned Intel Cooperlake CPUs

2023-11-06 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- src/cpu_map/index.xml | 1 + src/cpu_map/meson.build | 1 + src/cpu_map/x86_Cooperlake-v2.xml | 98 +++ src/cpu_map/x86_Cooperlake.xml| 1 + .../x86_64-cpuid-Cooperlake

[libvirt PATCH 10/19] cpu_map: Add versioned Intel Broadwell CPUs

2023-11-06 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- src/cpu_map/x86_Broadwell-IBRS.xml | 1 + src/cpu_map/x86_Broadwell-noTSX-IBRS.xml | 1 + src/cpu_map/x86_Broadwell-noTSX.xml | 1 + src/cpu_map/x86_Broadwell.xml| 1 + 4 files changed, 4 insertions(+) diff --git a/src/cpu_map/x86_Broadw

[libvirt PATCH 07/19] cpu_map: Add versioned Intel SandyBridge CPUs

2023-11-06 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- src/cpu_map/x86_SandyBridge-IBRS.xml | 1 + src/cpu_map/x86_SandyBridge.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/cpu_map/x86_SandyBridge-IBRS.xml b/src/cpu_map/x86_SandyBridge-IBRS.xml index fbdb4f2bf6..24cc22f596 100644 --- a/src/cpu

[libvirt PATCH 06/19] cpu_map: Add versioned Intel Westmere CPUs

2023-11-06 Thread Jonathon Jongsma
Signed-off-by: Jonathon Jongsma --- src/cpu_map/x86_Westmere-IBRS.xml | 1 + src/cpu_map/x86_Westmere.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/cpu_map/x86_Westmere-IBRS.xml b/src/cpu_map/x86_Westmere-IBRS.xml index c7898f0c22..46460b5a7d 100644 --- a/src/cpu_map/x86_Wes

[libvirt PATCH 02/19] cpu: handle aliases in CPU definitions

2023-11-06 Thread Jonathon Jongsma
After modifying the sync_cpu_model_i386 script to generate an alias for versioned CPUs, we need to add the ability to handle cpu model aliases. This involves parsing and storing the alias in the virCPUx86Model structure and also allowing the CPU to be looked up by its alias or its official name. S

[libvirt PATCH 05/19] cpu_map: Add versioned Intel Nehalem CPUs

2023-11-06 Thread Jonathon Jongsma
--- src/cpu_map/x86_Nehalem-IBRS.xml | 1 + src/cpu_map/x86_Nehalem.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/cpu_map/x86_Nehalem-IBRS.xml b/src/cpu_map/x86_Nehalem-IBRS.xml index 00d0d2fe51..1d19cab20f 100644 --- a/src/cpu_map/x86_Nehalem-IBRS.xml +++ b/src/cpu_map/x86_Ne

[libvirt PATCH 00/19] RFC: Add versioned CPUs to libvirt

2023-11-06 Thread Jonathon Jongsma
This is not necessarily intended as a finished proposal, but as a discussion starter. I mentioned in an email last week that for SEV-SNP support we will need to be able to specify versioned CPU models that are not yet supported by libvirt. Rather than just adding a versioned CPU or two that would s

[libvirt PATCH 01/19] cpu_map: update script to generate versioned CPUs

2023-11-06 Thread Jonathon Jongsma
Previously, the script only generated the parent CPU and any versions that had a defined alias. Now generate all CPU versions. Any version that had a defined alias will continue to use that alias, but those without aliases will use the generated name $BASECPUNAME-vN. This generated name will be use

[libvirt PATCH] test: remove redundant cpuTestGuestCPUID test

2023-11-06 Thread Jonathon Jongsma
DO_TEST_CPUID(arch, host, json) is a multipart test. It consists of the following tests: - cpuTestHostCPUID() - cpuTestGuestCPUID(with JSON_* flag) - cpuTestCPUIDSignature() - DO_TEST_JSON(): - if json==JSON_MODELS: - cpuTestGuestCPUID(without JSON_* flag) - cpuTestJSONCPUID() - c

Re: [libvirt PATCH] systemd: More tweaks to Description and Documentation lines

2023-11-06 Thread Daniel P . Berrangé
On Mon, Nov 06, 2023 at 07:43:56PM +0100, Andrea Bolognani wrote: > We recently unified all services and sockets, except a couple > were missed. Finish the job. > > Signed-off-by: Andrea Bolognani > --- > src/remote/virt-guest-shutdown.target | 4 ++-- > tools/libvirt-guests.service.in | 6

[libvirt PATCH] systemd: More tweaks to Description and Documentation lines

2023-11-06 Thread Andrea Bolognani
We recently unified all services and sockets, except a couple were missed. Finish the job. Signed-off-by: Andrea Bolognani --- src/remote/virt-guest-shutdown.target | 4 ++-- tools/libvirt-guests.service.in | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/remo

Re: [libvirt PATCH] conf: virDomainDiskSourceFormat: check for srcpool presence correctly

2023-11-06 Thread Andrea Bolognani
On Wed, Nov 01, 2023 at 03:22:12PM +0100, Ján Tomko wrote: > As a guard against programming errors, one part of the condition > only dereferences srcpool if it exists, other one does not. > > Move the check up one level so that it actually has a chance to do > something useful. > > Fixes: 19b1c0d31

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Laine Stump
On 11/6/23 7:16 AM, Daniel P. Berrangé wrote: On Mon, Nov 06, 2023 at 12:45:22PM +0100, Michal Prívozník wrote: On 11/6/23 11:54, Andrea Bolognani wrote: On Mon, Nov 06, 2023 at 10:26:36AM +, Daniel P. Berrangé wrote: On Mon, Nov 06, 2023 at 02:21:16AM -0800, Andrea Bolognani wrote: So do

Re: [libvirt PATCH 0/5] ci: Add macOS 13 & 14, drop macOS 12

2023-11-06 Thread Daniel P . Berrangé
On Mon, Nov 06, 2023 at 07:38:13AM -0800, Andrea Bolognani wrote: > On Mon, Nov 06, 2023 at 12:42:58PM +, Daniel P. Berrangé wrote: > > On Mon, Nov 06, 2023 at 12:04:09PM +0100, Andrea Bolognani wrote: > > > Test pipeline: https://gitlab.com/abologna/libvirt/-/pipelines/1062214982 > > > > > > A

Re: [libvirt PATCH 0/5] ci: Add macOS 13 & 14, drop macOS 12

2023-11-06 Thread Andrea Bolognani
On Mon, Nov 06, 2023 at 12:42:58PM +, Daniel P. Berrangé wrote: > On Mon, Nov 06, 2023 at 12:04:09PM +0100, Andrea Bolognani wrote: > > Test pipeline: https://gitlab.com/abologna/libvirt/-/pipelines/1062214982 > > > > Assumes that > > > > https://gitlab.com/libvirt/libvirt-ci/-/merge_requests

Re: [PATCH] virDomainDeviceInfoCheckABIStability: Implement proper check for CCW addresses

2023-11-06 Thread Andrea Bolognani
On Thu, Nov 02, 2023 at 04:40:28PM +0100, Peter Krempa wrote: > CCW addresses need to be also checked for ABI stability. > > Signed-off-by: Peter Krempa > --- > src/conf/domain_conf.c | 13 - > 1 file changed, 12 insertions(+), 1 deletion(-) Reviewed-by: Andrea Bolognani -- Andrea

Re: [libvirt PATCH 4/5] ci: Add macOS 14

2023-11-06 Thread Daniel P . Berrangé
On Mon, Nov 06, 2023 at 12:04:13PM +0100, Andrea Bolognani wrote: > Signed-off-by: Andrea Bolognani > --- > ci/cirrus/macos-14.vars | 16 > ci/gitlab/builds.yml| 16 > ci/manifest.yml | 7 +++ > 3 files changed, 39 insertions(+) > create mode 10

Re: [libvirt PATCH 5/5] ci: Drop macOS 12

2023-11-06 Thread Daniel P . Berrangé
On Mon, Nov 06, 2023 at 12:04:14PM +0100, Andrea Bolognani wrote: > Signed-off-by: Andrea Bolognani > --- > ci/cirrus/macos-12.vars | 16 > ci/gitlab/builds.yml| 16 > ci/manifest.yml | 7 --- > 3 files changed, 39 deletions(-) > delete mode 100

Re: [libvirt PATCH 3/5] ci: Add macOS 13

2023-11-06 Thread Daniel P . Berrangé
On Mon, Nov 06, 2023 at 12:04:12PM +0100, Andrea Bolognani wrote: > Signed-off-by: Andrea Bolognani > --- > ci/cirrus/macos-13.vars | 16 > ci/gitlab/builds.yml| 16 > ci/manifest.yml | 7 +++ > 3 files changed, 39 insertions(+) > create mode 10

Re: [libvirt PATCH 2/5] ci: Drop rpcgen override from macOS $PATH

2023-11-06 Thread Daniel P . Berrangé
On Mon, Nov 06, 2023 at 12:04:11PM +0100, Andrea Bolognani wrote: > We no longer use rpcgen. > > Signed-off-by: Andrea Bolognani > --- > ci/gitlab/builds.yml | 2 +- > ci/manifest.yml | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Daniel P. Berrangé With regards

Re: [libvirt PATCH 0/5] ci: Add macOS 13 & 14, drop macOS 12

2023-11-06 Thread Daniel P . Berrangé
On Mon, Nov 06, 2023 at 12:04:09PM +0100, Andrea Bolognani wrote: > Test pipeline: https://gitlab.com/abologna/libvirt/-/pipelines/1062214982 > > Assumes that > > https://gitlab.com/libvirt/libvirt-ci/-/merge_requests/444 > > has been merged, which it hasn't yet, but I don't expect it to be >

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Daniel P . Berrangé
On Mon, Nov 06, 2023 at 12:45:22PM +0100, Michal Prívozník wrote: > On 11/6/23 11:54, Andrea Bolognani wrote: > > On Mon, Nov 06, 2023 at 10:26:36AM +, Daniel P. Berrangé wrote: > >> On Mon, Nov 06, 2023 at 02:21:16AM -0800, Andrea Bolognani wrote: > >>> So does that mean that the issue is serv

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Michal Prívozník
On 11/6/23 11:54, Andrea Bolognani wrote: > On Mon, Nov 06, 2023 at 10:26:36AM +, Daniel P. Berrangé wrote: >> On Mon, Nov 06, 2023 at 02:21:16AM -0800, Andrea Bolognani wrote: >>> So does that mean that the issue is server-side? I'm pretty sure >>> Laine, Martin and I are all fetching emails u

[PATCH 5/5] qemu_domain: Drop qemuCheckMemoryDimmConflict()

2023-11-06 Thread Michal Privoznik
The virDomainMemoryDefCheckConflict() already does the same set of checks. There's no need to duplicate them. Signed-off-by: Michal Privoznik --- src/qemu/qemu_domain.c | 37 - 1 file changed, 37 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qem

[PATCH 4/5] virDomainMemoryDefCheckConflict: Validate dimm slot too

2023-11-06 Thread Michal Privoznik
Since we're iterating over def->mems array, might as well check for dimm slot duplicates. Signed-off-by: Michal Privoznik --- src/conf/domain_validate.c | 36 +++- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/src/conf/domain_validate.c b/src/con

[PATCH 3/5] virDomainMemoryDefCheckConflict: Check dimm & nvdimm models too

2023-11-06 Thread Michal Privoznik
So far we check whether virtio-mem and/or virtio-pmem memory devices do not overlap with each other. But we allow specifying address where dimm and nvdimm memory devices are mapped too. And there are left out from this collision check. Not anymore. This leaves just sgx model out, but that's expect

[PATCH 1/5] domain_validate: Move memdevice address conflict check into a separate function

2023-11-06 Thread Michal Privoznik
At the end of virDomainMemoryDefValidate() there's a code that checks whether two virtio-mem/virtio-pmem devices don't overlap. Separate this code into its own function (virDomainMemoryDefCheckConflict()). Signed-off-by: Michal Privoznik --- src/conf/domain_validate.c | 147 +

[PATCH 2/5] qemuxml2argvdata: Extend memory-hotplug-virtio-mem-overlap-address.xml

2023-11-06 Thread Michal Privoznik
This test case of qemuxml2argvtest is used to check whether we correctly identify overlapping memory devices. Well, so far we consider just virtio-mem and virtio-pmem devices, but this is about to change and be extended for other models too. Extend the test case now to de-clutter next commit. Sign

[PATCH] virhostmem: Get total memory on macOS properly

2023-11-06 Thread Michal Privoznik
Problem with HW_PHYSMEM sysctl on 64-bit macOS is that it returns a 32-bit signed value. Thus it overflows. Switching to HW_MEMSIZE is recommended as it's of an uint_64 type [1]. 1: https://github.com/apple-oss-distributions/xnu/blob/xnu-10002.1.13/bsd/sys/sysctl.h Reported-by: Jaroslav Suchanek

[PATCH 0/5] conf: Check for dimm/nvimm address conflicts too

2023-11-06 Thread Michal Privoznik
*** BLURB HERE *** Michal Prívozník (5): domain_validate: Move memdevice address conflict check into a separate function qemuxml2argvdata: Extend memory-hotplug-virtio-mem-overlap-address.xml virDomainMemoryDefCheckConflict: Check dimm & nvdimm models too virDomainMemoryDefCheckConflic

[libvirt PATCH 1/5] ci: Update generated files

2023-11-06 Thread Andrea Bolognani
Gain native gettext for MinGW containers, lose rpcgen everywhere. Signed-off-by: Andrea Bolognani --- ci/buildenv/almalinux-8.sh| 1 - ci/buildenv/alpine-317.sh | 1 - ci/buildenv/alpine-edge.sh| 1 - ci/buildenv

[libvirt PATCH 0/5] ci: Add macOS 13 & 14, drop macOS 12

2023-11-06 Thread Andrea Bolognani
Test pipeline: https://gitlab.com/abologna/libvirt/-/pipelines/1062214982 Assumes that https://gitlab.com/libvirt/libvirt-ci/-/merge_requests/444 has been merged, which it hasn't yet, but I don't expect it to be controversial. I've added both macOS 13 and 14, doubling the amount of coverage.

[libvirt PATCH 5/5] ci: Drop macOS 12

2023-11-06 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- ci/cirrus/macos-12.vars | 16 ci/gitlab/builds.yml| 16 ci/manifest.yml | 7 --- 3 files changed, 39 deletions(-) delete mode 100644 ci/cirrus/macos-12.vars diff --git a/ci/cirrus/macos-12.vars b/ci/cirrus/ma

[libvirt PATCH 4/5] ci: Add macOS 14

2023-11-06 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- ci/cirrus/macos-14.vars | 16 ci/gitlab/builds.yml| 16 ci/manifest.yml | 7 +++ 3 files changed, 39 insertions(+) create mode 100644 ci/cirrus/macos-14.vars diff --git a/ci/cirrus/macos-14.vars b/ci/cirrus/m

[libvirt PATCH 3/5] ci: Add macOS 13

2023-11-06 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- ci/cirrus/macos-13.vars | 16 ci/gitlab/builds.yml| 16 ci/manifest.yml | 7 +++ 3 files changed, 39 insertions(+) create mode 100644 ci/cirrus/macos-13.vars diff --git a/ci/cirrus/macos-13.vars b/ci/cirrus/m

[libvirt PATCH 2/5] ci: Drop rpcgen override from macOS $PATH

2023-11-06 Thread Andrea Bolognani
We no longer use rpcgen. Signed-off-by: Andrea Bolognani --- ci/gitlab/builds.yml | 2 +- ci/manifest.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/gitlab/builds.yml b/ci/gitlab/builds.yml index 2beca51767..8297adbc5f 100644 --- a/ci/gitlab/builds.yml +++ b/c

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Andrea Bolognani
On Mon, Nov 06, 2023 at 10:26:36AM +, Daniel P. Berrangé wrote: > On Mon, Nov 06, 2023 at 02:21:16AM -0800, Andrea Bolognani wrote: > > So does that mean that the issue is server-side? I'm pretty sure > > Laine, Martin and I are all fetching emails using different tools, so > > that would sound

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Daniel P . Berrangé
On Mon, Nov 06, 2023 at 02:21:16AM -0800, Andrea Bolognani wrote: > On Mon, Nov 06, 2023 at 09:58:02AM +, Daniel P. Berrangé wrote: > > On Mon, Nov 06, 2023 at 01:47:20AM -0800, Andrea Bolognani wrote: > > > On Mon, Nov 06, 2023 at 10:37:28AM +0100, Martin Kletzander wrote: > > > > Ah, since th

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Andrea Bolognani
On Mon, Nov 06, 2023 at 09:58:02AM +, Daniel P. Berrangé wrote: > On Mon, Nov 06, 2023 at 01:47:20AM -0800, Andrea Bolognani wrote: > > On Mon, Nov 06, 2023 at 10:37:28AM +0100, Martin Kletzander wrote: > > > Ah, since the switch to the new ML I cannot apply any patch using git > > > am: > > >

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Daniel P . Berrangé
On Mon, Nov 06, 2023 at 01:47:20AM -0800, Andrea Bolognani wrote: > On Mon, Nov 06, 2023 at 10:37:28AM +0100, Martin Kletzander wrote: > > On Mon, Nov 06, 2023 at 10:19:23AM +0100, Martin Kletzander wrote: > > > On Fri, Nov 03, 2023 at 09:37:19AM -0400, Daniel P. Berrangé wrote: > > > > Temporarily

Re: [PATCH] virhostmem: Get total memory on macOS properly

2023-11-06 Thread Daniel P . Berrangé
On Mon, Nov 06, 2023 at 10:28:37AM +0100, Michal Privoznik wrote: > Problem with HW_PHYSMEM sysctl on 64-bit macOS is that it > returns a 32-bit signed value. Thus it overflows. Switching to > HW_MEMSIZE is recommended as it's of an uint_64 type [1]. > > 1: > https://github.com/apple-oss-distribu

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Andrea Bolognani
On Mon, Nov 06, 2023 at 10:37:28AM +0100, Martin Kletzander wrote: > On Mon, Nov 06, 2023 at 10:19:23AM +0100, Martin Kletzander wrote: > > On Fri, Nov 03, 2023 at 09:37:19AM -0400, Daniel P. Berrangé wrote: > > > Temporarily disable '-Wmissing-include-dirs' becuase the > > > libtirpc pkg-confog fi

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Daniel P . Berrangé
On Mon, Nov 06, 2023 at 10:37:28AM +0100, Martin Kletzander wrote: > On Mon, Nov 06, 2023 at 10:19:23AM +0100, Martin Kletzander wrote: > > On Fri, Nov 03, 2023 at 09:37:19AM -0400, Daniel P. Berrangé wrote: > > > Temporarily disable '-Wmissing-include-dirs' becuase the > > > libtirpc pkg-confog fi

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Martin Kletzander
On Mon, Nov 06, 2023 at 10:19:23AM +0100, Martin Kletzander wrote: On Fri, Nov 03, 2023 at 09:37:19AM -0400, Daniel P. Berrangé wrote: Temporarily disable '-Wmissing-include-dirs' becuase the libtirpc pkg-confog file has a bogus include dir. The headers can fortunately still be found since they

[PATCH] virhostmem: Get total memory on macOS properly

2023-11-06 Thread Michal Privoznik
Problem with HW_PHYSMEM sysctl on 64-bit macOS is that it returns a 32-bit signed value. Thus it overflows. Switching to HW_MEMSIZE is recommended as it's of an uint_64 type [1]. 1: https://github.com/apple-oss-distributions/xnu/blob/xnu-10002.1.13/bsd/sys/sysctl.h Reported-by: Jaroslav Suchanek

Re: [libvirt PATCH] rpcgen: use proper operators when comparing types

2023-11-06 Thread Michal Prívozník
On 11/4/23 01:04, Laine Stump wrote: > flake8 (run on all python scripts as a part of the syntax checks) > version 6.1.0 (on macOS 14) issued many complaints like this on the > new rpcgen python scripts: > > [...]libvirt/scripts/rpcgen/rpcgen/lexer.py:57:17: E721 do not compare types, > for exact

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Andrea Bolognani
On Fri, Nov 03, 2023 at 09:37:19AM -0400, Daniel P. Berrangé wrote: > Temporarily disable '-Wmissing-include-dirs' becuase the > libtirpc pkg-confog file has a bogus include dir. The pkg-config > +++ b/ci/manifest.yml > @@ -205,6 +205,8 @@ targets: >- arch: x86_64 > variables: >

Re: [PATCH] ci: workaround broken opensuse leap 15.5 tirpc

2023-11-06 Thread Martin Kletzander
On Fri, Nov 03, 2023 at 09:37:19AM -0400, Daniel P. Berrangé wrote: Temporarily disable '-Wmissing-include-dirs' becuase the libtirpc pkg-confog file has a bogus include dir. The headers can fortunately still be found since they are in the system include dir. Signed-off-by: Daniel P. Berrangé

Re: [PATCH] ci: drop mipsel on Debian Sid

2023-11-06 Thread Andrea Bolognani
On Fri, Nov 03, 2023 at 01:56:23PM -0400, Daniel P. Berrangé wrote: > This port was discontinued and purged from the archives: > > https://lists.debian.org/debian-devel-announce/2023/09/msg0.html > > Signed-off-by: Daniel P. Berrangé > --- > ci/buildenv/debian-sid-cross-mipsel.sh| 115

Re: [libvirt PATCH] rpcgen: use proper operators when comparing types

2023-11-06 Thread Daniel P . Berrangé
On Fri, Nov 03, 2023 at 08:04:13PM -0400, Laine Stump wrote: > flake8 (run on all python scripts as a part of the syntax checks) > version 6.1.0 (on macOS 14) issued many complaints like this on the > new rpcgen python scripts: > > [...]libvirt/scripts/rpcgen/rpcgen/lexer.py:57:17: E721 do not com

[libvirt PATCH 01/15] util: properly deal with module vs. driver when binding device to driver

2023-11-06 Thread Laine Stump
(Sigh, resent because I forgot to update the list address in the reply :-/) Sorry, I meant to respond to this earlier and forgot. Now I'm sending v2 of the patches, and wanted to make sure you didn't think I was just ignoring your comments :-) (since this patch is still there in V2) On 10/23/

[libvirt PATCH v2 10/15] xen: explicitly set hostdev driver.type at runtime, not in postparse

2023-11-06 Thread Laine Stump
Xen only supports a single type of PCI hostdev assignment, so it is superfluous to have peppered throughout the config. It *is* necessary to have the driver type explicitly set in the hosdev object before calling into the hypervisor-agnostic "hostdev manager" though (otherwise the hostdev manager

[libvirt PATCH v2 06/15] conf: use virDeviceHostdevPCIDriverInfo in network and networkport objects

2023-11-06 Thread Laine Stump
The next step in consolidating parsing/formatting of the element of these objects using a common struct and common code. This eliminates the virNetworkForwardDriverNameType enum which is nearly identical to virDeviceHostdevPCIDriverType (the only non-identical bit was just because they'd gotten ou

[libvirt PATCH v2 09/15] tests: remove explicit from hostdev test cases

2023-11-06 Thread Laine Stump
The long-deprecated use of in domain xml for devices was only ever necessary during the period when libvirt (and the Linux kernel) supported both VFIO and "legacy KVM" styles of hostdev device assignment for QEMU. This became pointless many years ago when legacy KVM device assignment was removed

[libvirt PATCH v2 12/15] conf: support manually specifying VFIO variant driver in XML

2023-11-06 Thread Laine Stump
This patch makes it possible to manually specify which VFIO variant driver to use for PCI hostdev device assignment, so that, e.g. you could force use of the generic vfio-pci driver with when libvirt would have normally (after applying a subsequent patch) found a "better match" for a device in

[libvirt PATCH v2 03/15] conf: move/rename hostdev PCI driver type enum to device_conf.h

2023-11-06 Thread Laine Stump
Currently this enum is defined in domain_conf.h and named virDomainHostdevSubsysPCIDriverType. I want to use it in parts of the network and networkport config, so am moving its definition to device_conf.h which is / can be included by all interested parties, and renaming it to be less specific to i

[libvirt PATCH v2 15/15] qemu: automatically bind to a vfio variant driver, if available

2023-11-06 Thread Laine Stump
Rather than always binding to the vfio-pci driver, use the new function virPCIDeviceFindBestVFIOVariant() to see if the running kernel has a VFIO variant driver available that is a better match for the device, and if one is found, use that instead. virPCIDeviceFindBestVFIOVariant() function reads

[libvirt PATCH v2 11/15] conf: replace virHostdevIsVFIODevice with virHostdevIsPCIDevice

2023-11-06 Thread Laine Stump
virHostdevIsVFIODevice() and virDomainDefHasVFIOHostdev() are only ever called from the QEMU driver, and in the case of the QEMU driver, any PCI hostdev by definition uses VFIO, so really all these callers only need to know if the device is a PCI hostdev. (It turned out that the less specific virH