Re: [PATCH 21/32] qemublocktest: Re-introduce testing of checkpoint deletion

2020-06-18 Thread Eric Blake
+++ Looks reasonable; you're deleting the bitmap across all files in the chain where it appears, and don't have to mess around with which bitmaps to re-enable or merge into. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 20/32] qemublocktest: Rename TEST_CHECKPOINT_DELETE_MERGE to TEST_CHECKPOINT_DELETE

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Also rename the helper struct and function. Signed-off-by: Peter Krempa --- tests/qemublocktest.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) Mechanical. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer

Re: [PATCH 19/32] qemu: checkpoint: Don't merge checkpoints during deletion

2020-06-18 Thread Eric Blake
| 153 ++--- src/qemu/qemu_checkpoint.h | 1 - tests/qemublocktest.c | 7 +- 3 files changed, 25 insertions(+), 136 deletions(-) No kidding about the simplification. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualiz

Re: [PATCH 18/32] qemublocktest: Add new 'synthetic' bitmap detection and validation test case

2020-06-18 Thread Eric Blake
persist:1 inconsist:0 gran:65536 dirty:0 Looks like a pretty decent set of awkward setups; libvirt should not ever produce these, but being robust to whatever happened to the qcow2 files externally to libvirt is worthwhile. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Re

Re: [PATCH 17/32] qemublocktest: Re-add bitmap validation for 'basic' and 'snapshots' cases

2020-06-18 Thread Eric Blake
On 6/15/20 12:10 PM, Peter Krempa wrote: Now that we've updated both the test data and the validator to new semantics we can start testing again. Signed-off-by: Peter Krempa --- tests/qemublocktest.c | 12 1 file changed, 12 insertions(+) Reviewed-by: Eric Blake --

Re: [PATCH 16/32] qemuBlockBitmapChainIsValid: Adjust to new semantics of bitmaps

2020-06-18 Thread Eric Blake
rwise, Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 15/32] qemublocktest: Replace 'snapshots' bitmap detection test case data

2020-06-18 Thread Eric Blake
). Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 14/32] qemublocktest: Replace 'basic' bitmap detection test case data

2020-06-18 Thread Eric Blake
:0 busy:0 persist:1 inconsist:0 gran:65536 dirty:0 -b: record:0 busy:0 persist:1 inconsist:0 gran:65536 dirty:0 - a: record:0 busy:0 persist:1 inconsist:0 gran:65536 dirty:0 +d: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0 +c: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0 +b: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0 +a: record:1 busy:0 persist:1 inconsist:0 gran:65536 dirty:0 And this reflects that libvirt is parsing the qemu output according to libvirt's new paradigm. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 13/32] qemu: checkpoint: Don't chain bitmaps for checkpoints

2020-06-18 Thread Eric Blake
C2 is b2, the incremental from C3 is b3. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 12/32] qemublocktest: Extract printing of nodename list

2020-06-17 Thread Eric Blake
file changed, 18 insertions(+), 9 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 11/32] qemublocktest: Delete 'synthetic' bitmap test cases

2020-06-17 Thread Eric Blake
| 6 - 7 files changed, 1818 deletions(-) Same comment as for the previous patch - if we get to the end of the series without major issues, then this temporary deletion to make the rewrite easier is fine. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226

Re: [PATCH 10/32] qemublocktest: Disable testcases for all bitmap handling

2020-06-17 Thread Eric Blake
ng support back in, but unless something major turns up in the rest of the series, the approach of a clean slate followed by a new implementation is reasonable enough. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 09/32] qemublocktest: Add 'empty' case for checkpoint bitmap handling

2020-06-17 Thread Eric Blake
Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 08/32] qemublocktest: Add 'empty' case for blockcopy bitmap handling test

2020-06-17 Thread Eric Blake
changed, 3 insertions(+) create mode 100644 tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json create mode 100644 tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301

