Re: libvirt-6.5.0 breaks host passthrough migration

2020-07-10 Thread Jiri Denemark
ent as shown by virsh dumpxml before you try to start the domain as well as the QEMU command line libvirt used to start the domain (in /var/log/libvirt/qemu/$VM.log). > I believe I traced the error back to this commit: > > commit 201bd5db639c063862b0c1b1abfab9a9a7c92591 > Author: Jiri De

[libvirt PATCH 3/4] cpu_map: Add missing x86 features in 0x80000008 CPUID leaf

2020-06-17 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu_map/x86_features.xml| 6 ++ tests/cputestdata/x86_64-cpuid-Cooperlake-enabled.xml | 2 +- tests/cputestdata/x86_64-cpuid-Cooperlake-json.xml | 1 + .../cputestdata/x86_64-cpuid-EPYC-7601-32-Core

[libvirt PATCH 4/4] cpu_map: Add missing AMD SVM features

2020-06-17 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu_map/x86_features.xml | 32 +++ .../x86_64-cpuid-A10-5800K-disabled.xml | 1 + .../x86_64-cpuid-A10-5800K-enabled.xml| 1 + .../x86_64-cpuid-A10-5800K-guest.xml | 10 ++ .../x86_64-cpuid-A10

[libvirt PATCH 1/4] cpu_map: Request test files update when adding x86 features

2020-06-17 Thread Jiri Denemark
The CPUID data in *-{disabled,enabled}.xml convert feature names from the corresponding *.json file into raw CPUID and MSR data and thus some of them may need to be updated when new features are added into the CPU map. Signed-off-by: Jiri Denemark --- src/cpu_map/x86_features.xml

[libvirt PATCH 2/4] cpu_map: Add missing x86 features in 0x7 CPUID leaf

2020-06-17 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu_map/x86_features.xml | 12 .../x86_64-cpuid-Ice-Lake-Server-disabled.xml| 2 +- .../x86_64-cpuid-Ice-Lake-Server-guest.xml | 1 + .../x86_64-cpuid-Ice-Lake-Server-host.xml| 1

[libvirt PATCH 0/4] cpu_map: Add some missing x86 features

2020-06-17 Thread Jiri Denemark
The features were added to QEMU long ago. Jiri Denemark (4): cpu_map: Request test files update when adding x86 features cpu_map: Add missing x86 features in 0x7 CPUID leaf cpu_map: Add missing x86 features in 0x8008 CPUID leaf cpu_map: Add missing AMD SVM features src/cpu_map

Re: [libvirt PATCH] docs: add kbase entry showing KVM real time guest config

2020-06-15 Thread Jiri Denemark
to be locked into RAM > +with memory page sharing disabled. > +This is achieved by using the `memory backing config > `_: > + > +:: > + > + > + > + > + > + > + > + > + > + > +Device configuration > + > + > +Libvirt adds a few devices by default to maintain historical QEMU > configuration > +behaviour. It is unlikely these devices are required by real time guests, so > it > +is wise to disable them. Remove all USB controllers that may exist in the XML > +config and replace them with: > + > +:: > + > + > + > +Similarly the memory balloon config should be changed to > + > +:: > + > + > + > +If the guest had a graphical console at installation time this can also be > +disabled, with remote access being over SSH, with a minimal serial console > +for emergencies. With the above minor issues addressed: Reviewed-by: Jiri Denemark

Re: [PATCH 0/2] virDevMapperGetTargetsImpl: Check for dm major properly

2020-06-15 Thread Jiri Denemark
-- > src/util/virutil.h | 2 -- > 7 files changed, 31 insertions(+), 36 deletions(-) Reviewed-by: Jiri Denemark

[libvirt PATCH 2/2] qemuxml2*test: Add cases for CPU pinning to large host CPU IDs

2020-06-11 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- .../cputune-cpuset-big-id.x86_64-latest.args | 39 + .../cputune-cpuset-big-id.xml | 33 ++ tests/qemuxml2argvtest.c | 1 + .../cputune-cpuset-big-id.x86_64-latest.xml | 43

[libvirt PATCH 1/2] conf: Increase cpuset length limit for CPU pinning

2020-06-11 Thread Jiri Denemark
Domains are now allowed to be pinned to host CPUs with IDs up to 16383. The new limit is as arbitrary as the old one. It's just bigger. Signed-off-by: Jiri Denemark --- src/conf/domain_conf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/domain_conf.h b/src/conf

[libvirt PATCH 0/2] conf: Increase cpuset length limit for CPU pinning

2020-06-11 Thread Jiri Denemark
The tests in patch 2/2 would fail without the first patch. Jiri Denemark (2): conf: Increase cpuset length limit for CPU pinning qemuxml2*test: Add cases for CPU pinning to large host CPU IDs src/conf/domain_conf.h| 2 +- .../cputune-cpuset-big-id.x86_64-latest.args

