]> git.proxmox.com Git - pve-qemu.git/log
pve-qemu.git
3 years agoclean up pve/ patches by squashing patches of patches
Stefan Reiter [Wed, 3 Mar 2021 09:56:02 +0000 (10:56 +0100)]
clean up pve/ patches by squashing patches of patches

No functional change intended.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 5.2.0-2
Thomas Lamprecht [Wed, 24 Feb 2021 17:25:18 +0000 (18:25 +0100)]
bump version to 5.2.0-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopbs-restore: unref/close target block backend
Stefan Reiter [Wed, 24 Feb 2021 13:34:47 +0000 (14:34 +0100)]
pbs-restore: unref/close target block backend

Use blk_unref to drop the last reference, which will close the block
backend and flush all caches and outstanding writes.

This is especially important for restoring to Ceph, as the userspace
librbd caches will not be flushed if the application exits immediately,
leading to potentially incomplete restores.

Reported-by: Eneko Lacunza <elacunza@binovo.es>
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agod/patches: backport virtiofsd security fix
Thomas Lamprecht [Wed, 24 Feb 2021 17:40:28 +0000 (18:40 +0100)]
d/patches: backport virtiofsd security fix

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/rules: build virtiofsd
Thomas Lamprecht [Wed, 24 Feb 2021 15:25:23 +0000 (16:25 +0100)]
d/rules: build virtiofsd

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 5.2.0-1
Thomas Lamprecht [Fri, 12 Feb 2021 11:10:04 +0000 (12:10 +0100)]
bump version to 5.2.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobuild: drop explicit libproxmox-backup-qemu0 dep
Fabian Grünbichler [Tue, 9 Feb 2021 11:29:32 +0000 (12:29 +0100)]
build: drop explicit libproxmox-backup-qemu0 dep

it ships a symbol file now, so it can be auto-generated based on the
build-dep and usage.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd PBS master key support
Stefan Reiter [Thu, 11 Feb 2021 16:11:12 +0000 (17:11 +0100)]
add PBS master key support

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoUpdate to QEMU 5.2
Stefan Reiter [Thu, 11 Feb 2021 16:11:11 +0000 (17:11 +0100)]
Update to QEMU 5.2

Lots of patches touched and some slight changes to the build process
since QEMU switched to meson as their build system. Functionality-wise
very little rebasing required.

New patches introduced:
* pve/0058: to fix VMA backups and clean up some code in general with
  new 5.2 features now available to us (namely coroutine-enabled QMP).
* extra/0002: don't build man pages for guest agent when disabled
* extra/0003: fix live-migration with hugepages
* 0017 and 0018 are adjusted to fix snapshot abort and improve
  snap performance a bit

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agofix #3084: fall back to open-iscsi initiatorname
Fabian Ebner [Tue, 17 Nov 2020 11:38:36 +0000 (12:38 +0100)]
fix #3084: fall back to open-iscsi initiatorname

Fixes vma restore when the target is an iSCSI storage which expects that
initiatorname. Also avoids the need to always explicitly set the initiatorname
in PVE code, thus fixing moving efidisks from and to such iSCSI storages.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agobump version to 5.1.0-8
Wolfgang Bumiller [Thu, 7 Jan 2021 09:28:46 +0000 (10:28 +0100)]
bump version to 5.1.0-8

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agofix #3225: properly cancel jobs in 'created' state
Wolfgang Bumiller [Thu, 7 Jan 2021 09:26:37 +0000 (10:26 +0100)]
fix #3225: properly cancel jobs in 'created' state

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agodisable jemalloc
Stefan Reiter [Thu, 10 Dec 2020 15:23:38 +0000 (16:23 +0100)]
disable jemalloc

jemalloc does not play nice with our Rust library (proxmox-backup-qemu),
specifically it never releases memory allocated from Rust to the OS.
This leads to a problem with larger caches (e.g. for the PBS block driver).

It appears to be related to this GitHub issue:
https://github.com/jemalloc/jemalloc/issues/1398

The background_thread solution seems weirdly hacky, so let's disable
jemalloc entirely for now.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobump version to 5.1.0-7
Thomas Lamprecht [Wed, 25 Nov 2020 13:09:24 +0000 (14:09 +0100)]
bump version to 5.1.0-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoupdate patches with some pbs-state migration cleanups
Stefan Reiter [Tue, 10 Nov 2020 16:16:15 +0000 (17:16 +0100)]
update patches with some pbs-state migration cleanups