Re: [PATCH 07/32] qemublocktest: Add 'empty' case for checkpoint deletion

2020-06-17 Thread Eric Blake
+++-- .../checkpointdelete/empty-out.json | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 tests/qemublocktestdata/checkpointdelete/empty-out.json Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226

Re: [PATCH 06/32] qemublocktest: Add 'empty' case for incremental backup test

2020-06-17 Thread Eric Blake
| 19 ++- .../backupmerge/empty-out.json| 1 + 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 tests/qemublocktestdata/backupmerge/empty-out.json Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1

Re: [PATCH 05/32] qemublocktest: Add 'empty' test case for bitmaps

2020-06-17 Thread Eric Blake
+ 3 files changed, 75 insertions(+) create mode 100644 tests/qemublocktestdata/bitmap/empty.json create mode 100644 tests/qemublocktestdata/bitmap/empty.out Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org

Re: [PATCH 04/32] qemu: backup: Move fetching of checkpoint list for incremental backup

2020-06-17 Thread Eric Blake
nts(vm, dd->backupdisk->incremental))) Another long line, but here it is harder to suggest a short alternative. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 03/32] conf: backup: Store incremental backup checkpoint name per-disk

2020-06-17 Thread Eric Blake
w disk. Signed-off-by: Peter Krempa --- src/conf/backup_conf.c | 8 src/conf/backup_conf.h | 1 + 2 files changed, 9 insertions(+) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 02/32] qemu: backup: Fix backup of disk skipped in an intermediate checkpoint

2020-06-17 Thread Eric Blake
HECKPOINT_TYPE_BITMAP; + I'm not quite sure how this test change matches the code change above, but the code change looked reasonable. checkpoint->parent.name = g_strdup(name); return (virDomainMomentDefPtr) checkpoint; -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 01/32] qemu: backup: Split up code traversing checkpoint list looking for bitmaps

2020-06-17 Thread Eric Blake
bitmapname, diskdst, from->id); +return -1; +} + +*actions = g_steal_pointer(&ret); Maybe s/ret/act/. Otherwise, this looks like a sane refactoring. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH v4] numa: forbid '-numa node,mem' for 5.1 and newer machine types

2020-06-08 Thread Eric Blake
memdev``, which does the same as ``mem`` and adds +means to actualy manage node RAM on the host side. Use parameter ``memdev`` s/actualy/actually/ +with *memory-backend-ram* backend as an replacement for parameter ``mem`` s/an/a/ +to achieve the same fake NUMA effect or a properly configured +*memory-backend-file* backend to actually benefit from NUMA configuration. +In future new machine versions will not accept the option but it will still If this sentence is still true: s/In future new/New/ If the sentence is false (that is, we completely dropped 'mem' even for old machine versions), drop it. +work with old machine types. User can check QAPI schema to see if the legacy s/check/check the/ +option is supported by looking at MachineInfo::numa-mem-supported property. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH] numa: forbid '-numa node, mem' for 5.1 and newer machine types

2020-06-05 Thread Eric Blake
x27; to a later section of the document 'has been removed', so that the history is not lost. But this diffstat says you just deleted, rather than moved, that hunk. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH] conf: force 8 byte alignment for virObjectEvent

2020-06-03 Thread Eric Blake
on't see any problem with your approach. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [libvirt PATCH 1/6] qemu: stop checking virObjectUnref return value

2020-05-19 Thread Eric Blake
/qemu_process.c | 30 -- 1 file changed, 12 insertions(+), 18 deletions(-) -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: Question: How do I discard any changes for the device which is set by blockdev option?

2020-05-19 Thread Eric Blake
t to avoid -blockdev if you still need to supply -snapshot behind libvirt's back. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 21/21] qemuxml2argvtest: Add QAPI/QMP schema validation for -blockdev and -netdev

2020-05-18 Thread Eric Blake
x27;s done just for the _CAPS versions of tests but commenting out a line in the test file allows to validate even cases which don't use real capabilities. Signed-off-by: Peter Krempa --- Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-91

