Re: [PATCH 1/2] qemu_migration: set bandwidth in priv during migration

2021-10-08 Thread Jiri Denemark
QEMU instead when miration is running. But I guess this is good enough. Reviewed-by: Jiri Denemark

Re: [libvirt PATCH v2 1/2] qemu: remove use of (+|-)name syntax for -cpu featres

2021-10-07 Thread Jiri Denemark
On Thu, Oct 07, 2021 at 11:09:19 +0100, Daniel P. Berrangé wrote: > On Thu, Oct 07, 2021 at 11:53:00AM +0200, Jiri Denemark wrote: > > On Thu, Oct 07, 2021 at 10:05:12 +0100, Daniel P. Berrangé wrote: > > > The -cpu arg gained support for feature=on|off syntax for the x86 >

Re: [libvirt PATCH v2 1/2] qemu: remove use of (+|-)name syntax for -cpu featres

2021-10-07 Thread Jiri Denemark
On Thu, Oct 07, 2021 at 10:05:12 +0100, Daniel P. Berrangé wrote: > The -cpu arg gained support for feature=on|off syntax for the x86 > emulator in 2.4.0 > > commit 38e5c119c2925812bd441450ab9e5e00fc79e662 > Author: Eduardo Habkost > Date: Mon Mar 23 17:29:32 2015 -0300 > >

Release of libvirt-7.8.0

2021-10-01 Thread Jiri Denemark
The 7.8.0 release of both libvirt and libvirt-python is tagged and signed tarballs and source RPMs are available at https://libvirt.org/sources/ https://libvirt.org/sources/python/ Thanks everybody who helped with this release by sending patches, reviewing, testing, or providing

libvirt-7.8.0 release candidate 2

2021-09-29 Thread Jiri Denemark
I have just tagged v7.8.0-rc2 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

Entering freeze for libvirt-7.8.0

2021-09-27 Thread Jiri Denemark
I have just tagged v7.8.0-rc1 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

Plans for the next release

2021-09-21 Thread Jiri Denemark
We are getting close to the next release of libvirt. To aim for the release on Oct 01 I suggest entering the freeze on Monday Sep 27 and tagging RC2 on Wednesday Sep 29. I hope this works for everyone. Jirka

Re: [libvirt PATCH] gitlab: remove obsolete job rules for TEMPORARILY_DISABLED variable

2021-09-20 Thread Jiri Denemark
> > ci: re-generate containers/gitlab config from manifest > > Signed-off-by: Daniel P. Berrangé > --- > .gitlab-ci.yml | 8 > 1 file changed, 8 deletions(-) Reviewed-by: Jiri Denemark

[libvirt PATCH] virsh: Make code flow in cmdManagedSaveRemove more straightforward

2021-09-15 Thread Jiri Denemark
By doing so we can get rid of the code which violates our coding style guidelines. Signed-off-by: Jiri Denemark --- tools/virsh-domain.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index e5bd1fdd75

Re: [PATCH 0/2] virsh: Fix fallback code path for vcpuinfo

2021-09-15 Thread Jiri Denemark
ns(+), 8 deletions(-) Reviewed-by: Jiri Denemark

Release of libvirt-7.7.0

2021-09-01 Thread Jiri Denemark
The 7.7.0 release of both libvirt and libvirt-python is tagged and signed tarballs and source RPMs are available at https://libvirt.org/sources/ https://libvirt.org/sources/python/ Thanks everybody who helped with this release by sending patches, reviewing, testing, or providing any

Re: [libvirt PATCH] qemu, xen: add missing deps on virtlockd/virtlogd sockets

2021-08-31 Thread Jiri Denemark
> daemons. As a result the virtlockd/virtlogd sockets are not started > when the virtqemud/virtxend daemons are started. > > Signed-off-by: Daniel P. Berrangé > --- > src/libxl/virtxend.service.in | 2 ++ > src/qemu/virtqemud.service.in | 4 > 2 files changed, 6 insertions(+) Reviewed-by: Jiri Denemark

Re: [libvirt PATCH] rpm: fix typo in post transaction scriptlet name

2021-08-31 Thread Jiri Denemark
t; --- a/libvirt.spec.in > +++ b/libvirt.spec.in > @@ -1441,7 +1441,7 @@ fi > %preun daemon-driver-secret > %libvirt_daemon_systemd_preun virtsecretd > > -%posttranstrans daemon-driver-secret > +%posttrans daemon-driver-secret > %libvirt_daemon_perform_restart virtsecretd Reviewed-by: Jiri Denemark

libvirt-7.7.0 release candidate 2