...and literal cleanup, as in, call save_cleanup after success or error.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoupdate patches with squashed in 'include library version'
Stefan Reiter [Tue, 24 Nov 2020 15:41:20 +0000 (16:41 +0100)]
update patches with squashed in 'include library version'

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
bump build-dependency on libproxmox-backup-qemu0-dev with version query
support

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agobump version to 5.1.0-6
Thomas Lamprecht [Thu, 5 Nov 2020 17:59:44 +0000 (18:59 +0100)]
bump version to 5.1.0-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix dirty-bitmap state migration freeze
Thomas Lamprecht [Thu, 5 Nov 2020 17:43:01 +0000 (18:43 +0100)]
fix dirty-bitmap state migration freeze

The idea in general is to migrate all the state, which is small for
us, in a single step once. But, QEMU only calls save state if we
return active true.

Hardcoding is-active to return true, like done initially, makes the
migration freeze, as QEMU thinks this is never done, and only stops
calling us and finishes after a few seconds.

So, add a state with an "active" boolean, set to true when
initializing a migration, and set it to false when the state was
saved.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 5.1.0-5
Thomas Lamprecht [Wed, 4 Nov 2020 17:36:42 +0000 (18:36 +0100)]
bump version to 5.1.0-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agomigration/block-dirty-bitmap: migrate other bitmaps even if one fails
Thomas Lamprecht [Wed, 4 Nov 2020 17:35:50 +0000 (18:35 +0100)]
migration/block-dirty-bitmap: migrate other bitmaps even if one fails

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 5.1.0-4
Thomas Lamprecht [Thu, 29 Oct 2020 17:09:22 +0000 (18:09 +0100)]
bump version to 5.1.0-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/control: update versioned dependency for proxmox backup qemu library
Thomas Lamprecht [Thu, 29 Oct 2020 17:07:10 +0000 (18:07 +0100)]
d/control: update versioned dependency for proxmox backup qemu library

to have the proxmox_export_state et al. available

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapply dirty-bitmap state migration + fix
Thomas Lamprecht [Thu, 29 Oct 2020 17:05:43 +0000 (18:05 +0100)]
apply dirty-bitmap state migration + fix

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoSeveral fixes for backup abort and error reporting
Stefan Reiter [Thu, 29 Oct 2020 13:10:36 +0000 (14:10 +0100)]
Several fixes for backup abort and error reporting

Also add my Signed-off-by to some patches where it was missing.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobump version to 5.1.0-3
Thomas Lamprecht [Tue, 29 Sep 2020 07:23:06 +0000 (09:23 +0200)]
bump version to 5.1.0-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoAdd transaction patches and fix for blocking finish
Stefan Reiter [Mon, 28 Sep 2020 15:48:32 +0000 (17:48 +0200)]
Add transaction patches and fix for blocking finish

With the transaction patches, patch 0026-PVE-Backup-modify-job-api.patch
is no longer necessary, so drop it and rebase all following patches on
top.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobump version to 5.1.0-2
Thomas Lamprecht [Mon, 14 Sep 2020 18:01:32 +0000 (20:01 +0200)]
bump version to 5.1.0-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocherry-pick: "usb: fix setup_len init (CVE-2020-14364)"
Thomas Lamprecht [Mon, 14 Sep 2020 17:38:34 +0000 (19:38 +0200)]
cherry-pick: "usb: fix setup_len init (CVE-2020-14364)"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agowork around #3002: revert "qemu-img convert: Don't pre-zero images"
Thomas Lamprecht [Mon, 14 Sep 2020 17:37:45 +0000 (19:37 +0200)]
work around #3002: revert "qemu-img convert: Don't pre-zero images"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoAdd systemd journal logging patch
Stefan Reiter [Tue, 30 Jun 2020 12:06:20 +0000 (14:06 +0200)]
Add systemd journal logging patch

Prints QEMU errors that occur *after* the "-daemonize" fork to the
systemd journal, instead of pushing them into /dev/null like before.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobump version to 5.1.0-1
Thomas Lamprecht [Thu, 20 Aug 2020 12:48:58 +0000 (14:48 +0200)]
bump version to 5.1.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoallow backup of read-only block drives
Fabian Grünbichler [Thu, 6 Aug 2020 11:13:49 +0000 (13:13 +0200)]
allow backup of read-only block drives

this is needed for template backups with PBS until we have the backup
equivalent of 'pbs-restore'.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoupdate to QEMU 5.1
Stefan Reiter [Thu, 20 Aug 2020 08:42:45 +0000 (10:42 +0200)]
update to QEMU 5.1