Re: [PATCH 20/21] testutilsqemuschema: Allow loading non-latest schema

2020-05-18 Thread Eric Blake
| 3 ++ 2 files changed, 45 insertions(+), 22 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 19/21] testQEMUSchemaLoad: Rename to testQEMUSchemaLoadLatest

2020-05-18 Thread Eric Blake
+- tests/testutilsqemuschema.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 18/21] qemu: Prepare for testing of 'netdev_add' props via qemuxml2argvtest

2020-05-18 Thread Eric Blake
eter Krempa --- Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 17/21] qemuMonitorAddNetdev: Convert to the native JSON props object

2020-05-18 Thread Eric Blake
Krempa --- Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 16/21] qemuBuildChannelGuestfwdNetdevProps: Convert to generating JSON props

2020-05-18 Thread Eric Blake
. But in the meantime, yes, this looks like you are properly handling existing quirks correctly. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 15/21] virQEMUBuildNetdevCommandlineFromJSON: Prepare for quirky 'guestfwd'

2020-05-18 Thread Eric Blake
:10.0.2.1:4600-chardev:charchannel0,guestfwd=... But the idea makes sense - the QMP form uses quite a bit of nesting (although actual qapfication of netdev occurred late, the hand-rolled parser for netdev predated many of the best practices learned for other interfaces, and the CLI does not refle

Re: [PATCH 14/21] qemu: command: Generate -netdev command line via JSON->cmdline conversion

2020-05-18 Thread Eric Blake
3 +++- 3 files changed, 119 insertions(+), 69 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 13/21] util: virqemu: Introduce virQEMUBuildNetdevCommandlineFromJSON

2020-05-18 Thread Eric Blake
r props); + int virQEMUBuildObjectCommandlineFromJSON(virBufferPtr buf, virJSONValuePtr objprops); Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 12/21] qemuMonitorJSON(Add|Remove)Netdev: Refactor cleanup

2020-05-18 Thread Eric Blake
deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 11/21] testCompareXMLToArgv: Split out preparation and command formatting

2020-05-18 Thread Eric Blake
ll be necessary for QMP schema validation tests. Signed-off-by: Peter Krempa --- tests/qemuxml2argvtest.c | 158 +-- 1 file changed, 86 insertions(+), 72 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +

Re: [PATCH 10/21] util: json: Introduce virJSONValueObjectAppendStringPrintf

2020-05-18 Thread Eric Blake
/virjson.h | 2 ++ 3 files changed, 20 insertions(+) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 09/21] virCommand: Introduce virCommandGetArgList

2020-05-18 Thread Eric Blake
| 23 +++ src/util/vircommand.h| 1 + 3 files changed, 25 insertions(+) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 08/21] virQEMUBuildCommandLineJSON: Add possibility for using 'on/off' instead of 'yes/no'

2020-05-18 Thread Eric Blake
a single spelling we could use for all boolean CLI parameters across all supported qemu versions. But this is certainly the most conservative way to deal with the fact that some of the CLI parameters are ad hoc rather than sharing common code, and thus inconsistent on which spellings work where.

Re: [PATCH 07/21] virQEMUBuildCommandLineJSON: Allow skipping certain keys

2020-05-18 Thread Eric Blake
anged, 29 insertions(+), 13 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 06/21] qemuBuildHostNetStr: Stop using 'ipv6-net' convenience argument

2020-05-18 Thread Eric Blake
ned-off-by: Peter Krempa --- src/qemu/qemu_command.c | 20 ++-- tests/qemuxml2argvdata/net-user-addr.args | 3 ++- 2 files changed, 12 insertions(+), 11 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +

Re: [PATCH 05/21] qemuBuildChannelChrDeviceStr: Remove formatting of properties for -netdev