[libvirt PATCH 5/5] qemu: Avoid deprecated migrate-set-cache-size QMP command

2020-06-10 Thread Jiri Denemark
The same functionality can be achieved using migrate-set-parameters QMP command with xbzrle-cache-size parameter. https://bugzilla.redhat.com/show_bug.cgi?id=1845012 Signed-off-by: Jiri Denemark --- src/qemu/qemu_driver.c | 26 +- src/qemu

[libvirt PATCH 1/5] qemu: Probe for a few params supported by migrate-set-parameters

2020-06-10 Thread Jiri Denemark
These parameters were originally set via dedicated commands which are now deprecated. We want to use migrate-set-parameters instead if possible. Signed-off-by: Jiri Denemark --- src/qemu/qemu_capabilities.c | 8 src/qemu/qemu_capabilities.h

[libvirt PATCH 2/5] qemu: Avoid deprecated migrate_set_speed QMP command

2020-06-10 Thread Jiri Denemark
The same functionality can be achieved using migrate-set-parameters QMP command with max-bandwidth parameter. https://bugzilla.redhat.com/show_bug.cgi?id=1829545 Signed-off-by: Jiri Denemark --- src/qemu/qemu_driver.c | 18 ++--- src/qemu/qemu_migration.c | 53

[libvirt PATCH 4/5] qemu: Avoid deprecated query-migrate-cache-size QMP command

2020-06-10 Thread Jiri Denemark
The same functionality can be achieved using query-migrate-parameters QMP command and checking the xbzrle-cache-size parameter. https://bugzilla.redhat.com/show_bug.cgi?id=1829544 Signed-off-by: Jiri Denemark --- src/qemu/qemu_driver.c | 21 + tests

[libvirt PATCH 0/5] Avoid deprecated commands for migration parameters

2020-06-10 Thread Jiri Denemark
Jiri Denemark (5): qemu: Probe for a few params supported by migrate-set-parameters qemu: Avoid deprecated migrate_set_speed QMP command qemu: Avoid deprecated migrate_set_downtime QMP command qemu: Avoid deprecated query-migrate-cache-size QMP command qemu: Avoid deprecated migrate-set

[libvirt PATCH 3/5] qemu: Avoid deprecated migrate_set_downtime QMP command

2020-06-10 Thread Jiri Denemark
The same functionality can be achieved using migrate-set-parameters QMP command with downtime-limit parameter. https://bugzilla.redhat.com/show_bug.cgi?id=1829543 Signed-off-by: Jiri Denemark --- src/qemu/qemu_driver.c | 27 +++ tests/qemumonitorjsontest.c | 2

Re: [libvirt PATCH 0/9] qemu: Add support for -cpu host, migratable=on|off

2020-06-09 Thread Jiri Denemark
On Tue, Jun 09, 2020 at 12:35:02 +0200, Michal Privoznik wrote: > On 6/5/20 8:31 PM, Jiri Denemark wrote: > > > > Jiri Denemark (9): > >conf: Use g_auto* in virCPUDefParseXML > >qemu: Probe for .migratable property of a CPU > >qemu: Probe for migr

[libvirt PATCH 6/9] conf: Advertise migratable attribute for CPU in domcaps

2020-06-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- docs/formatdomaincaps.html.in | 13 +++-- docs/schemas/domaincaps.rng| 3 +++ src/conf/domain_capabilities.c | 13 - src/conf/domain_capabilities.h | 1 + 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/docs

[libvirt PATCH 8/9] qemu: Fill default value in //cpu/@migratable attribute

2020-06-05 Thread Jiri Denemark
migratable=on. Let's record the default in domain XML. Signed-off-by: Jiri Denemark --- src/qemu/qemu_domain.c | 14 -- .../migration-in-params-in.xml | 2 +- .../migration-out-params-in.xml| 2 +- .../qemuxml2xmlo

[libvirt PATCH 0/9] qemu: Add support for -cpu host, migratable=on|off

2020-06-05 Thread Jiri Denemark
Jiri Denemark (9): conf: Use g_auto* in virCPUDefParseXML qemu: Probe for .migratable property of a CPU qemu: Probe for migrtability support in CPU expansion qemu: Avoid probing unsupported migratable CPU expansion conf: Introduce migratable attribute for the element conf: Advertise

[libvirt PATCH 2/9] qemu: Probe for .migratable property of a CPU

2020-06-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/qemu/qemu_capabilities.c | 4 src/qemu/qemu_capabilities.h | 3 +++ tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml | 1 + tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml | 1 + tests/qemucapabilitiesdata

[libvirt PATCH 4/9] qemu: Avoid probing unsupported migratable CPU expansion

2020-06-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/qemu/qemu_capabilities.c | 1 + .../caps_2.10.0.s390x.replies | 22 - .../caps_2.11.0.s390x.replies | 22 - .../caps_2.12.0.s390x.replies | 22 - .../caps_2.8.0