No major semantic changes, mostly just deprecations and changed function
signatures. Drop the extra/ patches, as they have been applied upstream.

The added extra/ patch was accepted upstream[0] but has not been picked
up for 5.1. It is required for non-4M aligned backups to work with PBS.

[0] https://lists.gnu.org/archive/html/qemu-devel/2020-08/msg01671.html

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobump version to 5.0.0-13
Thomas Lamprecht [Wed, 19 Aug 2020 16:18:00 +0000 (18:18 +0200)]
bump version to 5.0.0-13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoPVE: add query-pbs-bitmap-info QMP call
Thomas Lamprecht [Wed, 19 Aug 2020 16:11:23 +0000 (18:11 +0200)]
PVE: add query-pbs-bitmap-info QMP call

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoPVE: add zero block handling to PBS dump callback
Thomas Lamprecht [Wed, 19 Aug 2020 11:56:03 +0000 (13:56 +0200)]
PVE: add zero block handling to PBS dump callback

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 5.0.0-12
Fabian Grünbichler [Tue, 11 Aug 2020 09:29:21 +0000 (11:29 +0200)]
bump version to 5.0.0-12

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agofix PBS write callback with big blocks
Fabian Grünbichler [Tue, 11 Aug 2020 09:14:36 +0000 (11:14 +0200)]
fix PBS write callback with big blocks

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agopatch for possible DOS in qemu network packet processing
Oguz Bektas [Mon, 10 Aug 2020 12:32:22 +0000 (14:32 +0200)]
patch for possible DOS in qemu network packet processing

fixes an assertion failure in qemu network packet processing, which can
lead to DOS'ing the qemu process on the host. this affects 'e1000e' and
'vmxnet3' network devices.

patch is cherry-picked from the commit mentioned in the oss-security email.

more info on oss-security [0]

[0]: https://www.openwall.com/lists/oss-security/2020/08/10/1

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
3 years agobump version to 5.0.0-11
Thomas Lamprecht [Tue, 14 Jul 2020 10:45:24 +0000 (12:45 +0200)]
bump version to 5.0.0-11

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoFix dirty-bitmap PBS backup with multiple drives
Stefan Reiter [Tue, 14 Jul 2020 08:45:16 +0000 (10:45 +0200)]
Fix dirty-bitmap PBS backup with multiple drives

"PVE backup: rename incremental to use-dirty-bitmap" merged two
variables (use_dirty_bitmap and incremental) into one, but they served
two different purposes. Rename the original use_dirty_bitmap to
"expect_only_dirty" so the new one doesn't conflict, and rework "PVE:
use proxmox_backup_check_incremental" around that semantic.

In practice, this had the effect that only one disk at a time would
have a bitmap added, as after the first "use_dirty_bitmap" would be set
to one and the rest would behave as if the QMP parameter of the same
name was unset.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobump version to 5.0.0-10
Wolfgang Bumiller [Fri, 10 Jul 2020 11:33:44 +0000 (13:33 +0200)]
bump version to 5.0.0-10

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agofix backup qmp parameters to pass along encryption info
Wolfgang Bumiller [Fri, 10 Jul 2020 11:31:50 +0000 (13:31 +0200)]
fix backup qmp parameters to pass along encryption info

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 5.0.0-9
Thomas Lamprecht [Thu, 9 Jul 2020 11:18:48 +0000 (13:18 +0200)]
bump version to 5.0.0-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/control: update build-dependency of libproxmox-backup-qemu0-dev
Thomas Lamprecht [Thu, 9 Jul 2020 11:17:29 +0000 (13:17 +0200)]
d/control: update build-dependency of libproxmox-backup-qemu0-dev

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoPBS patches: block driver, adapat encrypt/compress param, add query-proxmox-support...
Thomas Lamprecht [Thu, 9 Jul 2020 11:15:49 +0000 (13:15 +0200)]
PBS patches: block driver, adapat encrypt/compress param, add query-proxmox-support QMP cmd

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 5.0.0-8
Thomas Lamprecht [Mon, 6 Jul 2020 20:58:53 +0000 (22:58 +0200)]
bump version to 5.0.0-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofixup: proxmox_backup_check_incremental is negated
Thomas Lamprecht [Mon, 6 Jul 2020 20:58:30 +0000 (22:58 +0200)]
fixup: proxmox_backup_check_incremental is negated

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 5.0.0-7
Thomas Lamprecht [Mon, 6 Jul 2020 20:19:12 +0000 (22:19 +0200)]
bump version to 5.0.0-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoupdate/add PBS integration patches
Thomas Lamprecht [Mon, 6 Jul 2020 20:13:10 +0000 (22:13 +0200)]
update/add PBS integration patches