2020-05-15 Thread Eric Blake
src/qemu/qemu_hotplug.c | 18 +- 3 files changed, 36 insertions(+), 21 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 04/21] qemuBuildChannelsCommandLine: Extract common formatting of 'chardev'

2020-05-15 Thread Eric Blake
- 1 file changed, 11 insertions(+), 21 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 03/21] qemuBuildChannelsCommandLine: Use typecasted switch for channel type

2020-05-15 Thread Eric Blake
On 5/15/20 10:27 AM, Peter Krempa wrote: Cover all cases of the enum. Signed-off-by: Peter Krempa --- src/qemu/qemu_command.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301

Re: [PATCH 02/21] qemuMonitorJSONParseKeywords: remove constant argument

2020-05-15 Thread Eric Blake
found, * NULL is be placed into corresponding place in retvalues. While you are touching this, s/is be placed into/will be placed into the/ With that, Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 01/21] qemu: domain: Forbid unsupported 'tftp' protocol and handle tests

2020-05-15 Thread Eric Blake
work.xml | 9 - 5 files changed, 16 insertions(+), 26 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: device hotplug & file handles

2020-05-07 Thread Eric Blake
already supports, rather than inventing yet another syntax. thanks, Gerd PS: background: https://bugzilla.redhat.com/show_bug.cgi?id=1595525 -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH v5 3/7] qcow: Tolerate backing_fmt=, but warn on backing_fmt=raw

2020-05-05 Thread Eric Blake
On 5/5/20 2:35 AM, Kevin Wolf wrote: Am 03.04.2020 um 19:58 hat Eric Blake geschrieben: qcow has no space in the metadata to store a backing format, and there are existing qcow images backed both by raw or by other formats (usually qcow) images, reliant on probing to tell the difference. While

Re: [PATCH v5 for-5.0? 0/7] Tighten qemu-img rules on missing backing format

2020-05-04 Thread Eric Blake
On 4/3/20 12:58 PM, Eric Blake wrote: v4 was here: https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg03775.html In v5: - fix 'qemu-img convert -B' to actually warn [Kashyap] - squash in followups - a couple more iotest improvements If we decide this is not 5.0 material, then

Re: [RFC PATCH 1/3] qemu: capabilities: Introduce QEMU_CAPS_COMPAT_DEPRECATED

2020-04-30 Thread Eric Blake
0) virQEMUCapsSet(qemuCaps, QEMU_CAPS_TCG); + +if (qemuCaps->version >= 550) +virQEMUCapsSet(qemuCaps, QEMU_CAPS_COMPAT_DEPRECATED); } And of course, this will be reworked if your request to the qemu list to make it introspectible is resolved. -- Eric Blake, Principal

Re: [PATCH 1/3] Improve blockpull man entry

2020-04-29 Thread Eric Blake
en that's okay. I was just pointing out that anything mentioned in the man page should also mention the need for proper shell quoting. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH v5 0/4] introduction of migration_version attribute for VFIO live migration

2020-04-29 Thread Eric Blake
they don't have PCI vendor IDs. ...to just what you are replying to. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 1/3] Improve blockpull man entry

2020-04-28 Thread Eric Blake
27;, the unquoted command will see the argument 'vda1') error: Scaled numeric value 'vda[1]' for <--bandwidth> option is malformed or out of range # virsh blockpull fedora vda 1024 vda[1] Block Pull started I'll change to [bandwidth [--bytes] [base]] -- Eric

Re: [libvirt PATCH] qemu: re-add padding to the saved state images

2020-04-27 Thread Eric Blake
#x27;s of MB in size. Thus this adds 64 KB of padding after the XML which should cope with any plausible modifications a user will want to make. Signed-off-by: Daniel P. Berrangé --- src/qemu/qemu_driver.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) Reviewed

Re: [PATCH 4/4] util: qcow2GetExtensions: Remove support for 'data file' extension

