[Qemu-devel] [PATCH qemu] migration/vmstate: document VMStateFlags

2016-01-21 Thread Sascha Silbe
The VMState API is rather sparsely documented. Start by describing the meaning of all VMStateFlags. Signed-off-by: Sascha Silbe --- Since I had to dive into the code for debugging the migration breakage anyway, I figured I could just as well write down the result in the form of comments so the

Re: [Qemu-devel] [PATCH 2/2] migration/virtio: Remove simple .get/.put use

2016-01-21 Thread Sascha Silbe
r your help on this. Thanks, looking forward to the next version of your patch. Will use the the previous one in the meantime as a local work-around. Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051

2015-11-24 Thread Sascha Silbe
-blk on all architectures whenever the test case doesn't care about the device type. (I doubt the tests currently work on architectures that don't support virtio, but will of course check this). Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

[Qemu-devel] [PATCH 1/2] qemu-iotests: add _filter_qmp_events() for filtering out QMP events

2016-02-09 Thread Sascha Silbe
The order of some QMP events may depend on the architecture being tested. Add support for filtering out QMP events so we can use a single reference output for all architecture when the test doesn't care about the events. Signed-off-by: Sascha Silbe --- tests/qemu-iotests/common.filte

[Qemu-devel] [PATCH 2/2] qemu-iotests: 067: ignore QMP events

2016-02-09 Thread Sascha Silbe
he Python-based test case 139, so the test coverage should be unaffected. Make use of _filter_qmp_events() introduced by the previous patch to remove QMP events from the test case output and adjust the reference output accordingly. Signed-off-by: Sascha Silbe --- This patch is a lot easier to read

[Qemu-devel] [PATCH 0/2] qemu-iotests: fix 067 on s390x

2016-02-09 Thread Sascha Silbe
second patch. Sascha Silbe (2): qemu-iotests: add _filter_qmp_events() for filtering out QMP events qemu-iotests: 067: ignore QMP events tests/qemu-iotests/067 | 4 +- tests/qemu-iotests/067.out | 527 +++ tests/qemu-iotests/common.filter

[Qemu-devel] [PATCH 3/3] qemu-iotests: 140: use virtio-scsi instead of IDE

2016-02-09 Thread Sascha Silbe
IDE is only implemented by very few architectures (mostly PC). Use virtio-scsi instead so the test works on all architectures that support virtio. In particular, this fixes qemu-iotests on s390x. Fixes: 16dee418 ("iotests: Add test for eject under NBD server") Signed-off-by: Sa

[Qemu-devel] [PATCH 2/3] qdev-monitor: add missing aliases for virtio-{9p, balloon, rng, scsi}

2016-02-09 Thread Sascha Silbe
devices that are implemented on all architectures supporting virtio. For virtio-balloon, only the CCW implementation was missing. Signed-off-by: Sascha Silbe --- This leaves out virtio-{gpu,input,input-hid,input-host,keyboard,mouse,tablet} because they're currently only implemented usin

[Qemu-devel] [PATCH 0/3] qemu-iotests: fix 140 on s390x