2021-08-30 Thread Jiri Denemark
I have just tagged v7.7.0-rc2 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

Entering freeze for libvirt-7.7.0

2021-08-26 Thread Jiri Denemark
I have just tagged v7.7.0-rc1 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

[libvirt PATCH] util: Fix memory leak when clearing Open vSwitch QoS

2021-08-12 Thread Jiri Denemark
No need to overwrite vmid_ex_id with a pointer to another copy of the same string when the original is still alive. Signed-off-by: Jiri Denemark --- src/util/virnetdevopenvswitch.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/virnetdevopenvswitch.c b/src/util

Plans for the next release

2021-08-12 Thread Jiri Denemark
I'm sending this early as I'll be out until Aug 25, but don't worry I'll be back in time to handle the whole release process. To aim for the release on Sep 01 I suggest entering the freeze on Thursday Aug 26 and tagging RC2 on Monday Aug 30. I hope this works for everyone. Jirka

Re: [libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

2021-08-11 Thread Jiri Denemark
On Fri, Aug 06, 2021 at 18:12:21 +0100, Daniel P. Berrangé wrote: > On Fri, Aug 06, 2021 at 05:07:45PM +0200, Jiri Denemark wrote: > > On Thu, Aug 05, 2021 at 14:50:51 +0100, Daniel P. Berrangé wrote: > > > On Thu, Aug 05, 2021 at 03:36:37PM +0200, Tim Wiederhake wrote: > >

Re: [libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

2021-08-06 Thread Jiri Denemark
On Thu, Aug 05, 2021 at 14:50:51 +0100, Daniel P. Berrangé wrote: > On Thu, Aug 05, 2021 at 03:36:37PM +0200, Tim Wiederhake wrote: > > The kernel command line can contain settings affecting the availability > > of cpu features, eg. "tsx=on". This series adds the kernel command line > > to the cpu

Release of libvirt-7.6.0

2021-08-02 Thread Jiri Denemark
The 7.6.0 release of both libvirt and libvirt-python is tagged and signed tarballs and source RPMs are available at https://libvirt.org/sources/ https://libvirt.org/sources/python/ Thanks everybody who helped with this release by sending patches, reviewing, testing, or providing any

Re: [PATCH] qemu_migration: Unregister close callback only if connection still exists

2021-07-21 Thread Jiri Denemark
back(dconn, > qemuMigrationSrcConnectionClosed); > +ignore_value(qemuDomainObjExitRemote(vm, false)); > +} > virErrorRestore(_err); > return ret; > } Reviewed-by: Jiri Denemark

Plans for the next release

2021-07-20 Thread Jiri Denemark
We are getting close to the next release of libvirt. To aim for the release on Aug 02 I suggest entering the freeze on Tuesday Jul 27 and tagging RC2 on Thursday Jul 29. I'll be on PTO next week and thus I won't be able to make the RC releases, Pavel Hrdina volunteered to make them while I'm

Re: [libvirt PATCH] qemu: Signal domain condition in qemuProcessStop a bit later

2021-07-19 Thread Jiri Denemark
On Mon, Jul 19, 2021 at 09:37:01 +0200, Michal Prívozník wrote: > On 7/16/21 5:06 PM, Jiri Denemark wrote: > > Signaling the condition before vm->def->id is reset to -1 is dangerous: > > in case a waiting thread wakes up, it does not see anything interesting > >

[libvirt PATCH] qemu: Signal domain condition in qemuProcessStop a bit later

2021-07-16 Thread Jiri Denemark
in is not active anymore. https://bugzilla.redhat.com/show_bug.cgi?id=1949869 Signed-off-by: Jiri Denemark --- src/qemu/qemu_process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index c972c90801..914f936e45 100644 --- a

Release of libvirt-7.5.0

2021-07-01 Thread Jiri Denemark
The 7.5.0 release of both libvirt and libvirt-python is tagged and signed tarballs and source RPMs are available at https://libvirt.org/sources/ https://libvirt.org/sources/python/ Thanks everybody who helped with this release by sending patches, reviewing, testing, or providing any

libvirt-7.5.0 release candidate 2

2021-06-29 Thread Jiri Denemark
I have just tagged v7.5.0-rc2 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

Entering freeze for libvirt-7.5.0

2021-06-25 Thread Jiri Denemark
I have just tagged v7.5.0-rc1 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

Re: [PATCH] tests: qemucapabilities: Bump test data for qemu-6.1 on x86_64