* rename "incremental" param to "use-dirty-bitmap", avoids confusion
  as the backup can be incrementally also with that param set to
  false.
* use new proxmox_backup_check_incremental
* fix setting dirty counter and adapt to new connect API semantic

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 5.0.0-6
Thomas Lamprecht [Fri, 3 Jul 2020 15:00:59 +0000 (17:00 +0200)]
bump version to 5.0.0-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopbs: query-backup: set reused field also for dirty-bitmap
Thomas Lamprecht [Fri, 3 Jul 2020 17:25:31 +0000 (19:25 +0200)]
pbs: query-backup: set reused field also for dirty-bitmap

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodebian/patches: squash some followup patches and regroup a bit more together
Thomas Lamprecht [Thu, 2 Jul 2020 11:07:28 +0000 (13:07 +0200)]
debian/patches: squash some followup patches and regroup a bit more together

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofixup: qemu submodule should be at v5.0.0
Thomas Lamprecht [Thu, 2 Jul 2020 11:33:11 +0000 (13:33 +0200)]
fixup: qemu submodule should be at v5.0.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobackup: improve QAPI info and remove all dirty-bitmaps on failed drive-job
Thomas Lamprecht [Thu, 2 Jul 2020 11:03:44 +0000 (13:03 +0200)]
backup: improve QAPI info and remove all dirty-bitmaps on failed drive-job

effectively two commits merged as one:
https://pve.proxmox.com/pipermail/pve-devel/2020-July/044185.html
https://pve.proxmox.com/pipermail/pve-devel/2020-July/044194.html

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 5.0.0-5
Thomas Lamprecht [Tue, 30 Jun 2020 09:29:33 +0000 (11:29 +0200)]
bump version to 5.0.0-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/control: build depend on newer libproxmox-backup-qemu0-dev
Thomas Lamprecht [Tue, 30 Jun 2020 09:01:25 +0000 (11:01 +0200)]
d/control: build depend on newer libproxmox-backup-qemu0-dev

to ensure we have the new 'incremental' parameter for the
proxmox_backup_register_image and proxmox_backup_register_image_async
functions available

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd incremental backup patches
Dietmar Maurer [Tue, 30 Jun 2020 08:28:24 +0000 (10:28 +0200)]
add incremental backup patches

and fix typo: s/BPS/PBS/

3 years agofix #2794: Include legacy-igd passthrough fix
Stefan Reiter [Thu, 18 Jun 2020 14:36:52 +0000 (16:36 +0200)]
fix #2794: Include legacy-igd passthrough fix

See https://bugs.launchpad.net/qemu/+bug/1882784

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoFix backup for not 64k-aligned storages
Thomas Lamprecht [Wed, 24 Jun 2020 14:21:39 +0000 (16:21 +0200)]
Fix backup for not 64k-aligned storages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Roland Kammerer <roland.kammerer@linbit.com>
3 years agopbs-restore: flush verbose log before calling into library
Thomas Lamprecht [Tue, 2 Jun 2020 11:20:56 +0000 (13:20 +0200)]
pbs-restore: flush verbose log before calling into library

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 5.0.0-4
Thomas Lamprecht [Sat, 30 May 2020 13:25:42 +0000 (15:25 +0200)]
bump version to 5.0.0-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopbs-restore: be more verbose if asked to
Thomas Lamprecht [Sat, 30 May 2020 14:06:01 +0000 (16:06 +0200)]
pbs-restore: be more verbose if asked to

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agosmall cleanups for pbs-restore
Thomas Lamprecht [Sat, 30 May 2020 13:24:11 +0000 (15:24 +0200)]
small cleanups for pbs-restore

Add trailing newline to two error messages, and drop an extra
unconditional `qdict_put_str(options, "driver", format);`
Besides that it's just formatting.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoinstall pbs-restore to usr/bin
Thomas Lamprecht [Sat, 30 May 2020 11:54:08 +0000 (13:54 +0200)]
install pbs-restore to usr/bin

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 5.0.0-3
Thomas Lamprecht [Wed, 27 May 2020 12:42:06 +0000 (14:42 +0200)]
bump version to 5.0.0-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix vmstate-snapshots with iothread=1
Thomas Lamprecht [Wed, 27 May 2020 12:40:46 +0000 (14:40 +0200)]
fix vmstate-snapshots with iothread=1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 5.0.0-2
Thomas Lamprecht [Mon, 4 May 2020 13:23:37 +0000 (15:23 +0200)]
bump version to 5.0.0-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd optional buffer size to QEMUFile
Wolfgang Bumiller [Mon, 4 May 2020 12:35:01 +0000 (14:35 +0200)]
add optional buffer size to QEMUFile