2016-02-09 Thread Sascha Silbe
Yet another IDE-using test crept in (commit 16dee418). Fix it by using virtio-scsi. And to make this easier, provide cross-architecture aliases for all virtio devices. Sascha Silbe (3): qdev-monitor: sort alias table by typename qdev-monitor: add missing aliases for virtio-{9p,balloon,rng

[Qemu-devel] [PATCH 1/3] qdev-monitor: sort alias table by typename

2016-02-09 Thread Sascha Silbe
Sort the alias table by typename so it's easier to see which aliases exist. Signed-off-by: Sascha Silbe --- qdev-monitor.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qdev-monitor.c b/qdev-monitor.c index 81e3ff3..0145deb 100644 --- a/qdev-monitor.c

Re: [Qemu-devel] [PATCH 1/2] qemu-iotests: add _filter_qmp_events() for filtering out QMP events

2016-02-10 Thread Sascha Silbe
. And before I start implementing a JSON indenter in awk, I'd rather rewrite the whole test in Python. So if we stay with the shell test for now, we need something like your incantation above. It's not perfect, but good enough for now and I can't think of anything significantly simpler right now either. Will test your version and send a v2. Thanks for the suggestion! Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [PATCH 3/3] qemu-iotests: 140: use virtio-scsi instead of IDE

2016-02-10 Thread Sascha Silbe
to work? I.e. can we rely on it? If so, that would certainly be the easier route for this particular test. Test coverage should be unaffected as 139 already tests ejection (using virtio, unlike 118 which is PC-only). The aliases patch has a value of its own, but that's a separate matter. Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [PATCH 2/3] qdev-monitor: add missing aliases for virtio-{9p, balloon, rng, scsi}

2016-02-11 Thread Sascha Silbe
Dear Conny, Cornelia Huck writes: > On Thu, 11 Feb 2016 10:01:35 +0100 > Markus Armbruster wrote: > >> Sascha Silbe writes: > >> > This leaves out >> > virtio-{gpu,input,input-hid,input-host,keyboard,mouse,tablet} because >> > they're c

Re: [Qemu-devel] [PATCH 1/3] qdev-monitor: sort alias table by typename

2016-02-11 Thread Sascha Silbe
Dear Markus, Markus Armbruster writes: > Sascha Silbe writes: > >> Sort the alias table by typename so it's easier to see which aliases >> exist. [...] [qdev-monitor.c] > > Suggest to add > >/* Please keep this table sorted */ Good idea. I've a

Re: [Qemu-devel] [PATCH 1/2] qemu-iotests: add _filter_qmp_events() for filtering out QMP events

2016-02-11 Thread Sascha Silbe
o complex for my taste. If _filter_qmp_events() isn't generic enough to be used by other test cases, I can make it internal to 067. Alternatively I can port 067 to Python, which can handle JSON data types natively with no need for post-processing hacks. Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [PATCH 2/2] migration/virtio: Remove simple .get/.put use

2016-01-14 Thread Sascha Silbe
to introduce another macro VMSTATE_STRUCT_VARRAY_POINTER_KNOWN? PS: Won't your patch break migration between different qemu versions? I don't see any compat code and you're changing at least some field names (e.g. "virtqueues" vs. "vq"). Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [PATCH 2/2] migration/virtio: Remove simple .get/.put use

2016-01-18 Thread Sascha Silbe
the above, migration fails on x86_64, too. Your patch fixes the basic save/resume test on both x86_64 and s390x, so: Tested-By: Sascha Silbe (I currently don't have a more extensive test for migration; in particular nothing that puts the guest in a pre-defined state and compares on-the-wi

Re: [Qemu-devel] [PATCH 2/2] migration/virtio: Remove simple .get/.put use

2016-01-18 Thread Sascha Silbe
current naming scheme in the first place, e.g. VMSTATE_ARRAY_INT32_UNSAFE vs. VMSTATE_VARRAY_INT32, with both of them specifying VMS_VARRAY_INT32... Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

[Qemu-devel] [PATCH v2 1/2] qemu-iotests: 140: don't use IDE device

2016-02-18 Thread Sascha Silbe
IDE is only implemented by very few architectures (mostly PC). The test doesn't actually need a block device attached to the BlockBackend, so just drop it and adjust the reference output accordingly. Fixes: 16dee418 ("iotests: Add test for eject under NBD server") Signed-off-b

[Qemu-devel] [PATCH v2 0/2] qemu-iotests: fix 140 on s390x

2016-02-18 Thread Sascha Silbe
ption of qemu-iotest 140 Sascha Silbe (2): qemu-iotests: 140: don't use IDE drive qemu-iotests: 140: make description slightly more verbose tests/qemu-iotests/140 | 8 ++-- tests/qemu-iotests/140.out | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) -- 2.1.4

[Qemu-devel] [PATCH v2 2/2] qemu-iotests: 140: make description slightly more verbose

2016-02-18 Thread Sascha Silbe
Describe in a little more detail what the test is supposed to achieve. Signed-off-by: Sascha Silbe --- Max, does this reflect your intentions well enough? I took the liberty of re-using some of your review comments to extend the description. v1->v2: new patch tests/qemu-iotests/140

Re: [Qemu-devel] [PATCH 2/3] qdev-monitor: add missing aliases for virtio-{9p, balloon, rng, scsi}

2016-02-18 Thread Sascha Silbe
pu' (alias 'virtio-gpu-ccw') > is not a valid device model name > > would make it obvious that some alias expansion had been going on. I > think that would be useful. Good idea. Will include a patch for this in the next version. Sascha -- Softwareentwicklung Sascha S

[Qemu-devel] [PATCH v2 1/3] qdev-monitor: improve error message when alias device is unavailable

2016-02-18 Thread Sascha Silbe
l name Special-case the error message to make it explicit that alias expansion is going on: $ s390x-softmmu/qemu-system-s390x -device virtio-gpu qemu-system-s390x: -device virtio-gpu: 'virtio-gpu' (alias 'virtio-gpu-ccw') is not a valid device model name Suggested-By: Corneli

[Qemu-devel] [PATCH v2 3/3] qdev-monitor: add missing aliases for virtio device classes

2016-02-18 Thread Sascha Silbe
existing non-abstract virtio device classes. For virtio-balloon, only the CCW implementation was missing. Signed-off-by: Sascha Silbe --- v1->v2: - Completely wired up all (non-abstract) virtio device classes, even those that still lack a CCW implementation. Markus, does your Reviewed-by apply

[Qemu-devel] [PATCH v2 0/3] add missing virtio aliases

2016-02-18 Thread Sascha Silbe
an alias doesn't exist - added comment about keeping alias table sorted - covering all non-abstract virtio device classes rather than just those already implemented on s390x Sascha Silbe (3): qdev-monitor: improve error message when alias device is unavailable qdev-monitor: sort alias tab

[Qemu-devel] [PATCH v2 2/3] qdev-monitor: sort alias table by typename

2016-02-18 Thread Sascha Silbe
Sort the alias table by typename so it's easier to see which aliases exist. Signed-off-by: Sascha Silbe --- v1->v2: Added comment asking devs to keep table sorted --- qdev-monitor.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/qdev-monitor.

[Qemu-devel] [PATCH v2 0/1] qemu-iotests: fix 067 on s390x

2016-02-19 Thread Sascha Silbe
oid switching to single-line JSON which is hard to read - roll _filter_qmp_events() into 067 as the multi-line version isn't robust enough for general use Sascha Silbe (1): qemu-iotests: 067: ignore QMP events tests/qemu-iotests/067 | 11 +++- tests/qemu-iotests/067.o

[Qemu-devel] [PATCH v2 1/1] qemu-iotests: 067: ignore QMP events

2016-02-19 Thread Sascha Silbe
thon-based test case 139, so the test coverage should be unaffected. Make use of the recently introduced _filter_qmp_events() to remove QMP events from the test case output and adjust the reference output accordingly. The tr / sed / tr trick used for filtering was suggested by Max Reitz . Signed-

Re: [Qemu-devel] [PATCH v2 3/3] qdev-monitor: add missing aliases for virtio device classes

2016-02-22 Thread Sascha Silbe
t do any virtio-foo → virtio-foo-{pci,ccw} alias magic for it. [...] > Reviewed-by: Cornelia Huck Thanks for the reviews! Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [PATCH qemu] migration/vmstate: document VMStateFlags

2016-02-25 Thread Sascha Silbe
Dear Amit, Amit Shah writes: > On (Thu) 21 Jan 2016 [21:39:27], Sascha Silbe wrote: >> The VMState API is rather sparsely documented. Start by describing the >> meaning of all VMStateFlags. > Thanks, I've pulled this in my queue. > > There's one new flag add

Re: [Qemu-devel] [PATCH qemu] migration/vmstate: document VMStateFlags

2016-02-25 Thread Sascha Silbe
Dear Amit, > Amit Shah writes: > >> On (Thu) 21 Jan 2016 [21:39:27], Sascha Silbe wrote: >>> The VMState API is rather sparsely documented. Start by describing the >>> meaning of all VMStateFlags. > >> Thanks, I've pulled this in my queue. >> &g

[Qemu-devel] [PATCH v2] migration/vmstate: document VMStateFlags

2016-02-26 Thread Sascha Silbe
The VMState API is rather sparsely documented. Start by describing the meaning of all VMStateFlags. Reviewed-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Sascha Silbe --- v1->v2: - rebased on current devel - documented VMS_MULTIPLY_ELEMENTS (including references

Re: [Qemu-devel] [PATCH qemu] migration/vmstate: document VMStateFlags

2016-02-26 Thread Sascha Silbe
Dear Amit, Amit Shah writes: >> FWIW, here's the version based on current master. As mentioned before; >> I'm happy to rebase on your version if you prefer. > > Thanks, can you please post this as a standalone email? Easier for me > to apply. Sure. Sascha -- S

[Qemu-devel] [PATCH] block: don't register quorum driver if SHA256 support is unavailable

2015-08-04 Thread Sascha Silbe
stering the quorum block driver if we know it cannot work. This way API consumers can recognise it's unavailable. Fixes: 488981a4af396551a3178d032cc2b41d9553ada2 Signed-off-by: Sascha Silbe --- block/quorum.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a

Re: [Qemu-devel] [PATCH] block: don't register quorum driver if SHA256 support is unavailable

2015-08-05 Thread Sascha Silbe
Dear Peter, Peter Maydell writes: > Applied to master, thanks. Thanks everyone for the fast reviews and inclusion! Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [PATCH v11 0/5] Update tests/qemu-iotests failing cases for the s390 platform

2015-09-03 Thread Sascha Silbe
est 041 and 055 >> qemu-iotests: s390x: fix test 049, reject negative sizes in QemuOpts >> qemu-iotests: s390x: fix test 130 > > Thanks, applied to the block branch. I don't see them in master yet. Is there anything else missing before you're going to send your ne

Re: [Qemu-devel] [PATCH v2 0/3] add missing virtio aliases

2016-03-04 Thread Sascha Silbe
Sascha Silbe writes: [...] > This series makes crafting qemu command lines that work across > multiple (virtio-supporting) platforms at lot easier. [...] Ping. Conny has already given her Reviewed-By; Markus gave it for a previous version of the third patch. Are there any other opinions o

[Qemu-devel] [PATCH 7/7] qemu-iotests: iotests.py: get rid of __all__

2016-04-05 Thread Sascha Silbe
g them all unconditionally is a bad idea anyway. Since __all__ is not adding any value, let's just get rid of it. Fixes: f345cfd0 ("qemu-iotests: add iotests Python module") Signed-off-by: Sascha Silbe Reviewed-by: Bo Tu --- tests/qemu-iotests/iotests.py | 4 1 file changed, 4 deletio

[Qemu-devel] [PATCH 1/7] qemu-iotests: check: don't place files with predictable names in /tmp

2016-04-05 Thread Sascha Silbe
Placing files with predictable or even hard-coded names in /tmp is a security risk and can prevent or disturb operation on a multi-user machine. Place them inside the "scratch" directory instead, as we already do for most other test-related files. Signed-off-by: Sascha Silbe Reviewed

[Qemu-devel] [PATCH 2/7] qemu-iotests: fix 051 on non-PC architectures

2016-04-05 Thread Sascha Silbe
HE_WB") Signed-off-by: Sascha Silbe Reviewed-by: Bo Tu --- tests/qemu-iotests/051.out | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/qemu-iotests/051.out b/tests/qemu-iotests/051.out index c1291ff..408d613 100644 --- a/tests/qemu-iotests/051.out +++ b/

[Qemu-devel] [PATCH 4/7] qemu-iotests: 148: properly skip test if quorum support is missing

2016-04-05 Thread Sascha Silbe
ff-by: Sascha Silbe Reviewed-by: Bo Tu --- tests/qemu-iotests/148| 4 +--- tests/qemu-iotests/iotests.py | 5 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/qemu-iotests/148 b/tests/qemu-iotests/148 index d066ec3..e01b061 100644 --- a/tests/qemu-iotests/148 +++ b/

[Qemu-devel] [PATCH 3/7] qemu-iotests: iotests.VM: remove qtest socket on error

2016-04-05 Thread Sascha Silbe
ib64/python2.7/socket.py", line 224, in meth +return getattr(self._sock,name)(*args) +error: [Errno 98] Address already in use Fix this by cleaning up both the monitor socket and the qtest socket iff they exist. Signed-off-by: Sascha Silbe Reviewed-by: Bo Tu --- tests/qemu-iotests/iote

[Qemu-devel] [PATCH 5/7] qemu-iotests: 068: don't require KVM

2016-04-05 Thread Sascha Silbe
None of the other test cases explicitly enable KVM and there's no obvious reason for 068 to require it. Drop this so all test cases can be executed in environments where KVM is not available (e.g. because the user doesn't have sufficient permissions to access /dev/kvm). Signed-off-

[Qemu-devel] [PATCH 0/7] next round of qemu-iotests fixes

2016-04-05 Thread Sascha Silbe
With these fixes, qemu-iotests complete successfully on my test systems (s390x, x86_64) when used with QCOW2 or raw image formats. These are purely bug fixes for tests and most are trivial, so they should be safe even for hard freeze. Sascha Silbe (7): qemu-iotests: check: don't place

[Qemu-devel] [PATCH 6/7] qemu-iotests: 141: reduce likelihood of race condition on systems with fast IO

2016-04-05 Thread Sascha Silbe
just replace it with a fixed value globally (in _filter_qmp), the same way we handle timestamps. Signed-off-by: Sascha Silbe Reviewed-by: Bo Tu --- tests/qemu-iotests/141 | 11 ++- tests/qemu-iotests/141.out | 24 tests/qemu-iotests/common.filter

Re: [Qemu-devel] [Qemu-block] [PATCH 1/7] qemu-iotests: check: don't place files with predictable names in /tmp

2016-04-07 Thread Sascha Silbe
hanks for the reviews! Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [Qemu-block] [PATCH 6/7] qemu-iotests: 141: reduce likelihood of race condition on systems with fast IO

2016-04-07 Thread Sascha Silbe
Dear Max, Max Reitz writes: > On 05.04.2016 11:21, Sascha Silbe wrote: >> On systems with fast IO, qemu-io may write more than 1 MiB before >> receiving the block-job-cancel command, causing the test case to fail. >> >> 141 is inherently racy, but we can at least r

Re: [Qemu-devel] [Qemu-block] [PATCH 3/7] qemu-iotests: iotests.VM: remove qtest socket on error

2016-04-07 Thread Sascha Silbe
Dear Max, Max Reitz writes: > On 05.04.2016 11:21, Sascha Silbe wrote: [...] [_remove_if_exists()] > Not sure about the leading underscore (it appears to be the only such > function in iotests.py besides __init__()), but I guess it's a test so > it doesn't really matter an

Re: [Qemu-devel] [Qemu-block] [PATCH 6/7] qemu-iotests: 141: reduce likelihood of race condition on systems with fast IO

2016-04-08 Thread Sascha Silbe
Dear Max, Sascha Silbe writes: > @Max: From a cursory glance at the code, maybe your 1 *byte* per second > rate limit is being rounded down to 0 *blocks* per second, with 0 > meaning no limit? See e.g. mirror_set_speed(). Though I must admit I > don't understand how spee

Re: [Qemu-devel] [Qemu-block] [PATCH 6/7] qemu-iotests: 141: reduce likelihood of race condition on systems with fast IO

2016-04-08 Thread Sascha Silbe
Dear Kevin, Kevin Wolf writes: > Am 08.04.2016 um 14:01 hat Sascha Silbe geschrieben: [...] >> The best approach probably would be to fix up the rate limit code to >> delay for multiple time slices if necessary. We should get rid of the >> artificial BDRV_SECTOR_SIZE gr

Re: [Qemu-devel] [Qemu-block] [PATCH 0/7] next round of qemu-iotests fixes

2016-04-08 Thread Sascha Silbe
Dear Max, Max Reitz writes: > On 05.04.2016 11:21, Sascha Silbe wrote: >> With these fixes, qemu-iotests complete successfully on my test >> systems (s390x, x86_64) when used with QCOW2 or raw image formats. >> >> These are purely bug fixes for tests and most are tr

[Qemu-devel] [PATCH 2/4] qemu-iotests: common.rc: drop unused _do()

2016-04-12 Thread Sascha Silbe
_do() was never used and possibly creates temporary files at predictable, world-writable locations. Get rid of it. Signed-off-by: Sascha Silbe Reviewed-by: Bo Tu --- tests/qemu-iotests/common.rc | 46 1 file changed, 46 deletions(-) diff --git a

[Qemu-devel] [PATCH 1/4] qemu-iotests: drop unused _within_tolerance() filter

2016-04-12 Thread Sascha Silbe
_within_tolerance() isn't used anymore and possibly creates temporary files at predictable, world-writable locations. Get rid of it. If it's needed again in the future it can be revived easily and fixed up to use TEST_DIR and / or safely created temporary files. Signed-off-by: Sa

[Qemu-devel] [PATCH 4/4] qemu-iotests: place valgrind log file in scratch dir

2016-04-12 Thread Sascha Silbe
Do not place the valgrind log file at a predictable path in a world-writable location. Use the common scratch directory (${TEST_DIR}) instead. Signed-off-by: Sascha Silbe Reviewed-by: Bo Tu --- tests/qemu-iotests/common.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[Qemu-devel] [PATCH for-2.6 0/4] qemu-iotests: don't use /tmp

2016-04-12 Thread Sascha Silbe
separate patch. This series mostly removes dead code and addresses a potential security issue, all of that in the test suite rather than in production code. It should be applicable even during hard freeze. Sascha Silbe (4): qemu-iotests: drop unused _within_tolerance() filter qemu-iotests:

[Qemu-devel] [PATCH 3/4] qemu-iotests: tests: do not set unused tmp variable

2016-04-12 Thread Sascha Silbe
The previous commit removed the last usage of ${tmp} inside the tests themselves; the only remaining users are sourced by check. So we can now drop this variable from the tests. Signed-off-by: Sascha Silbe Reviewed-by: Bo Tu --- tests/qemu-iotests/001 | 1 - tests/qemu-iotests/002 | 1 - tests

[Qemu-devel] [PATCH] qmp-commands.hx: document minimum speed for block jobs

2016-04-12 Thread Sascha Silbe
document it. Mention that this will be fixed in the future, otherwise some users might misguidedly rely on it or clamp their configuration settings to the documented value. Signed-off-by: Sascha Silbe --- Noticed this while figuring out why qemu-iotests #141 failed on one of my systems. I for one

[Qemu-devel] [for-2.6] Re: [PATCH] qmp-commands.hx: document minimum speed for block jobs

2016-04-14 Thread Sascha Silbe
Dear developers, Sascha Silbe writes: > The current rate limit implementation for block jobs is ineffective > below a certain minimum rate. It will permit writes at least once per > time slice. The resulting minimum write speed (assuming source and > sink are fast enough in the fir

[Qemu-devel] [PATCH for-2.6?] qemu-iotests: iotests: fail hard if not run via "check"

2016-04-14 Thread Sascha Silbe
code paths if QEMU_DEFAULT_MACHINE is not set. This can lead to false negatives. Instead fail hard and tell the user we want to be run via "check". Signed-off-by: Sascha Silbe Reviewed-by: Bo Tu --- It's possible to fix iotests.py to work even outside of check, but that requires

Re: [Qemu-devel] [PATCH for-2.6 0/4] qemu-iotests: don't use /tmp

2016-04-14 Thread Sascha Silbe
Dear Max, Max Reitz writes: [...] > Thanks Sascha, I applied the series to my block tree: Thanks! I've just sent out the last patch from my local queue (fixing =/var/tmp= usage). Barring further discoveries during testing, I'm done for 2.6 now. Sascha -- Softwareentwicklung

Re: [Qemu-devel] [PATCH for-2.6?] qemu-iotests: iotests: fail hard if not run via "check"

2016-04-19 Thread Sascha Silbe
es that indicate we haven't been run via "check". They are the ones where there isn't any useful default value we could fall back, but without a full audit we can't tell what else some of the tests may expect that would normally be set up by "check" (or at least I can't). Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [PATCH for-2.6?] qemu-iotests: iotests: fail hard if not run via "check"

2016-04-19 Thread Sascha Silbe
Dear Max, Max Reitz writes: > On 14.04.2016 13:32, Sascha Silbe wrote: [tests/qemu-iotests/iotests.py] [...] >> def main(supported_fmts=[], supported_oses=['linux']): >> '''Run tests''' >> >> +if test_dir is None o

Re: [Qemu-devel] [PATCH for-2.6?] qemu-iotests: iotests: fail hard if not run via "check"

2016-04-19 Thread Sascha Silbe
y could even set an environment variable "I_AM_CHECK=yes" if that's part of the environment the tests expect). I'd be perfectly fine with defining the environment more clearly and possibly extending the implementation to allow individual test cases to be invoked di

[Qemu-devel] [PATCH v2] QMP: document minimum speed for block jobs

2016-04-19 Thread Sascha Silbe
document it. Mention that this will be fixed in the future, otherwise some users might misguidedly rely on it or clamp their configuration settings to the documented value. Signed-off-by: Sascha Silbe --- v1→v2: - Change qapi/block-core.json, too. --- qapi/block-core.json | 36

Re: [Qemu-devel] [for-2.6] Re: [PATCH] qmp-commands.hx: document minimum speed for block jobs

2016-04-19 Thread Sascha Silbe
Interesting. What exactly is the relationship between qmp-commands.hx and qapi/block-core.json? At any rate, you're right that we should update both. See v2. (And I've forgot the for-2.6 prefix for the patch itself again. Bah.) Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraß

Re: [Qemu-devel] [PATCH for-2.6?] qemu-iotests: iotests: fail hard if not run via "check"

2016-04-19 Thread Sascha Silbe
Dear Max, Max Reitz writes: > On 19.04.2016 14:22, Sascha Silbe wrote: [...] >> # We are using TEST_DIR and QEMU_DEFAULT_MACHINE as proxies to >> # indicate that we're not being run via "check". There may be >> # other things set up by &qu

[Qemu-devel] [PATCH for-2.6? v2] qemu-iotests: iotests: fail hard if not run via "check"

2016-04-19 Thread Sascha Silbe
" anyway, including setting the two environment variables we check. Whereas a regular developer just trying to invoke the tests usually won't have both of these defined in their environment so we can catch their mistake and give out useful advice. Signed-off-by: Sascha Silbe Reviewed-by: Bo

Re: [Qemu-devel] [for-2.6] Re: [PATCH] qmp-commands.hx: document minimum speed for block jobs

2016-04-19 Thread Sascha Silbe
nding review). OK, thanks for the clarification! Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [PATCH for-2.6?] qemu-iotests: iotests: fail hard if not run via "check"