2021-06-24 Thread Jiri Denemark
gt; Signed-off-by: Peter Krempa > --- > .../caps_6.1.0.x86_64.replies | 3663 ++--- > .../caps_6.1.0.x86_64.xml | 366 +- > 2 files changed, 2525 insertions(+), 1504 deletions(-) Reviewed-by: Jiri Denemark

[libvirt PATCH] spec: Drop libiscsi support in RHEL-9

2021-06-24 Thread Jiri Denemark
https://bugzilla.redhat.com/show_bug.cgi?id=1975677 Signed-off-by: Jiri Denemark --- libvirt.spec.in | 4 1 file changed, 4 insertions(+) diff --git a/libvirt.spec.in b/libvirt.spec.in index b8a698e81e..c1ccd2f74e 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -85,6 +85,10

Plans for the next release

2021-06-18 Thread Jiri Denemark
We are getting close to the next release of libvirt. To aim for the release on Jul 01 I suggest entering the freeze on Friday Jun 25 and tagging RC2 on Tuesday Jun 29. I hope this works for everyone. Jirka

Release of libvirt-7.4.0

2021-06-01 Thread Jiri Denemark
The 7.4.0 release of both libvirt and libvirt-python is tagged and signed tarballs and source RPMs are available at https://libvirt.org/sources/ https://libvirt.org/sources/python/ Thanks everybody who helped with this release by sending patches, reviewing, testing, or providing any

Re: [PATCH] NEWS: disks: Mention improvements and XML fix

2021-06-01 Thread Jiri Denemark
rovements** > >* Add win-dmp crashdump format > @@ -29,6 +40,10 @@ v7.4.0 (unreleased) > > * **Bug fixes** > > + * Allow 0 offset in XML schema for `` size='321'/>`` > + > +Having a 0 offset so that the size of the image can be limited is a > +valid configuration so it was allowd in the XML schema. s/allowd/allowed/ Reviewed-by: Jiri Denemark

libvirt-7.4.0 release candidate 2

2021-05-27 Thread Jiri Denemark
I have just tagged v7.4.0-rc2 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

Re: Entering freeze for libvirt-7.4.0

2021-05-27 Thread Jiri Denemark
On Wed, May 26, 2021 at 11:37:48 -0500, Jonathon Jongsma wrote: > On Tue, May 25, 2021 at 10:12 AM Jiri Denemark wrote: > > > > I have just tagged v7.4.0-rc1 in the repository and pushed signed > > tarballs and source RPMs to https://libvirt.org/sources/ > > > >

Entering freeze for libvirt-7.4.0

2021-05-25 Thread Jiri Denemark
I have just tagged v7.4.0-rc1 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

Plans for the next release

2021-05-19 Thread Jiri Denemark
We are getting close to the next release of libvirt. To aim for the release on Jun 01 I suggest entering the freeze on Tuesday May 25 and tagging RC2 on Thursday May 27. I hope this works for everyone. Jirka

Re: [PATCH 4/4] tests: qemucapabilities: Add test-data for the qemu-6.1 cycle

2021-05-17 Thread Jiri Denemark
On Mon, May 17, 2021 at 11:16:35 +0200, Peter Krempa wrote: > Add test data based on qemu commit v6.0.0-540-g6005ee07c3. > > Notable changes are the removal of 'sheepdog' disk storage protocol. > > Additionally the cpu model reported when probing seems to have changed > from: > > "model-id":

Release of libvirt-7.3.0

2021-05-03 Thread Jiri Denemark
The 7.3.0 release of both libvirt and libvirt-python is tagged and signed tarballs and source RPMs are available at https://libvirt.org/sources/ https://libvirt.org/sources/python/ Thanks everybody who helped with this release by sending patches, reviewing, testing, or providing any

Re: [PATCH for 7.3] conf: Fix heap corruption when hot-adding a lease

2021-05-03 Thread Jiri Denemark
g VIR_EXPAND_N instead solves both issues and we have a lot places with VIR_EXPAND_N so we can fix them all at some point if we want to drop this wrapper for some reason. Reviewed-by: Jiri Denemark

[libvirt PATCH] virnetdevbridge: Ignore EEXIST when adding an entry to fdb

2021-04-30 Thread Jiri Denemark
STOP event from QEMU. An alternative approach would be to make sure we always remove the entries regardless on why a domain was paused (e.g., during migration), but that would be a significantly more disruptive change with possible side effects. Signed-off-by: Jiri Denemark --- src/util

libvirt-7.3.0 release candidate 2

2021-04-29 Thread Jiri Denemark
I have just tagged v7.3.0-rc2 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

Entering freeze for libvirt-7.3.0

2021-04-27 Thread Jiri Denemark
I have just tagged v7.3.0-rc1 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