and use 4M for our savevm-async buffer size

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoexperimentally move savevm-async back into a coroutine
Wolfgang Bumiller [Mon, 4 May 2020 12:35:00 +0000 (14:35 +0200)]
experimentally move savevm-async back into a coroutine

Move qemu_savevm_state_{header,setup} into the main loop and
the rest of the iteration into a coroutine. The former need
to lock the iothread (and we can't unlock it in the
coroutine), and the latter can't deal with being in a
separate thread, so a coroutine it must be.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agobump version to 5.0.0-1
Thomas Lamprecht [Wed, 29 Apr 2020 07:54:19 +0000 (09:54 +0200)]
bump version to 5.0.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 5.0.0~rc3-2
Thomas Lamprecht [Fri, 17 Apr 2020 07:11:27 +0000 (09:11 +0200)]
bump version to 5.0.0~rc3-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoavoid using QemuRecMutex inside coroutines, QemuMutex to lock outside
Thomas Lamprecht [Fri, 17 Apr 2020 06:17:59 +0000 (08:17 +0200)]
avoid using QemuRecMutex inside coroutines, QemuMutex to lock outside

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 5.0.0~rc3-1
Thomas Lamprecht [Thu, 16 Apr 2020 13:21:52 +0000 (15:21 +0200)]
bump version to 5.0.0~rc3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agod/control: build deps; switch libcap to libcap-ng, add libattr
Thomas Lamprecht [Thu, 16 Apr 2020 14:53:09 +0000 (16:53 +0200)]
d/control: build deps; switch libcap to libcap-ng, add libattr

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopve backup: avoid using recursive mutex
Thomas Lamprecht [Thu, 16 Apr 2020 13:20:20 +0000 (15:20 +0200)]
pve backup: avoid using recursive mutex

Release the lock on qemu_coroutine_yield, so coroutines don't
deadlock.

Originally-by: Stefan Reiter <s.reiter@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agorebase patches onto v5.0.0-rc3
Thomas Lamprecht [Thu, 16 Apr 2020 13:19:31 +0000 (15:19 +0200)]
rebase patches onto v5.0.0-rc3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 5.0.0~rc2-1
Thomas Lamprecht [Wed, 8 Apr 2020 07:44:16 +0000 (09:44 +0200)]
bump version to 5.0.0~rc2-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoimport QEMU 5.0.0-rc2 and rebase patches
Thomas Lamprecht [Tue, 7 Apr 2020 14:53:19 +0000 (16:53 +0200)]
import QEMU 5.0.0-rc2 and rebase patches

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 4.2.0-2
Thomas Lamprecht [Wed, 25 Mar 2020 11:20:15 +0000 (12:20 +0100)]
bump version to 4.2.0-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopatches: move upstream cherry picked to extra folder, like we did in the past
Thomas Lamprecht [Mon, 23 Mar 2020 09:16:35 +0000 (10:16 +0100)]
patches: move upstream cherry picked to extra folder, like we did in the past

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd bitmap drive-mirror patches
Fabian Grünbichler [Tue, 17 Mar 2020 07:55:24 +0000 (08:55 +0100)]
add bitmap drive-mirror patches

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agovma_writer: Display more error information
Dominic Jäger [Thu, 19 Mar 2020 10:47:45 +0000 (11:47 +0100)]
vma_writer: Display more error information

Also print the reason why the function vma_writer_register_stream failed to
help debug errors like in [0].

[0] https://forum.proxmox.com/threads/backup-error-vma_writer_register_stream-drive-scsi0-failed-pve-6-1-7.65925/

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
Reviewed-by: Stefan Reiter <s.reiter@proxmox.com>
4 years agoslirp: re-add security patches
Oguz Bektas [Thu, 12 Mar 2020 12:21:41 +0000 (13:21 +0100)]
slirp: re-add security patches

the first two patches were mistakenly left out during the 4.2 qemu
rebase.

also adds another patch for issue CVE-2019-14378 (heap-based BOF)

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
4 years agofixup backup with io-threads
Dietmar Maurer [Thu, 12 Mar 2020 09:30:18 +0000 (10:30 +0100)]
fixup backup with io-threads