2020-04-24 Thread Eric Blake
On 4/24/20 10:18 AM, Peter Krempa wrote: On Fri, Apr 24, 2020 at 09:52:00 -0500, Eric Blake wrote: On 4/24/20 4:24 AM, Peter Krempa wrote: The implementation was never finished in libvirt. Remove it. Signed-off-by: Peter Krempa --- src/util/virstoragefile.c | 19 ++- 1

Re: [PATCH] virStorageSourceParseNBDColonString: Rewrite to match what qemu does

2020-04-24 Thread Eric Blake
" \n" + "\n"); nbd+unix:///?socket=/tmp/sock: +TEST_BACKING_PARSE("nbd:unix:/tmp/sock::exportname=:", + "\n" + " \n" + "\n"); nbd+unix://

Re: [PATCH 4/4] util: qcow2GetExtensions: Remove support for 'data file' extension

2020-04-24 Thread Eric Blake
qcow2 file with the extension header set, at which point we can error out and tell the user their image is unsupported, rather than trying to use it without the data file? -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 5/5] backup: Store error message for failed backups

2020-04-23 Thread Eric Blake
eft on device https://bugzilla.redhat.com/show_bug.cgi?id=1812827 Signed-off-by: Peter Krempa --- Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 4/5] qemu: domain: Add 'errmsg' field to qemuDomainJobInfo

2020-04-23 Thread Eric Blake
On 4/16/20 4:55 AM, Peter Krempa wrote: The field can be used by jobs to add an optional error message to a completed (failed) job. Signed-off-by: Peter Krempa --- src/qemu/qemu_domain.c | 3 +++ src/qemu/qemu_domain.h | 2 ++ 2 files changed, 5 insertions(+) Reviewed-by: Eric Blake

Re: [PATCH 3/5] API: Add VIR_DOMAIN_JOB_ERRMSG domain job statistics field

2020-04-23 Thread Eric Blake
cting it in virsh. Signed-off-by: Peter Krempa --- include/libvirt/libvirt-domain.h | 9 + tools/virsh-domain.c | 8 2 files changed, 17 insertions(+) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301

Re: [PATCH] qemu: Move interlocking of blockjobs and checkpoints after liveness check

2020-04-23 Thread Eric Blake
r the liveness check in block job implementations. Signed-off-by: Peter Krempa --- src/qemu/qemu_driver.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualiz

Re: [PATCH 2/5] qemu: Add free and copy function for qemuDomainJobInfo and use it

2020-04-16 Thread Eric Blake
_new0 as it includes the type and thus it's very easy to grep for all the allocations of a given type. Signed-off-by: Peter Krempa --- Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 1/5] remote: remoteDispatchDomainGetJobStats: Encode typed parameter strings

2020-04-16 Thread Eric Blake
: Peter Krempa --- src/remote/remote_daemon_dispatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 1/2] docs: backup: Remove references to push backup to network disk

2020-04-14 Thread Eric Blake
On 4/14/20 2:06 PM, Peter Krempa wrote: On Tue, Apr 14, 2020 at 12:36:56 -0500, Eric Blake wrote: On 4/14/20 4:22 AM, Peter Krempa wrote: It was never implemented and for now I don't think there's demand to do it. Remove the reference. https://bugzilla.redhat.com/show_bug.cgi?

Re: [PATCH 1/2] docs: backup: Remove references to push backup to network disk

2020-04-14 Thread Eric Blake
clined to NACK this patch. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: Domain backup file explodes on s3fs

2020-04-07 Thread Eric Blake
the only correct behavior. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

[PATCH v5 1/7] sheepdog: Add trivial backing_fmt support

2020-04-03 Thread Eric Blake
rejecting all other explicit formats (note that this is only for QemuOpts usage; there is no change to the QAPI to allow a format through -blockdev). Signed-off-by: Eric Blake --- block/sheepdog.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/block

[PATCH v5 6/7] block: Add support to warn on backing file change without format