[libvirt PATCH] spec: Do not build qemu driver for Power on RHEL-9

2021-04-21 Thread Jiri Denemark
https://bugzilla.redhat.com/show_bug.cgi?id=1946529 Signed-off-by: Jiri Denemark --- libvirt.spec.in | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index f9af330186..be74964b7b 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in

Plans for the next release

2021-04-19 Thread Jiri Denemark
We are getting close to the next release of libvirt. To aim for the release on May 03 I suggest entering the freeze on Tuesday Apr 27 and tagging RC2 on Thursday Apr 29 in the afternoon. I hope this works for everyone. Jirka

[libvirt PATCH v2] downloads.html: Add a link to GPG key used signing releases

2021-04-09 Thread Jiri Denemark
While the key is available on public GPG key servers, having it locally at https://libvirt.org/sources/gpg_key.asc is even better. Signed-off-by: Jiri Denemark --- Notes: Version 2: - moved the new sentence to a dedicated paragraph as suggested by Andrea docs/downloads.html.in | 6

Re: [libvirt PATCH] downloads.html: Add a link to GPG key used signing releases

2021-04-09 Thread Jiri Denemark
On Thu, Apr 01, 2021 at 20:18:33 +0200, Ján Tomko wrote: > On a Thursday in 2021, Jiri Denemark wrote: > >While the key is available on public GPG key servers, having it locally > >at https://libvirt.org/sources/gpg_key.asc is even better. > > Oops, I completely forgot I hav

[libvirt PATCH] downloads.html: Add a link to GPG key used signing releases

2021-04-01 Thread Jiri Denemark
While the key is available on public GPG key servers, having it locally at https://libvirt.org/sources/gpg_key.asc is even better. Signed-off-by: Jiri Denemark --- docs/downloads.html.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/downloads.html.in b/docs

Release of libvirt-7.2.0

2021-04-01 Thread Jiri Denemark
The 7.2.0 release of both libvirt and libvirt-python is tagged and signed tarballs and source RPMs are available at https://libvirt.org/sources/ https://libvirt.org/sources/python/ Thanks everybody who helped with this release by sending patches, reviewing, testing, or providing any

libvirt-7.2.0 release candidate 2

2021-03-30 Thread Jiri Denemark
I have just tagged v7.2.0-rc2 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

Re: [PATCH] qemu_driver: Acquire MODIFY job in qemuDomainStartDirtyRateCalc()