4 years agobump version to 4.2.0-1
Thomas Lamprecht [Wed, 11 Mar 2020 06:24:45 +0000 (07:24 +0100)]
bump version to 4.2.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoupdate submodule and patches for 4.2.0
Thomas Lamprecht [Tue, 10 Mar 2020 14:12:50 +0000 (15:12 +0100)]
update submodule and patches for 4.2.0

The long overdue nice rebase+cleanup was done by Dietmar

Originally-by: Dietmar Maurer <dietmar@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 4.1.1-4
Thomas Lamprecht [Fri, 6 Mar 2020 15:33:14 +0000 (16:33 +0100)]
bump version to 4.1.1-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agosecurity patches for libslirp CVE-2020-8608
Oguz Bektas [Thu, 6 Feb 2020 14:25:49 +0000 (15:25 +0100)]
security patches for libslirp CVE-2020-8608

original commits and email can be found here[0]

A out-of-bounds heap buffer access issue was found in the SLiRP
networking implementation of the QEMU emulator. It occurs in tcp_emu()
routine while emulating IRC and other protocols due to unsafe usage of
snprintf(3) function.

A user/process could use this flaw to crash the Qemu process on the host
resulting in DoS or potentially execute arbitrary code with privileges
of the QEMU process on the host.

[0]: https://seclists.org/oss-sec/2020/q1/64

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd patch for CVE-2019-20382 (vnc disconnect memory leak)
Oguz Bektas [Thu, 5 Mar 2020 12:29:13 +0000 (13:29 +0100)]
add patch for CVE-2019-20382 (vnc disconnect memory leak)

oss-security email can be found here[0]

upstream commit here[1]

this effects our vncproxy. dominik and me tested if the issue is present
on our branch and it appears that it is.
in essence when we disconnect from a vnc connection, the memory isn't
free'd afterwards which causes the qemu process to use more and more
memory with each disconnect, which could lead to a dos scenario.

we tested the patch and it seems to mitigate the problem.

[0]: https://seclists.org/oss-sec/2020/q1/105
[1]: https://git.qemu.org/?p=qemu.git;a=commitdiff;h=6bf21f3d83e95bcc4ba35a7a07cc6655e8b010b0

Tested-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
4 years agofix changelog release
Thomas Lamprecht [Tue, 18 Feb 2020 10:26:27 +0000 (11:26 +0100)]
fix changelog release

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 4.1.1-3
Dietmar Maurer [Tue, 18 Feb 2020 09:56:59 +0000 (10:56 +0100)]
bump version to 4.1.1-3

4 years agoimprove qemu backup by reducing lock contention
Dietmar Maurer [Tue, 18 Feb 2020 09:47:21 +0000 (10:47 +0100)]
improve qemu backup by reducing lock contention

- reducing lock contention by using CoRwLock
- correctly call aio_wait_kick()

4 years agofollowup: fix indentation
Thomas Lamprecht [Sat, 25 Jan 2020 15:17:23 +0000 (16:17 +0100)]
followup: fix indentation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix hmp info backup command
Tim Marx [Thu, 23 Jan 2020 10:32:15 +0000 (11:32 +0100)]
fix hmp info backup command

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agocorrect link to vma spec to new repository url
Tim Marx [Mon, 13 Jan 2020 11:59:16 +0000 (12:59 +0100)]
correct link to vma spec to new repository url

Signed-off-by: Tim Marx <t.marx@proxmox.com>
4 years agogrammar fix: s/does not exists/does not exist/g
Thomas Lamprecht [Fri, 13 Dec 2019 11:10:51 +0000 (12:10 +0100)]
grammar fix: s/does not exists/does not exist/g

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 4.1.1-2
Thomas Lamprecht [Fri, 29 Nov 2019 08:05:43 +0000 (09:05 +0100)]
bump version to 4.1.1-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix #2478: record python3-minimal as build dependency
Thomas Lamprecht [Tue, 26 Nov 2019 12:07:51 +0000 (13:07 +0100)]
fix #2478: record python3-minimal as build dependency

Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix #2486: include fix for disk hot-resize regression (w/ iothread=1)
Stefan Reiter [Mon, 25 Nov 2019 11:38:15 +0000 (12:38 +0100)]
fix #2486: include fix for disk hot-resize regression (w/ iothread=1)

See: https://lists.nongnu.org/archive/html/qemu-devel/2019-09/msg03201.html

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>