2020-04-03 Thread Eric Blake
For now, this is a mechanical addition; all callers pass false. But the next patch will use it to improve 'qemu-img rebase -u' when selecting a backing file with no format. Signed-off-by: Eric Blake Reviewed-by: Peter Krempa Reviewed-by: Ján Tomko --- include/block/block.h | 4 ++-

[PATCH v5 7/7] qemu-img: Deprecate use of -b without -F

2020-04-03 Thread Eric Blake
change to qcow messages; note that the fact that we now make a probed format of 'raw' explicit now results in a double warning, but no one should be creating new qcow images so it is not worth cleaning up. Signed-off-by: Eric Blake --- docs/system/deprecated.rst | 20 +

[PATCH v5 2/7] vmdk: Add trivial backing_fmt support

2020-04-03 Thread Eric Blake
rejecting all other explicit formats (note that this is only for QemuOpts usage; there is no change to the QAPI to allow a format through -blockdev). Signed-off-by: Eric Blake --- block/vmdk.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/block/vmdk.c b/block/vmdk.c index

[PATCH v5 4/7] qcow2: Deprecate use of qemu-img amend to change backing file

2020-04-03 Thread Eric Blake
unrelated to the backing chain. Signed-off-by: Eric Blake --- docs/system/deprecated.rst | 12 docs/tools/qemu-img.rst| 4 block/qcow2.c | 5 + tests/qemu-iotests/061.out | 1 + tests/qemu-iotests/082.out | 2 ++ 5 files changed, 24 insertions(+) diff -

[PATCH v5 3/7] qcow: Tolerate backing_fmt=, but warn on backing_fmt=raw

2020-04-03 Thread Eric Blake
Note that this is only for QemuOpts usage; there is no change to the QAPI to allow a format through -blockdev. Add a new iotest 290 just for qcow, to demonstrate the new warning. Signed-off-by: Eric Blake --- block/qcow.c | 16 - tests/qemu-iotests/290

[PATCH v5 for-5.0? 0/7] Tighten qemu-img rules on missing backing format

2020-04-03 Thread Eric Blake
.1/ as the start of the deprecation clock. Eric Blake (7): sheepdog: Add trivial backing_fmt support vmdk: Add trivial backing_fmt support qcow: Tolerate backing_fmt=, but warn on backing_fmt=raw qcow2: Deprecate use of qemu-img amend to change backing file iotests: Specify explicit back

Re: [libvirt PATCH] github: enable lockdown of issues and merge requests

2020-04-03 Thread Eric Blake
ile? Otherwise, Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH for-5.0? v4 0/7] Tighten qemu-img rules on missing backing format

2020-04-02 Thread Eric Blake
On 3/12/20 2:28 PM, Eric Blake wrote: v3 was here: https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg01730.html In v4: - old patch 1 was reworked into new patch 1-3, with stricter rules on which backing formats are accepted [Kevin] - patch 4 is new: amend is handled differently from

Re: [PATCH 2/2] virDomainCheckpointRedefinePrep: Set 'current' checkpoint if there isn't any

2020-04-01 Thread Eric Blake
file changed, 4 insertions(+) Reviewed-by: Eric Blake diff --git a/src/conf/checkpoint_conf.c b/src/conf/checkpoint_conf.c index 26bcfc16b7..d557fada49 100644 --- a/src/conf/checkpoint_conf.c +++ b/src/conf/checkpoint_conf.c @@ -550,6 +550,10 @@ virDomainCheckpointRedefinePrep(virDomainObjPtr

Re: [PATCH 1/2] qemu: checkpoint: Allow checkpoint redefine for offline VMs

2020-04-01 Thread Eric Blake
+), 9 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH] qemuCheckpointCreateXML: Check VM liveness first

2020-03-26 Thread Eric Blake
/qemu/qemu_checkpoint.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) We just did the same thing for CheckpointDelete :) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH 2/2] qemuBackupBegin: Fix monitor access when rolling back due to failure