2021-03-29 Thread Jiri Denemark
mainStartDirtyRateCalc(virDomainPtr dom, > if (virDomainStartDirtyRateCalcEnsureACL(dom->conn, vm->def) < 0) > goto cleanup; > > -if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_QUERY) < 0) > +if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_MODIFY) < 0) > goto cleanup; > > if (!virDomainObjIsActive(vm)) { Reviewed-by: Jiri Denemark

Entering freeze for libvirt-7.2.0

2021-03-26 Thread Jiri Denemark
I have just tagged v7.2.0-rc1 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

Re: [libvirt PATCH v3 0/3] qemuProcessUpdateGuestCPU: Check host cpu for forbidden features

2021-03-26 Thread Jiri Denemark
; 6 files changed, 56 insertions(+), 2 deletions(-) > > --=20 > 2.26.2 Reviewed-by: Jiri Denemark and pushed, thanks.

Re: [libvirt PATCH] qemu: Update asyncOwnerAPI when entering async job phase

2021-03-22 Thread Jiri Denemark
On Mon, Mar 22, 2021 at 11:17:12 +0100, Michal Privoznik wrote: > On 3/19/21 10:42 PM, Jiri Denemark wrote: > > In case an async job spans multiple APIs (e.g., incoming migration) the > > API that started the job is recorded as the asyncOwnerAPI even though it > >

[libvirt PATCH 6/7] Do not check return value of VIR_REALLOC_N

2021-03-19 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/bhyve/bhyve_parse_command.c | 8 +++--- src/conf/capabilities.c | 3 +-- src/conf/domain_conf.c | 11 src/conf/storage_conf.c | 3 +-- src/conf/virinterfaceobj.c | 2 +- src

[libvirt PATCH 4/7] Do not check return value of VIR_EXPAND_N

2021-03-19 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/access/viraccessdriverstack.c | 3 +- src/conf/backup_conf.c| 3 +- src/conf/capabilities.c | 4 +- src/conf/domain_addr.c| 6 +-- src/conf/domain_conf.c

[libvirt PATCH 3/7] util: Make virResizeN return void

2021-03-19 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/util/viralloc.c | 17 + src/util/viralloc.h | 4 ++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/util/viralloc.c b/src/util/viralloc.c index 1317537c8a..cd770eb601 100644 --- a/src/util/viralloc.c +++ b/src/util

[libvirt PATCH 1/7] util: Drop G_GNUC_WARN_UNUSED_RESULT from reallocation APIs

2021-03-19 Thread Jiri Denemark
Our reallocation APIs already abort on OOM and thus can only return 0. There's no need to force callers to check the result. Signed-off-by: Jiri Denemark --- src/util/viralloc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/viralloc.h b/src/util/viralloc.h

[libvirt PATCH 2/7] Do not check return value of VIR_RESIZE_N

2021-03-19 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/bhyve/bhyve_capabilities.c | 5 + src/bhyve/bhyve_parse_command.c | 11 ++ src/conf/capabilities.c | 36 - src/conf/cpu_conf.c | 11 ++ src/conf/domain_capabilities.c | 5 ++--- src

[libvirt PATCH 0/7] Change reallocation APIs to return void

2021-03-19 Thread Jiri Denemark
They can never return anything but zero anyway. Jiri Denemark (7): util: Drop G_GNUC_WARN_UNUSED_RESULT from reallocation APIs Do not check return value of VIR_RESIZE_N util: Make virResizeN return void Do not check return value of VIR_EXPAND_N util: Make virExpandN return void Do

[libvirt PATCH 5/7] util: Make virExpandN return void

2021-03-19 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/util/viralloc.c | 14 ++ src/util/viralloc.h | 4 ++-- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/util/viralloc.c b/src/util/viralloc.c index cd770eb601..81f5ba9a09 100644 --- a/src/util/viralloc.c +++ b/src/util

[libvirt PATCH 7/7] util: Make virReallocN return void

2021-03-19 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/util/viralloc.c | 13 + src/util/viralloc.h | 4 ++-- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/util/viralloc.c b/src/util/viralloc.c index 81f5ba9a09..cd7ae9e7d1 100644 --- a/src/util/viralloc.c +++ b/src/util

[libvirt PATCH] qemu: Drop redundant checks for qemuCaps before virQEMUCapsGet

2021-03-19 Thread Jiri Denemark
virQEMUCapsGet checks for qemuCaps itself, no need to do it explicitly. Signed-off-by: Jiri Denemark --- src/qemu/qemu_domain.c | 5 + src/qemu/qemu_process.c | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index

[libvirt PATCH 1/2] qemu: Use g_autofree in qemuMigrationJobCheckStatus

2021-03-19 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/qemu/qemu_migration.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 79dcb4a15d..ba2ee4f081 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu

[libvirt PATCH 2/2] qemu: Use g_autoptr in qemuMonitorJSONSetCapabilities

2021-03-19 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/qemu/qemu_monitor_json.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index b669630bc8..5e7f425495 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu

[libvirt PATCH 0/2] qemu: Use g_auto* in a few more places

2021-03-19 Thread Jiri Denemark
I'll be touching these functions soon, let's modernize them first. Jiri Denemark (2): qemu: Use g_autofree in qemuMigrationJobCheckStatus qemu: Use g_autoptr in qemuMonitorJSONSetCapabilities src/qemu/qemu_migration.c| 15 +-- src/qemu/qemu_monitor_json.c | 19

[libvirt PATCH] qemu: Update asyncOwnerAPI when entering async job phase

2021-03-19 Thread Jiri Denemark
obvious which is the current (or the most recent) API involved in the job. Signed-off-by: Jiri Denemark --- src/qemu/qemu_domainjob.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_domainjob.c b/src/qemu/qemu_domainjob.c index b58d6837ad..50cfc45f5b 100644

Plans for the next release

2021-03-19 Thread Jiri Denemark
We are getting close to the next release of libvirt. To aim for the release on Apr 01 I suggest entering the freeze on Froday Mar 26 and tagging RC2 on Tuesday Mar 30. I hope this works for everyone. Jirka

Re: [PATCH 6/6] lib: Drop internal virXXXPtr typedefs

2021-03-12 Thread Jiri Denemark
On Thu, Mar 11, 2021 at 18:47:37 +, Daniel P. Berrangé wrote: > On Thu, Mar 11, 2021 at 06:54:20PM +0100, Michal Privoznik wrote: > > Historically, we declared pointer type to our types: > > > > typedef struct _virXXX virXXX; > > typedef virXXX *virXXXPtr; > > > > But usefulness of such

Re: RFC: do we want/need the "Ptr" typedefs for internal code ?

2021-03-09 Thread Jiri Denemark
On Tue, Mar 09, 2021 at 17:44:16 +, Daniel P. Berrangé wrote: ... > We can't do anything about the use "Ptr" in the include/ files because > that is public ABI. We can potentially eliminate "Ptr" types everywhere > else in the codebase, even the src/libvirt*.c files corresponding to > the

Re: [PATCH] domaincapstest: Return EXIT_SUCCESS / EXIT_FAILURE instead of -1

2021-03-09 Thread Jiri Denemark
dif /* WITH_BHYVE */ > > -return ret; > +return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE; > } > > #if WITH_QEMU Reviewed-by: Jiri Denemark