2016-04-20 Thread Sascha Silbe
nvironment variables must be set and there may be other things that the tests may expect to have been set up. See what the 'check' script does if you want to invoke the tests some other way than running 'check'.", but I don't really see the additional value to the user. S

Re: [Qemu-devel] [PATCH for-2.6?] qemu-iotests: iotests: fail hard if not run via "check"

2016-04-20 Thread Sascha Silbe
Dear Kevin, Kevin Wolf writes: > At this point in the 2.6 release cycle, this series is 2.7 material > anyway. It's critical fixes only now. Fair enough. Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [QEMU RFC PATCH v3 4/6] Migration: migrate QTAILQ

2016-06-02 Thread Sascha Silbe
ameter will be unused anyway. Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

[Qemu-devel] Channel paths (was: Re: [RFC Patch 0/3] Accept passed in socket 'fd' open from outside for unix socket)

2016-06-02 Thread Sascha Silbe
that anything outside /var/lib/libvirt/qemu is not guaranteed to work due to e.g. the SELinux policy configured by libvirt... Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] Channel paths

2016-06-07 Thread Sascha Silbe
Dear Daniel, [CC += libvir-list, didn't notice before this thread is on qemu-devel only] "Daniel P. Berrange" writes: > On Thu, Jun 02, 2016 at 09:27:45PM +0200, Sascha Silbe wrote: >> Since 71408079 [qemu: Don't bother user with libvirt-internal paths], >&g