2020-03-26 Thread Eric Blake
rempa Would be nice to mention which commit id introduced the bug. --- src/qemu/qemu_backup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Eric Blake diff --git a/src/qemu/qemu_backup.c b/src/qemu/qemu_backup.c index 8b66ee8d1f..9a056fa407 100644 --- a/src/qemu/qemu_bac

Re: [PATCH 1/2] qemuCheckpointDelete: Check VM liveness first

2020-03-26 Thread Eric Blake
/qemu/qemu_checkpoint.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Eric Blake diff --git a/src/qemu/qemu_checkpoint.c b/src/qemu/qemu_checkpoint.c index 76f10a701e..62b6e87b53 100644 --- a/src/qemu/qemu_checkpoint.c +++ b/src/qemu/qemu_checkpoint.c @@ -771,15 +7

Re: [PULL 00/10] Bitmaps patches

2020-03-18 Thread Eric Blake
compile with clang: As pointed out here, my recommendation is for John to send a v2 pull request with one more patch added: https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg05969.html -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization

Re: [PULL 00/10] Bitmaps patches

2020-03-17 Thread Eric Blake
s://github.com/GNOME/glib/commit/b41bff1f (2.57.2) added G_GNUC_UNUSED to all of the functions declared during G_DEFINE_AUTOPTR_CLEANUP_FUNC. Which version of glib is on the NetBSD machine? -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PULL 00/10] Bitmaps patches

2020-03-17 Thread Eric Blake
d to shut the compiler up? On IRC, danpb pointed me to libvirt's solution: https://libvirt.org/git/?p=libvirt.git;a=commit;h=44e7f029 Maybe we just write our own macro wrapper around G_DEFINE_AUTOPTR_CLEANUP_FUNC which takes care of adding necessary annotations and use that instead (and our m

Re: [libvirt PATCH] build: workaround behaviour regression in gnu make 4.3

2020-03-13 Thread Eric Blake
dded if the variable already contains some value. Similarly, appending an empty string does not add a trailing space. [/quote] This patch tries a new trick to get a single whitespace by getting make to expand two non-existant variables separated by a space. Reviewed-by: Eric Blake https://

Re: [PATCH v4 7/7] qemu-img: Deprecate use of -b without -F