[libvirt PATCH 5/9] conf: Introduce migratable attribute for the element

2020-06-05 Thread Jiri Denemark
The attribute is only allowed for host-passthrough CPUs and it can be used to request only migratable or all supported features to be enabled in the virtual CPU. Signed-off-by: Jiri Denemark --- docs/formatdomain.html.in | 14 -- docs/schemas/domaincommon.rng | 5 + src

[libvirt PATCH 7/9] qemu: Advertise migratable attribute for CPU in domcaps

2020-06-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/qemu/qemu_capabilities.c | 11 ++- tests/domaincapsdata/qemu_1.5.3-q35.x86_64.xml| 6 +- tests/domaincapsdata/qemu_1.5.3.x86_64.xml| 6 +- tests/domaincapsdata/qemu_1.6.0-q35.x86_64.xml| 6 +- tests

[libvirt PATCH 1/9] conf: Use g_auto* in virCPUDefParseXML

2020-06-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/conf/cpu_conf.c | 130 +--- 1 file changed, 50 insertions(+), 80 deletions(-) diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c index 1d02e23175..25648a946c 100644 --- a/src/conf/cpu_conf.c +++ b/src/conf

[libvirt PATCH 9/9] qemu: Pass migratable=on|off property for -cpu host

2020-06-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/qemu/qemu_command.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 419eca5675..d9e99d9d1a 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -6254,6 +6254,21

[libvirt PATCH 3/9] qemu: Probe for migrtability support in CPU expansion

2020-06-05 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/qemu/qemu_capabilities.c | 12 +++- src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml | 1 + tests/qemucapabilitiesdata/caps_2.11.0.x86_64.xml | 1 + tests

[libvirt PATCH] cpu_map: Distribute x86_Cooperlake.xml

2020-05-26 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- I will push this as a build breaker once https://gitlab.com/jirkade/libvirt/pipelines/149651008 pipeline succeeds. src/cpu_map/Makefile.inc.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cpu_map/Makefile.inc.am b/src/cpu_map/Makefile.inc.am index

Re: [PATCH v2 1/1] qemuProcessRefreshCPU: skip 'host-model' logic for pSeries guests

2020-05-25 Thread Jiri Denemark
All other cpuArchDrivers implements update() and changes guest mode > to VIR_CPU_MODE_CUSTOM, meaning that PSeries is currently the only > exception to this logic. Let's make it official. > > https://bugzilla.redhat.com/show_bug.cgi?id=1660711 > > Suggested-by: Jiri Denemark > Signed-o

Re: [PATCH 5/5] qemuProcessUpdateCPU: do not change 'fallback' to ALLOW for pSeries guests

2020-05-25 Thread Jiri Denemark
All other cpuArchDrivers implements update() and changes guest mode > to VIR_CPU_MODE_CUSTOM, meaning that PSeries is currently the only > exception to this logic. Let's make it official. > > https://bugzilla.redhat.com/show_bug.cgi?id=1660711 > > CC: Jiri Denemark > Signed-off-by: Dan

Re: [PATCH 4/5] qemu_process.c: modernize qemuProcessUpdateCPU code path

2020-05-25 Thread Jiri Denemark
> 1 file changed, 17 insertions(+), 33 deletions(-) Reviewed-by: Jiri Denemark I pushed patches 1-4.

Re: [PATCH 3/5] cpu_s390.c: modernize virCPUs390Update

2020-05-25 Thread Jiri Denemark
On Fri, May 22, 2020 at 16:56:18 -0300, Daniel Henrique Barboza wrote: > Use automatic cleanup of variables. > > Signed-off-by: Daniel Henrique Barboza > --- > src/cpu/cpu_s390.c | 18 +++--- > 1 file changed, 7 insertions(+), 11 deletions(-) Reviewed-by: Jiri Denemark

Re: [PATCH 2/5] cpu_arm.c: modernize virCPUarmUpdate

2020-05-25 Thread Jiri Denemark
On Fri, May 22, 2020 at 16:56:17 -0300, Daniel Henrique Barboza wrote: > Use automatic cleanup of variables. > > Signed-off-by: Daniel Henrique Barboza > --- > src/cpu/cpu_arm.c | 14 +- > 1 file changed, 5 insertions(+), 9 deletions(-) Reviewed-by: Jiri Denemark

Re: [PATCH 1/5] cpu_conf.c: modernize virCPUDefCopyWithoutModel and virCPUDefCopy

2020-05-25 Thread Jiri Denemark
On Fri, May 22, 2020 at 16:56:16 -0300, Daniel Henrique Barboza wrote: > Use automatic cleanup of variables. > > Signed-off-by: Daniel Henrique Barboza > --- > src/conf/cpu_conf.c | 22 +++--- > 1 file changed, 7 insertions(+), 15 deletions(-) Reviewed-by: Jiri Denemark