Re: [Qemu-devel] [PATCH for-2.7] wxx: Fix broken build (mkdtemp unavailable)

2016-08-29 Thread Sascha Silbe
Dear Peter, Peter Maydell writes: > On 25 August 2016 at 10:36, Peter Maydell wrote: >> On 23 August 2016 at 16:01, Sascha Silbe wrote: >>> Glad to hear. It would be possibly to support the combination of glib < >>> 2.30.0 AND windows, but only by copying

Re: [Qemu-devel] [PATCH v3 1/3] qemu-nbd: Add --fork option

2016-08-29 Thread Sascha Silbe
ons and that future versions may stop doing so (i.e. users should use either --verbose --foreground or --verbose --daemon). 3. At some point in the future (qemu 3.0?) we can stop having --verbose imply --foreground. I can give it a try if it's out of scope for your current task

Re: [Qemu-devel] [PATCH v2 1/7] docker.py: don't hang on large docker output

2016-09-06 Thread Sascha Silbe
Dear Fam, Fam Zheng writes: > On Wed, 08/24 20:30, Sascha Silbe wrote: [tests/docker/docker.py] >> @@ -25,6 +25,10 @@ from tarfile import TarFile, TarInfo >> from StringIO import StringIO >> from shutil import copy, rmtree >> >> + >> +DEVNULL = open(o

Re: [Qemu-devel] [PATCH v2 5/7] docker: make sure debootstrap is at least 1.0.67

2016-09-06 Thread Sascha Silbe
Dear Fam, Fam Zheng writes: > On Wed, 08/24 20:31, Sascha Silbe wrote: [tests/docker/dockerfiles/debian-bootstrap.pre] >> +# debootstrap < 1.0.67 generates empty sources.list, see Debian#732255 >> +MIN_DEBOOTSTRAP_VERSION=1.0.67 [...] >> if [ -z

Re: [Qemu-devel] [PATCH v2 3/7] docker: debian-bootstrap.pre: print helpful message if DEB_ARCH/DEB_TYPE unset

2016-09-06 Thread Sascha Silbe
to send output to stderr and added a new patch that fixes up the existing messages that are "fatal" (i.e. those directly prior to an exit_and_skip). Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

[Qemu-devel] [PATCH v3 1/8] docker.py: don't hang on large docker output

2016-09-06 Thread Sascha Silbe
this issue. Signed-off-by: Sascha Silbe Reviewed-by: Janosch Frank --- This fixes a hang for me when building the Ubuntu docker image (empty docker image cache). tests/docker/docker.py | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/docker/docker.py b/tests/docker

[Qemu-devel] [PATCH v3 0/8] docker tests fixes

2016-09-06 Thread Sascha Silbe
the debian-debootstrap image Sascha Silbe (8): docker.py: don't hang on large docker output docker: avoid dependency on 'realpath' package docker: debian-bootstrap.pre: print error messages to stderr docker: debian-bootstrap.pre: print helpful message if DEB_ARCH/DEB_TYPE

[Qemu-devel] [PATCH v3 7/8] docker: build debootstrap after cloning

2016-09-06 Thread Sascha Silbe
When using the git version of debootstrap (because no usable version of debootstrap was installed on the host), we need to run 'make' so that devices.tar.gz gets built. Otherwise the first debootstrap stage will fail without printing any error message. Signed-off-by: Sascha Silbe

[Qemu-devel] [PATCH v3 6/8] docker: make sure debootstrap is at least 1.0.67

2016-09-06 Thread Sascha Silbe
debootstrap prior to 1.0.67 generated an empty sources.list during foreign bootstraps (Debian#732255 [1]). Fall back to the git checkout if the installed debootstrap version is too old. [1] https://bugs.debian.org/732255 Signed-off-by: Sascha Silbe --- v2→v3: - fix unbalanced white space

[Qemu-devel] [PATCH v3 5/8] docker: print warning if EXECUTABLE is not set when building debootstrap image

2016-09-06 Thread Sascha Silbe
Building the debian-debootstrap image will usually fail if EXECUTABLE isn't set (when using the Makefile). Warn the user in this case so they know why it's failing. Signed-off-by: Sascha Silbe --- tests/docker/Makefile.include | 3 +++ 1 file changed, 3 insertions(+) diff --git a/te

[Qemu-devel] [PATCH v3 8/8] docker: silence debootstrap when --quiet is given

2016-09-06 Thread Sascha Silbe
-off-by: Sascha Silbe --- tests/docker/docker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/docker/docker.py b/tests/docker/docker.py index efb2bf4..b85c165 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -239,8 +239,9 @@ class BuildCommand

[Qemu-devel] [PATCH v3 3/8] docker: debian-bootstrap.pre: print error messages to stderr

2016-09-06 Thread Sascha Silbe
Send error messages where they belong so they're seen even if stdout is redirected to /dev/null. Signed-off-by: Sascha Silbe --- v2→v3: - new patch tests/docker/dockerfiles/debian-bootstrap.pre | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/d

[Qemu-devel] [PATCH v3 4/8] docker: debian-bootstrap.pre: print helpful message if DEB_ARCH/DEB_TYPE unset

2016-09-06 Thread Sascha Silbe
sing or erroring out because we cannot cd to the mirror URL. Signed-off-by: Sascha Silbe --- v2→v3: - send error messages to stderr tests/docker/dockerfiles/debian-bootstrap.pre | 13 + 1 file changed, 13 insertions(+) diff --git a/tests/docker/dockerfiles/debian-bootstrap

[Qemu-devel] [PATCH v3 2/8] docker: avoid dependency on 'realpath' package

2016-09-06 Thread Sascha Silbe
The 'realpath' executable is shipped in a separate package that isn't installed by default on some distros. We already use 'readlink -e' (provided by GNU coreutils) in some other part of the code, so let's settle for that instead. Signed-off-by: Sascha Silbe -

Re: [Qemu-devel] [PATCH v3 6/8] docker: make sure debootstrap is at least 1.0.67

2016-09-07 Thread Sascha Silbe
ion sort support (introduced in 1997) and neglected to update it for POSIX.1-2008 compliance [1]? Guess using "-c" and redirecting stderr to /dev/null is our only option then. Feel free to fix that up when applying. Thanks for pointing out these portability issues! Sascha [1] http://pubs.

Re: [Qemu-devel] [PATCH 10/10] qemu-iotests/118: Test media change with qdev name

2016-09-15 Thread Sascha Silbe
to other languages). Actually there is a direct equivalent of "?:" (which unfortunately isn't in C11) in Python: "or". So you can use: result = self.vm.qmp('blockdev-change-medium', id=self.device_name or 'drive0', filename=new_img, format=iotests.imgfmt) Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [PATCH 10/10] qemu-iotests/118: Test media change with qdev name

2016-09-15 Thread Sascha Silbe
Dear Eric, Sascha Silbe writes: > result = self.vm.qmp('blockdev-change-medium', > id=self.device_name or 'drive0', > filename=new_img, > format=iotests.imgfmt) Sorry, my eyes deceived me.

Re: [Qemu-devel] [PATCH 10/10] qemu-iotests/118: Test media change with qdev name

2016-09-15 Thread Sascha Silbe
27; result = self.vm.qmp('blockdev-change-medium', **qmp_args) FWIW these days I tend to use Python magics (like *args / **kwargs) only if there's a _significant_ improvement in either functionality or readability; especially for code bases that are being worked on by developers

[Qemu-devel] [PATCH] virtio-serial: virtio console emergency write support

2016-09-21 Thread Sascha Silbe
feature to existing guests. Reviewed-by: Cornelia Huck Signed-off-by: Sascha Silbe --- hw/char/virtio-serial-bus.c | 49 --- include/hw/compat.h | 6 - include/hw/virtio/virtio-serial.h | 2 ++ 3 files changed, 53 insertions(+), 4 deletion

Re: [Qemu-devel] [PULL 00/33] virtio, pc: fixes and features

2016-10-11 Thread Sascha Silbe
.c). FWIW, it's not obvious at first sight that the tests added to check-qtest-i386-y will also be included in check-qtest-x86_64-y. The line responsible for that is hiding in the midst of other assignments, without even a blank line separating it from the rest. Assigning to a common variable

Re: [Qemu-devel] [PULL 00/33] virtio, pc: fixes and features

2016-10-11 Thread Sascha Silbe
Dear Thomas, Thomas Huth writes: > On 11.10.2016 10:27, Sascha Silbe wrote: [pxe-test failing during "make check"] >> There's a race condition in the tests. Both the "i386" and the "x86_64" >> set of tests are creating and removing the same set

Re: [Qemu-devel] [PATCH v2 1/1] block: improve error handling in raw_open

2016-07-26 Thread Sascha Silbe
(os_error), (fmt), ## __VA_ARGS__) (I can prepare a proper patch if you agree with the above.) Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

[Qemu-devel] [PATCH] error: error_setg_errno(): errno may be clobbered

2016-07-26 Thread Sascha Silbe
want to make that promise. Signed-off-by: Sascha Silbe --- This came up during review of Halil's patch "block: improve error handling in raw_open" [1]. [1] mid:1469532873-78542-1-git-send-email-pa...@linux.vnet.ibm.com "[Qemu-devel] [PATCH v2 1/1] block: improve error han

Re: [Qemu-devel] [PATCH v2 1/1] block: improve error handling in raw_open

2016-07-26 Thread Sascha Silbe
gt; > Thanks, that sounds good to me. Great, sent out as a patch [1]. Sascha [1] mid:1469558699-23314-1-git-send-email-si...@linux.vnet.ibm.com "[PATCH] error: error_setg_errno(): errno may be clobbered" by Sascha Silbe , sent on 2016-07-26. -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

[Qemu-devel] [PATCH] error: error_setg_errno(): errno gets preserved

2016-07-27 Thread Sascha Silbe
. error_setg_errno() already takes care of preserving errno and some functions rely on that, so just promise that we continue to do so in the future. Signed-off-by: Sascha Silbe --- Alternative approach to "error: error_setg_errno(): errno may be clobbered" [1]. [1] mid:1469558699-23314-

Re: [Qemu-devel] [PATCH] error: error_setg_errno(): errno may be clobbered

2016-07-27 Thread Sascha Silbe
Dear Markus, Markus Armbruster writes: > Sascha Silbe writes: > >> As a general policy, we want callers to save errno >> themselves. error_setg_internal() currently goes out of its way to >> preserve errno, > > In other words, "error_setg_errno(): errno may

Re: [Qemu-devel] [PATCH] error: error_setg_errno(): errno gets preserved

2016-07-28 Thread Sascha Silbe
propagate(), error_setg_file_open(), error_set() preserve errno. Optionally also the other functions listed in include/qapi/error.h and include/qemu/error-report.h. Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

  1   2   >