2020-03-13 Thread Eric Blake
On 3/12/20 2:28 PM, Eric Blake wrote: Creating an image that requires format probing of the backing image is inherently unsafe (we've had several CVEs over the years based on probes leaking information to the guest on a subsequent boot, although these days tools like libvirt are aware o

Re: [PATCH v3 4/4] qemu-img: Deprecate use of -b without -F

2020-03-13 Thread Eric Blake
On 3/9/20 10:31 AM, Kashyap Chamarthy wrote: On Fri, Mar 06, 2020 at 04:51:21PM -0600, Eric Blake wrote: Creating an image that requires format probing of the backing image is inherently unsafe (we've had several CVEs over the years based on +qemu-img backing file without format (

Re: [PATCH v4 0/7] Tighten qemu-img rules on missing backing format

2020-03-12 Thread Eric Blake
BlockdevCreateOptions *create_options = NULL; -QDict *qdict, *location_qdict; +QDict *qdict = NULL, *location_qdict; Visitor *v; -char *redundancy; +char *redundancy = NULL; Error *local_err = NULL; int ret; char *backing_fmt = NULL; -- Eric Blake, Principal Softwa

[PATCH v4 7/7] qemu-img: Deprecate use of -b without -F

2020-03-12 Thread Eric Blake
ould be creating new qcow images so it is not worth cleaning up. Signed-off-by: Eric Blake --- docs/system/deprecated.rst | 19 +++ block.c| 21 - qemu-img.c | 2 +- tests/qemu-iotests/114 | 11 +++ tests/qemu-

[PATCH v4 6/7] block: Add support to warn on backing file change without format

2020-03-12 Thread Eric Blake
For now, this is a mechanical addition; all callers pass false. But the next patch will use it to improve 'qemu-img rebase -u' when selecting a backing file with no format. Signed-off-by: Eric Blake Reviewed-by: Peter Krempa Reviewed-by: Ján Tomko --- include/block/block.h | 4 ++-

[PATCH v4 1/7] sheepdog: Add trivial backing_fmt support

2020-03-12 Thread Eric Blake
rejecting all other explicit formats (note that this is only for QemuOpts usage; there is no change to the QAPI to allow a format through -blockdev). Signed-off-by: Eric Blake --- block/sheepdog.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/block/sheepdog.c b/block

[PATCH v4 0/7] Tighten qemu-img rules on missing backing format

2020-03-12 Thread Eric Blake
v3 was here: https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg01730.html In v4: - old patch 1 was reworked into new patch 1-3, with stricter rules on which backing formats are accepted [Kevin] - patch 4 is new: amend is handled differently from rebase [Kashyap] - rebase to master Eric

[PATCH v4 2/7] vmdk: Add trivial backing_fmt support

2020-03-12 Thread Eric Blake
rejecting all other explicit formats (note that this is only for QemuOpts usage; there is no change to the QAPI to allow a format through -blockdev). Signed-off-by: Eric Blake --- block/vmdk.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/block/vmdk.c b/block/vmdk.c index

[PATCH v4 3/7] qcow: Tolerate backing_fmt=, but warn on backing_fmt=raw

2020-03-12 Thread Eric Blake
Note that this is only for QemuOpts usage; there is no change to the QAPI to allow a format through -blockdev. Add a new iotest 290 just for qcow, to demonstrate the new warning. Signed-off-by: Eric Blake --- block/qcow.c | 16 - tests/qemu-iotests/290

[PATCH v4 4/7] qcow2: Deprecate use of qemu-img amend to change backing file

2020-03-12 Thread Eric Blake
unrelated to the backing chain. Signed-off-by: Eric Blake --- docs/system/deprecated.rst | 12 docs/tools/qemu-img.rst| 4 block/qcow2.c | 5 + tests/qemu-iotests/061.out | 1 + tests/qemu-iotests/082.out | 2 ++ 5 files changed, 24 insertions(+) diff -

Re: [PATCH 05/30] qemu: domain: Split out encryption of secret object data

2020-03-11 Thread Eric Blake
t was deleted. Signed-off-by: Peter Krempa --- -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [PATCH v2 19/19] qemu: blockjob: Re-enable bitmaps after failed block-copy

2020-03-11 Thread Eric Blake
leave it disabled rather than trying to re-enable it (just to have it be re-disabled on the retry attempt). But on the grounds of trying to leave things as close to what they were before failure, I'm okay with this patch, if you can straighten out my confusion on naming. Reviewed-by: E

Re: [PATCH v2 18/19] qemu: blockjob: Handle bitmaps after finish of normal block-commit

2020-03-11 Thread Eric Blake
adOnly(vm, job->data.commit.base, asyncJob) < 0) +return -1; Earlier in the series, you ignored failure to restore readonly (leaving things read-write isn't ideal, but isn't a show-stopper to correct operation). Any reason why that use was different than this where yo

Re: [PATCH v2 17/19] qemuDomainBlockPivot: Handle merging of bitmaps when pivoting an active block-commit

2020-03-11 Thread Eric Blake
job->data.commit.base, + blockNamedNodeData, + &actions, + job->data.commit.disabledBitmapsBase) < 0) + return -1; +} + Reviewed-by: Eric Blake

Re: [PATCH v2 16/19] qemuDomainBlockCommit: Handle bitmaps on start of commit

2020-03-11 Thread Eric Blake
he same whether we write bits in one or multiple bitmaps as part of the commit operation). But code wise, this looks accurate. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

<    1   2   3   4   5   6   7   8   9   10   >