[libvirt PATCH 0/3] cpu_map: Add Cooperlake x86 CPU model

2020-05-24 Thread Jiri Denemark
Jiri Denemark (3): cputest: Add data for Cooperlake CPU cpu_map: Add pschange-mc-no bit in IA32_ARCH_CAPABILITIES MSR cpu_map: Add Cooperlake x86 CPU model src/cpu_map/index.xml |1 + src/cpu_map/x86_Cooperlake.xml| 90 + src/cpu_map

[libvirt PATCH 1/3] cputest: Add data for Cooperlake CPU

2020-05-24 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- tests/cputest.c |1 + .../x86_64-cpuid-Cooperlake-disabled.xml |7 + .../x86_64-cpuid-Cooperlake-enabled.xml | 11 + .../x86_64-cpuid-Cooperlake-guest.xml | 40 + .../x86_64-cpuid-Cooperlake-host.xml

[libvirt PATCH 2/3] cpu_map: Add pschange-mc-no bit in IA32_ARCH_CAPABILITIES MSR

2020-05-24 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu_map/x86_features.xml | 3 +++ tests/cputestdata/x86_64-cpuid-Cooperlake-guest.xml| 1 + tests/cputestdata/x86_64-cpuid-Cooperlake-host.xml | 1 + tests/cputestdata/x86_64-cpuid-Cooperlake-json.xml

[libvirt PATCH 3/3] cpu_map: Add Cooperlake x86 CPU model

2020-05-24 Thread Jiri Denemark
The stepping range (10-11) is likely incomplete. QEMU uses 10 and the CPUID data for Cooperlake show 11. We will update the range if needed once more details about he CPU are available. Signed-off-by: Jiri Denemark --- src/cpu_map/index.xml | 1 + src/cpu_map

[libvirt PATCH v2 5/6] hostcpu: Implement virHostCPUGetSignature for s390

2020-05-22 Thread Jiri Denemark
Signed-off-by: Jiri Denemark Reviewed-by: Ján Tomko --- src/util/virhostcpu.c | 21 ++- .../linux-s390x-with-frequency.signature | 1 + 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 tests/virhostcpudata/linux-s390x

[libvirt PATCH 6/6] qemu: Invalidate capabilities when host CPU changes

2020-05-18 Thread Jiri Denemark
=1778819 Signed-off-by: Jiri Denemark --- src/qemu/qemu_capabilities.c | 24 src/qemu/qemu_capspriv.h | 1 + tests/qemucapsprobe.c| 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c

[libvirt PATCH 4/6] hostcpu: Implement virHostCPUGetSignature for ppc64

2020-05-18 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/util/virhostcpu.c | 58 --- .../linux-ppc64-deconf-cpus.signature | 1 + .../linux-ppc64-subcores1.signature | 1 + .../linux-ppc64-subcores2.signature | 1 + .../linux-ppc64-subcores3

[libvirt PATCH 2/6] hostcpu: Introduce virHostCPUGetSignature

2020-05-18 Thread Jiri Denemark
in the capabilities cache. In other words for archs that support host-model CPUs. Signed-off-by: Jiri Denemark --- src/libvirt_private.syms | 2 ++ src/util/virhostcpu.c | 37 ++ src/util/virhostcpu.h | 2 ++ src/util/virhostcpupriv.h | 4 tests/virhostcputest.c

[libvirt PATCH 3/6] hostcpu: Implement virHostCPUGetSignature for x86

2020-05-18 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/util/virhostcpu.c | 50 +-- .../linux-x86_64-test1.signature | 1 + .../linux-x86_64-test2.signature | 1 + .../linux-x86_64-test3.signature | 1 + .../linux-x86_64-test4

[libvirt PATCH 1/6] util: Define g_autoptr callback for FILE