Re: [PATCH] qemuMigrationSrcRun: Don't jump to 'exit_monitor' from outside of the monitor

2021-03-09 Thread Jiri Denemark
MigrationSrcRun(virQEMUDriverPtr driver, > } > > if (qemuMigrationSetDBusVMState(driver, vm) < 0) > -goto exit_monitor; > +goto error; > > /* Before EnterMonitor, since already qemuProcessStopCPUs does that */ > if (!(flags & VIR_MIGRATE_LIVE) && Reviewed-by: Jiri Denemark

Re: [libvirt PATCH v2 1/1] qemuProcessUpdateGuestCPU: Check host cpu for forbidden features

2021-03-05 Thread Jiri Denemark
On Thu, Feb 25, 2021 at 14:23:06 +0100, Tim Wiederhake wrote: > See https://bugzilla.redhat.com/show_bug.cgi?id=1840770 > > Signed-off-by: Tim Wiederhake > --- > src/qemu/qemu_process.c | 27 +++ > 1 file changed, 27 insertions(+) > > diff --git

[libvirt PATCH] cpu_map: Fix spelling of svme-addr-chk feature

2021-03-03 Thread Jiri Denemark
Commit a208176ca1d9eedf8aa6bf12fde6a7a9579ab549 introduced this feature with an incorrect "svme-addr-check" spelling. Signed-off-by: Jiri Denemark --- src/cpu_map/sync_qemu_i386.py | 2 +- src/cpu_map/x86_EPYC-Milan.xml | 2 +- src/cpu_map/x86_features.xml | 2 +- 3 files

[libvirt PATCH] cpu_map: Install x86_EPYC-Milan.xml

2021-03-02 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu_map/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cpu_map/meson.build b/src/cpu_map/meson.build index 48f69f623c..013fc62a02 100644 --- a/src/cpu_map/meson.build +++ b/src/cpu_map/meson.build @@ -34,6 +34,7 @@ cpumap_data

[libvirt PATCH] cpu_map: Add EPYC-Milan x86 CPU model

2021-03-01 Thread Jiri Denemark
Introduced in QEMU 6.0.0 by 623972ceae091b31331ae4a1dc94fe5cbb891937 Signed-off-by: Jiri Denemark --- src/cpu_map/index.xml | 1 + src/cpu_map/x86_EPYC-Milan.xml | 92 ++ 2 files changed, 93 insertions(+) create mode 100644 src/cpu_map/x86_EPYC

Re: [libvirt PATCH 0/5] cpu_map: Sync with Qemu

2021-03-01 Thread Jiri Denemark
> tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-guest.xml | 1 + > tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-host.xml | 1 + > 4 files changed, 11 insertions(+) Reviewed-by: Jiri Denemark and pushed, thanks.

Release of libvirt-7.1.0

2021-03-01 Thread Jiri Denemark
The 7.1.0 release of both libvirt and libvirt-python is tagged and signed tarballs and source RPMs are available at https://libvirt.org/sources/ https://libvirt.org/sources/python/ Thanks everybody who helped with this release by sending patches, reviewing, testing, or providing any

libvirt-7.1.0 release candidate 2

2021-02-25 Thread Jiri Denemark
I have just tagged v7.1.0-rc2 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

Re: [libvirt PATCH] qemuProcessUpdateGuestCPU: Check cpu if check=full is set

2021-02-25 Thread Jiri Denemark
On Thu, Feb 25, 2021 at 08:17:09 +0100, Tim Wiederhake wrote: > libvirt performs cpu checking if "check" is set to "partial", but skips > checking the cpu if "check" is set to "full". This is intentional because QEMU knows better. I wish we had no CPU comparison in libvirt at all, but we can't do

[libvirt PATCH] qemu_domainjob: Make copy of owner API

2021-02-24 Thread Jiri Denemark
allocated owner name will disappear with the reconnecting thread. Any follow up usage of the pointer will read random memory. Signed-off-by: Jiri Denemark --- src/qemu/qemu_domainjob.c | 12 ++-- src/qemu/qemu_process.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff

Entering freeze for libvirt-7.1.0

2021-02-22 Thread Jiri Denemark
I have just tagged v7.1.0-rc1 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

Re: [PATCH v2 14/15] qemu: migration: Migrate block dirty bitmaps corresponding to checkpoints

2021-02-19 Thread Jiri Denemark
then configure > source for the migration. > > Signed-off-by: Peter Krempa > --- > src/qemu/qemu_migration.c | 333 +- > 1 file changed, 331 insertions(+), 2 deletions(-) Reviewed-by: Jiri Denemark

Re: [PATCH v2 07/15] qemu: migration_params: Add infrastructure for 'dirty-bitmaps' migration feature

2021-02-19 Thread Jiri Denemark
rform merges. > > Signed-off-by: Peter Krempa > --- > src/qemu/qemu_migration_params.c | 29 + > src/qemu/qemu_migration_params.h | 5 + > 2 files changed, 34 insertions(+) Reviewed-by: Jiri Denemark

Re: [PATCH v2 04/15] qemu: migration: Create qcow2 v3 images for VIR_MIGRATE_NON_SHARED_DISK

2021-02-19 Thread Jiri Denemark
yone caring about the exact image format on the destination needs to precreate the images manually. So I guess this should good enough. Reviewed-by: Jiri Denemark

Re: [PATCH v2 01/15] qemucapabilitiesdata: Update test data for qemu-6.0 on x86_64

2021-02-19 Thread Jiri Denemark
| 741 ++ > .../caps_6.0.0.x86_64.xml | 22 +- > 2 files changed, 441 insertions(+), 322 deletions(-) Reviewed-by: Jiri Denemark

Re: [PATCH 18/19] qemu: migration: Migrate block dirty bitmaps corresponding to checkpoints

2021-02-18 Thread Jiri Denemark
On Thu, Feb 18, 2021 at 16:50:43 +0100, Peter Krempa wrote: > On Thu, Feb 18, 2021 at 15:54:37 +0100, Jiri Denemark wrote: > > On Thu, Feb 11, 2021 at 16:37:57 +0100, Peter Krempa wrote: > > > Preserve block dirty bitmaps after migration with > > > QEMU_MONITOR_M

Re: [PATCH 19/19] qemu: capabilities: Enable QEMU_CAPS_INCREMENTAL_BACKUP

2021-02-18 Thread Jiri Denemark
rQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_USB_STORAGE) && > !virQEMUCapsGet(qemuCaps, QEMU_CAPS_USB_STORAGE_WERROR)) { Reviewed-by: Jiri Denemark

Re: [PATCH 18/19] qemu: migration: Migrate block dirty bitmaps corresponding to checkpoints

2021-02-18 Thread Jiri Denemark
On Thu, Feb 11, 2021 at 16:37:57 +0100, Peter Krempa wrote: > Preserve block dirty bitmaps after migration with > QEMU_MONITOR_MIGRATE_NON_SHARED_(DISK|INC). > > This patch implements functions which offer the bitmaps to the > destination, check for eligibility on destination and then configure >

Re: [PATCH 17/19] qemu: migration: Clean up temporary bitmaps when cancelling a migration

2021-02-18 Thread Jiri Denemark
t; +} > + > +return 0; > +} > + > + > static virStorageSourcePtr > qemuMigrationSrcNBDStorageCopyBlockdevPrepareSource(virDomainDiskDefPtr disk, > const char *host, ... Reviewed-by: Jiri Denemark

Re: [PATCH 14/19] qemu: domain: Store list of temporary bitmaps for migration in status XML

2021-02-18 Thread Jiri Denemark
(); > + > +bitmaps = g_slist_prepend(bitmaps, bmp); > +} > + > +jobPriv->migTempBitmaps = g_slist_reverse(g_steal_pointer()); > +return 0; > +} > + > + > static int > qemuDomainParseJobPrivate(xmlXPathContextPtr ctxt, >qemuDomainJobObjPtr job, > @@ -277,6 +358,9 @@ qemuDomainParseJobPrivate(xmlXPathContextPtr ctxt, > if (qemuDomainObjPrivateXMLParseJobNBD(vm, ctxt) < 0) > return -1; > > +if (qemuDomainParseJobPrivateXMLMigrationBlockDirtyBitmapsTemp(priv, > ctxt) < 0) > +return -1; > + > if (qemuMigrationParamsParse(ctxt, >migParams) < 0) > return -1; > ... No matter whether you decide to change the functions names... Reviewed-by: Jiri Denemark

Re: [PATCH 13/19] qemu: migration_cookie: Add helpers for transforming the cookie into migration params

2021-02-18 Thread Jiri Denemark
Either int qemuMigrationCookieBlockDirtyBitmapsMatchDisks(... or int qemuMigrationCookieBlockDirtyBitmapsToParams(... Reviewed-by: Jiri Denemark

Re: [PATCH 12/19] qemu: migration_cookie: Add XML handling for setting up bitmap migration

2021-02-18 Thread Jiri Denemark
eing non-NULL here. > +bitmaps = g_slist_prepend(bitmaps, bitmap); > +} > + > +disk = g_new0(qemuMigrationBlockDirtyBitmapsDisk, 1); > +disk->target = virXMLPropString(disknodes[i], "target"); And here as well. > +disk->bitmaps = g_slist_reverse(bitmaps); > + > +disks = g_slist_prepend(disks, disk); > +} > + > +mig->blockDirtyBitmaps = g_slist_reverse(g_steal_pointer()); > + > +return 0; > +} > + > + > static int > qemuMigrationCookieXMLParse(qemuMigrationCookiePtr mig, > virQEMUDriverPtr driver, ... With the checks for virXMLPropString result added Reviewed-by: Jiri Denemark

Re: [PATCH 16/19] tests: qemumigrationcookie: Add testing for block dirty bitmap migration

2021-02-18 Thread Jiri Denemark
files changed, 269 insertions(+), 27 deletions(-) > create mode 100644 > tests/qemumigrationcookiexmldata/nbd-bitmaps-xml2xml-in.xml > create mode 100644 > tests/qemumigrationcookiexmldata/nbd-bitmaps-xml2xml-migparams.json > create mode 100644 > tests/qemumigrationcookie

Re: [PATCH 15/19] tests: qemustatusxml2xml: Add status XML from migration with bitmaps

2021-02-18 Thread Jiri Denemark
ration-out-nbd-bitmaps-in.xml > create mode 12 > tests/qemustatusxml2xmldata/migration-out-nbd-bitmaps-out.xml Reviewed-by: Jiri Denemark

Plans for the next release

2021-02-18 Thread Jiri Denemark
We are getting close to the next release of libvirt. To aim for the release on Mar 01 I suggest entering the freeze on Monday Feb 22 and tagging RC2 on Thursday Feb 25. I hope this works for everyone. Jirka

Re: [PATCH 08/19] storage: Format qcow2v3 volumes by default

2021-02-12 Thread Jiri Denemark
On Fri, Feb 12, 2021 at 12:13:58 +, Daniel P. Berrangé wrote: > On Fri, Feb 12, 2021 at 11:55:36AM +0100, Peter Krempa wrote: > > On Fri, Feb 12, 2021 at 10:49:02 +, Daniel Berrange wrote: > > > On Thu, Feb 11, 2021 at 04:37:47PM +0100, Peter Krempa wrote: > > > > Format the new volumes

Re: [PATCH 08/19] storage: Format qcow2v3 volumes by default

2021-02-12 Thread Jiri Denemark
volxml2argvdata/qcow2-zerocapacity.argv| 2 +- > 13 files changed, 13 insertions(+), 13 deletions(-) Reviewed-by: Jiri Denemark

Re: [PATCH 07/19] storagevolxml2argvdata: Rewrap all output files

2021-02-12 Thread Jiri Denemark
> .../qcow2-nocow-compat.argv | 9 +--- > tests/storagevolxml2argvdata/qcow2-nocow.argv | 9 +--- > .../qcow2-zerocapacity.argv | 5 +++- > 21 files changed, 147 insertions(+), 77 deletions(-) Reviewed-by: Jiri Denemark

Re: [PATCH 06/19] testutils: virTestRewrapFile: Rewrap also '.argv' files

2021-02-12 Thread Jiri Denemark
t;) || > + virStringHasSuffix(filename, ".argv") || >virStringHasSuffix(filename, ".ldargs"))) > return 0; > Reviewed-by: Jiri Denemark

Re: [PATCH 05/19] qemuMigrationSrcPerformPeer2Peer3: Don't leak 'dom_xml' on cleanup

2021-02-12 Thread Jiri Denemark
347,7 +4347,7 @@ qemuMigrationSrcPerformPeer2Peer3(virQEMUDriverPtr > driver, > char *uri_out = NULL; > char *cookiein = NULL; > char *cookieout = NULL; > -char *dom_xml = NULL; > +g_autofree char *dom_xml = NULL; > int cookieinlen = 0; > in

<    3   4   5   6   7   8   9   10   11   12   >