2020-05-18 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/util/virfile.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/virfile.h b/src/util/virfile.h index 0a520a7522..7a92364a5c 100644 --- a/src/util/virfile.h +++ b/src/util/virfile.h @@ -89,6 +89,7 @@ static inline void virForceCloseHelper(int *fd

[libvirt PATCH 0/6] qemu: Invalidate capabilities when host CPU changes

2020-05-18 Thread Jiri Denemark
=1778819 Jiri Denemark (6): util: Define g_autoptr callback for FILE hostcpu: Introduce virHostCPUGetSignature hostcpu: Implement virHostCPUGetSignature for x86 hostcpu: Implement virHostCPUGetSignature for ppc64 hostcpu: Implement virHostCPUGetSignature for s390 qemu: Invalidate capabilities

[libvirt PATCH 5/6] hostcpu: Implement virHostCPUGetSignature for s390

2020-05-18 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/util/virhostcpu.c| 16 +++- .../linux-s390x-with-frequency.signature | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tests/virhostcpudata/linux-s390x-with-frequency.signature diff

[libvirt PATCH] cpu_arm: Drop unused variable

2020-05-15 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- Pushed. It is trivial and should fix the build on FreeBSD. src/cpu/cpu_arm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index 66f6942ab9..6f6c6a1479 100644 --- a/src/cpu/cpu_arm.c +++ b/src/cpu/cpu_arm.c @@ -325,7

Re: [PATCH V5 0/4] Introduce getHost support for ARM CPU driver

2020-05-15 Thread Jiri Denemark
PU driver > cpu_map: Introduce ARM cpu models Nice, there's a few minor issues that needs fixing, but since I already did all of them and really checked the code compiles fine after each patch and tested it can still detect the host CPU, I'll squash the suggested changes and push the series. Reviewed-by: Jiri Denemark

Re: [PATCH V5 2/4] cpu: Add helper functions to parse vendor and model

2020-05-15 Thread Jiri Denemark
On Wed, May 13, 2020 at 18:48:32 +0800, Zhenyu Zheng wrote: > Add helper functions to parse vendor and model for > ARM CPUs, and use them as callbacks when load cpu > maps. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/cpu_arm.c | 159 +- > 1 file

Re: [PATCH V5 3/4] cpu: Introduce getHost support for ARM CPU driver

2020-05-15 Thread Jiri Denemark
On Wed, May 13, 2020 at 18:48:34 +0800, Zhenyu Zheng wrote: > Introduce getHost support for ARM CPU driver, > read CPU vendor_id, part_id and flags from > registers directly. These codes will only be > compiled on aarch64 hardware. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/cpu_arm.c | 162

Re: [PATCH V5 4/4] cpu_map: Introduce ARM cpu models

2020-05-15 Thread Jiri Denemark
On Wed, May 13, 2020 at 18:48:36 +0800, Zhenyu Zheng wrote: > Introduce vendors and some commonly used models > for ARM arch, these will be used for virConnectionGetCapabilities > for ARM CPUs. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu_map/Makefile.inc.am | 7 +++ >

Re: [PATCH V5 1/4] cpu: Introduce virCPUarmData and related struts

2020-05-15 Thread Jiri Denemark
On Wed, May 13, 2020 at 18:48:30 +0800, Zhenyu Zheng wrote: > Introduce virCPUarmData to virCPUData and related > structs to cpu_arm.c for ARM cpus. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/Makefile.inc.am | 1 + > src/cpu/cpu.h | 2 ++ > src/cpu/cpu_arm.c | 80

[libvirt PATCH] cpu: Properly define g_autoptr for virCPUData

2020-05-15 Thread Jiri Denemark
The structure is not specific to x86 and thus its cleanup function should be defined in cpu.h and be available to all users. Signed-off-by: Jiri Denemark --- src/cpu/cpu.h | 1 + src/cpu/cpu_x86.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/cpu.h b/src/cpu

Re: [libvirt PATCH] qemu: reject readonly attribute for virtiofs

2020-05-13 Thread Jiri Denemark
On Wed, May 13, 2020 at 12:30:48 +0100, Daniel P. Berrangé wrote: > On Wed, May 13, 2020 at 01:19:35PM +0200, Andrea Bolognani wrote: ... > > I completely agree, #nnn is too ambiguous to be useful. > > The widespread usage by any other project using GitLab/GitHub proves > otherwise and libvirt

Re: [PATCH V3 1/5] cpu_map: Introduce ARM cpu models

2020-05-12 Thread Jiri Denemark
On Wed, Apr 22, 2020 at 15:11:16 +0800, ZhengZhenyu wrote: > Introduce vendors and some commonly used models > for ARM arch, these will be used for virConnectionGetCapabilities > for ARM CPUs. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu_map/Makefile.inc.am | 7 +++ >

Re: [PATCH V3 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-05-12 Thread Jiri Denemark
On Wed, Apr 22, 2020 at 15:11:24 +0800, ZhengZhenyu wrote: > Introduce getHost support for ARM CPU driver, read > CPU vendor_id, part_id and flags from registers > directly. These codes will only be compiled on > aarch64 hardwares. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/cpu_arm.c | 204

Re: [PATCH V3 4/5] cpu: Add helper funtions to parse vendor and model

2020-05-12 Thread Jiri Denemark
On Wed, Apr 22, 2020 at 15:11:22 +0800, ZhengZhenyu wrote: > Add helper functions to parse vendor and model from > xml for ARM arch, and use them as callbacks when > load cpu maps. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/cpu_arm.c | 173 +- >

Re: [PATCH V3 3/5] cpu: Introduce ARM related structs

2020-05-12 Thread Jiri Denemark
On Wed, Apr 22, 2020 at 15:11:20 +0800, ZhengZhenyu wrote: > Introduce vendor and model struct and related > cleanup functions for ARM cpu. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/cpu_arm.c | 73 +++ > 1 file changed, 73 insertions(+) > >

Re: [PATCH V3 2/5] cpu: Introduce virCPUarmData to virCPUData

2020-05-12 Thread Jiri Denemark
On Wed, Apr 22, 2020 at 15:11:18 +0800, ZhengZhenyu wrote: > Introduce virCPUarmData to virCPUData > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/Makefile.inc.am | 1 + > src/cpu/cpu.h | 2 ++ > src/cpu/cpu_arm_data.h | 31 +++ > 3 files changed, 34

Re: [PATCH V3 0/5] Introduce getHost support for ARM CPU driver

2020-05-12 Thread Jiri Denemark
On Wed, Apr 22, 2020 at 15:11:14 +0800, ZhengZhenyu wrote: > Introduce getHost support for ARM CPU driver. First add > some data about commonly used ARM CPU models, and their > vendors into cpu_map, then added some helper methods as > callbacks to load them. Read and parse vendor_id, part_id > and

[libvirt PATCH] cputest: Add data for AMD Ryzen 9 3900X 12-Core Processor

2020-05-06 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- tests/cputest.c |1 + ...4-cpuid-Ryzen-9-3900X-12-Core-disabled.xml |8 + ...64-cpuid-Ryzen-9-3900X-12-Core-enabled.xml | 10 + ...6_64-cpuid-Ryzen-9-3900X-12-Core-guest.xml | 28 + ...86_64-cpuid-Ryzen-9-3900X-12-Core

[libvirt PATCH] qemu: Don't use CPU from host capabilities as host-model on ARM

2020-05-06 Thread Jiri Denemark
in the future. Such enhancement should exclusively use the result of query-cpu-model-expansion. Until proper host-model support is implemented for ARM (if ever), we need to make sure the detected host CPU is not accidentally used for host-model CPUs. Signed-off-by: Jiri Denemark --- src/qemu

Re: [PATCH V3 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-29 Thread Jiri Denemark
Hi. On Wed, Apr 29, 2020 at 16:03:19 +0800, Zhenyu Zheng wrote: > Hi Jiri, > > Thanks alot for the help, I've updated the series to v4 and also attached > pipeline results for each patch as suggested. I explicitly said you don't have to send a new version just for that small issue... And I

Re: [PATCH V3 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-28 Thread Jiri Denemark
On Wed, Apr 22, 2020 at 15:14:01 +0800, Zhenyu Zheng wrote: > gitlab CI testing as suggested: > https://gitlab.com/ZhengZhenyu/libvirt/pipelines/134657317 Sending results of CI pipeline makes sense only when the code submitted for CI is exactly the same as submitted for review. You should just

Re: [PATCH V2 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-20 Thread Jiri Denemark
On Fri, Apr 17, 2020 at 16:53:18 +0800, Zhenyu Zheng wrote: > Ping for reviews Could you please resend the new version of patches as a separate series (don't forget to update the subject to v3)? Hunting for the new patches hidden in random replies to the reviewers comments or original patches is

[libvirt PATCH] util: Do not include sys/wait.h on Win32

2020-04-17 Thread Jiri Denemark
This fixes build on mingw broken by my previous commit 36e125296a. Signed-off-by: Jiri Denemark --- Pushed. src/util/virdaemon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/virdaemon.c b/src/util/virdaemon.c index 6182ca3c21..31cc24e703 100644 --- a/src

[libvirt PATCH] util: Fix virDaemonForkIntoBackground

2020-04-16 Thread Jiri Denemark
waiting for child processes) is no longer needed and it is effectively reverted by this commit. Signed-off-by: Jiri Denemark --- src/util/virdaemon.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/util/virdaemon.c b/src/util/virdaemon.c index 99530fd146

Re: [libvirt] [PATCH] qemu: fix hang in p2p + xbzrle compression + parallel migration

2020-04-16 Thread Jiri Denemark
_SIZE].set) { > *flags |= VIR_MIGRATE_COMPRESSED; > -return 0; > } > > for (i = 0; i < QEMU_MIGRATION_COMPRESS_LAST; ++i) { Oops, looks like a leftover from the past when xbzrle-cache-size was the only parameter. Reviewed-by: Jiri Denemark

Re: [PATCH V2 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-09 Thread Jiri Denemark
On Thu, Apr 02, 2020 at 17:03:59 +0800, Zhenyu Zheng wrote: > Introduce getHost support for ARM CPU driver, read > CPU vendor_id, part_id and flags from registers > directly. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/cpu_arm.c | 194 +- > 1 file

Re: [PATCH V2 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-09 Thread Jiri Denemark
On Thu, Apr 09, 2020 at 11:28:04 +0100, Daniel P. Berrangé wrote: > On Thu, Apr 02, 2020 at 05:03:59PM +0800, Zhenyu Zheng wrote: > > Introduce getHost support for ARM CPU driver, read > > CPU vendor_id, part_id and flags from registers > > directly. > > > > Signed-off-by: Zhenyu Zheng > > --- >

Re: [libvirt PATCH 36/39] cpu_x86: Add support for stepping part of CPU signature

2020-04-08 Thread Jiri Denemark
On Tue, Apr 07, 2020 at 17:36:18 +0200, Ján Tomko wrote: > On a Friday in 2020, Jiri Denemark wrote: > >CPU models defined in the cpu_map can use signature/@stepping attribute > >to match a limited set of stepping numbers. The value is a bitmap for > >bits 0..15 each corr

Re: [libvirt PATCH 15/39] cpu_x86: Use g_auto* in x86Compute

2020-04-07 Thread Jiri Denemark
On Tue, Apr 07, 2020 at 12:08:37 +0200, Ján Tomko wrote: > On a Friday in 2020, Jiri Denemark wrote: > >Signed-off-by: Jiri Denemark > >--- > > src/cpu/cpu_x86.c | 64 ++- > > 1 file changed, 24 insertions(+), 40 deletions(-)

Re: [libvirt PATCH 01/39] cpu_x86: Drop noTSX hint for incompatible CPUs

2020-04-07 Thread Jiri Denemark
On Tue, Apr 07, 2020 at 08:39:10 +0200, Ján Tomko wrote: > On a Friday in 2020, Jiri Denemark wrote: > >The hint was introduced a long time ago when broken TSX implementation > >was found in Haswell and Broadwell CPUs. Since then many more CPUs with > >TSX were introduced

Re: [PATCH 2/3] qemuBlockStorageSourceGetURI: Properly preserve query component

2020-03-30 Thread Jiri Denemark
On Fri, Mar 27, 2020 at 16:51:20 +0100, Peter Krempa wrote: > Look for the questionmark in the name and move the contents into the > query portion so that we format the URI back properly. > > Signed-off-by: Peter Krempa > --- > src/qemu/qemu_block.c | 6 ++ > 1 file changed, 6 insertions(+)

[libvirt PATCH] docs: Clarify semantics of model/@usable attribute in dom caps

2020-03-27 Thread Jiri Denemark
The documentation could confuse people to expect that CPU models with usable='no' attribute are not usable at all on the current host. But they cannot be only used without explicitly disabling some features. Signed-off-by: Jiri Denemark --- docs/formatdomaincaps.html.in | 8 +--- 1 file

[libvirt PATCH 08/39] cpu_x86: Use g_auto* in x86DataToCPU

2020-03-27 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index fce7a2b8c5..d0ef66f1e3 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -771,9 +771,9 @@ x86DataToCPU

[libvirt PATCH 16/39] cpu_x86: Use g_auto* in virCPUx86Compare

2020-03-27 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 6758fcc170..e4e21fbed4 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -1848,34 +1848,31

[libvirt PATCH 28/39] cpu_x86: Use g_auto* in virCPUx86CopyMigratable

2020-03-27 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index a65215caed..16e73b5b98 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -3113,7 +3113,7

[libvirt PATCH 27/39] cpu_x86: Use g_auto* in virCPUx86ExpandFeatures

2020-03-27 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 3f6d889722..a65215caed 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -3059,30 +3059,29 @@ static

[libvirt PATCH 24/39] cpu_x86: Use g_auto* in virCPUx86Update

2020-03-27 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 9f6027ec5c..8da8b3ada2 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -2857,9 +2857,8 @@ static int

[libvirt PATCH 38/39] cputest: Add data for Intel(R) Xeon(R) Gold 6130 CPU

2020-03-27 Thread Jiri Denemark
Skylake-Server with family 6, model 85, stepping 4, which is currently mis-detected as Cascadelake-Server CPU model. Signed-off-by: Jiri Denemark --- tests/cputest.c |1 + .../x86_64-cpuid-Xeon-Gold-6130-disabled.xml |7 + .../x86_64-cpuid-Xeon-Gold-6130

[libvirt PATCH 14/39] cpu_x86: Use g_auto* in virCPUx86DataParse

2020-03-27 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index ba269df66d..6c3f9fc0be 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -1636,8 +1636,8

[libvirt PATCH 30/39] cpu_x86: Move and rename x86ModelHasSignature

2020-03-27 Thread Jiri Denemark
Later in this series the function will work on a newly introduced virCPUx86Signatures structure. Let's move it to the place were all related functions will be added and rename the function as virCPUx86SignaturesMatch for easier review of the virCPUx86Signatures patch. Signed-off-by: Jiri Denemark

[libvirt PATCH 33/39] cpu_x86: Introduce virCPUx86SignatureFromCPUID

2020-03-27 Thread Jiri Denemark
It can be used for separating family, model, and stepping numbers from a single 32b integer as reported by CPUID. Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c

[libvirt PATCH 22/39] cpu_x86: Use g_auto* in virCPUx86Baseline

2020-03-27 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 46 +- 1 file changed, 17 insertions(+), 29 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 7bd19a1676..ccbae3dabd 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c

[libvirt PATCH 07/39] cpu_x86: Use glib allocation in virCPUx86GetModels

2020-03-27 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index bcb87d6f93..fce7a2b8c5 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -3123,21 +3123,13 @@ virCPUx86GetModels

[libvirt PATCH 37/39] cputest: Add data for Intel(R) Xeon(R) Platinum 9242 CPU

2020-03-27 Thread Jiri Denemark
Cascadelake-Server with family 6, model 85, stepping 7. Signed-off-by: Jiri Denemark --- tests/cputest.c |1 + ...6_64-cpuid-Xeon-Platinum-9242-disabled.xml |7 + ...86_64-cpuid-Xeon-Platinum-9242-enabled.xml | 10 + .../x86_64-cpuid-Xeon-Platinum-9242

[libvirt PATCH 35/39] cpu_x86: Don't check return value of x86ModelCopy

2020-03-27 Thread Jiri Denemark
Thanks to glib allocation functions which abort on OOM the function cannot ever return NULL. Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index ed6c1b43d3..51c98efca9

[libvirt PATCH 31/39] cpu_x86: Move and rename x86FormatSignatures

2020-03-27 Thread Jiri Denemark
Later in this series the function will work on a newly introduced virCPUx86Signatures structure. Let's move it to the place were all related functions will be added and rename the function as virCPUx86SignaturesFormat for easier review of the virCPUx86Signatures patch. Signed-off-by: Jiri

[libvirt PATCH 26/39] cpu_x86: Use g_auto* in virCPUx86Translate

2020-03-27 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 26 ++ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 0be2cf517d..3f6d889722 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -3019,45 +3019,39

[libvirt PATCH 36/39] cpu_x86: Add support for stepping part of CPU signature

2020-03-27 Thread Jiri Denemark
to stepping='0-15'. Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 60 +++ 1 file changed, 50 insertions(+), 10 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 51c98efca9..bd224a9d0d 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu

[libvirt PATCH 34/39] cpu_x86: Replace 32b signatures in virCPUx86Model with a struct

2020-03-27 Thread Jiri Denemark
The CPU models in our cpu_map define their signatures using separate family and model numbers. Let's store the signatures in the same way in our runtime representation of the cpu_map. Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 149 +- 1 file

[libvirt PATCH 39/39] cpu_map: Distinguish Cascadelake-Server from Skylake-Server

2020-03-27 Thread Jiri Denemark
The signatures of these two CPU model differ only in stepping as both report family 6 and model 85. Skylake-Server uses stepping 4 or less and Cascadelake-Server uses stepping 5..7. https://bugzilla.redhat.com/show_bug.cgi?id=1761678 Signed-off-by: Jiri Denemark --- src/cpu_map/x86_Cascadelake

[libvirt PATCH 32/39] cpu_x86: Introduce virCPUx86SignaturesFree

2020-03-27 Thread Jiri Denemark
The function will be used for freeing virCPUx86Signatures structure introduced later in this series. Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 182d0da97c

[libvirt PATCH 21/39] cpu_x86: Use g_auto* in virCPUx86GetHost

2020-03-27 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 3b3a428ecd..7bd19a1676 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -2641,18 +2641,18 @@ static int

[libvirt PATCH 29/39] cpu_x86: Move and rename x86ModelCopySignatures

2020-03-27 Thread Jiri Denemark
Later in this series the function will work on a newly introduced virCPUx86Signatures structure. Let's move it to the place were all related functions will be added and rename the function as virCPUx86SignaturesCopy for easier review of the virCPUx86Signatures patch. Signed-off-by: Jiri Denemark

[libvirt PATCH 25/39] cpu_x86: Use g_auto* in virCPUx86UpdateLive

2020-03-27 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 42 +++--- 1 file changed, 15 insertions(+), 27 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 8da8b3ada2..0be2cf517d 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c

[libvirt PATCH 00/39] Distinguish Cascadelake-Server from Skylake-Server

2020-03-27 Thread Jiri Denemark
The signatures of these two CPU model differ only in stepping as both report family 6 and model 85. Skylake-Server uses stepping 4 or less and Cascadelake-Server uses stepping 5..7. https://bugzilla.redhat.com/show_bug.cgi?id=1761678 Jiri Denemark (39): cpu_x86: Drop noTSX hint

[libvirt PATCH 17/39] cpu_x86: Use g_auto* in x86Decode

2020-03-27 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index e4e21fbed4..26d872622e 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -2034,15 +2034,14

<    6   7   8   9   10   11   12   13   14   15   >