1 | The following changes since commit 15ef89d2a1a7b93845a6b09c2ee8e1979f6eb30b: | 1 | The following changes since commit d88d5a3806d78dcfca648c62dae9d88d3e803bd2: |
---|---|---|---|
2 | 2 | ||
3 | Update version for v7.0.0-rc1 release (2022-03-22 22:58:44 +0000) | 3 | Merge remote-tracking branch 'remotes/philmd-gitlab/tags/renesas-hw-20200622' into staging (2020-06-23 13:55:52 +0100) |
4 | 4 | ||
5 | are available in the Git repository at: | 5 | are available in the Git repository at: |
6 | 6 | ||
7 | https://gitlab.com/stefanha/qemu.git tags/block-pull-request | 7 | https://github.com/XanClic/qemu.git tags/pull-block-2020-06-24 |
8 | 8 | ||
9 | for you to fetch changes up to 2539eade4f689eda7e9fe45486f18334bfbafaf0: | 9 | for you to fetch changes up to 24b861c0386a17ea31eb824310c21118fb7be883: |
10 | 10 | ||
11 | hw: Fix misleading hexadecimal format (2022-03-24 10:38:42 +0000) | 11 | iotests: don't test qcow2.py inside 291 (2020-06-24 10:00:04 +0200) |
12 | 12 | ||
13 | ---------------------------------------------------------------- | 13 | ---------------------------------------------------------------- |
14 | Pull request | 14 | Block patches: |
15 | 15 | - Two iotest fixes | |
16 | Philippe found cases where the 0x%d format string was used, leading to | ||
17 | misleading output. The patches look harmless and could save people time, so I | ||
18 | think it's worth including them in 7.0. | ||
19 | 16 | ||
20 | ---------------------------------------------------------------- | 17 | ---------------------------------------------------------------- |
18 | This is v2, where I dropped Maxim’s LUKS keyslot amendment series and my | ||
19 | iotest patches, because both caused iotest failures on some test | ||
20 | machines. | ||
21 | ---------------------------------------------------------------- | ||
22 | Philippe Mathieu-Daudé (1): | ||
23 | iotests: Fix 051 output after qdev_init_nofail() removal | ||
21 | 24 | ||
22 | Philippe Mathieu-Daudé (2): | 25 | Vladimir Sementsov-Ogievskiy (1): |
23 | block: Fix misleading hexadecimal format | 26 | iotests: don't test qcow2.py inside 291 |
24 | hw: Fix misleading hexadecimal format | ||
25 | 27 | ||
26 | block/parallels-ext.c | 2 +- | 28 | tests/qemu-iotests/051.pc.out | 4 ++-- |
27 | hw/i386/sgx.c | 2 +- | 29 | tests/qemu-iotests/291 | 4 ---- |
28 | hw/i386/trace-events | 6 +++--- | 30 | tests/qemu-iotests/291.out | 33 --------------------------------- |
29 | hw/misc/trace-events | 4 ++-- | 31 | 3 files changed, 2 insertions(+), 39 deletions(-) |
30 | hw/scsi/trace-events | 4 ++-- | ||
31 | 5 files changed, 9 insertions(+), 9 deletions(-) | ||
32 | 32 | ||
33 | -- | 33 | -- |
34 | 2.35.1 | 34 | 2.26.2 |
35 | 35 | ||
36 | diff view generated by jsdifflib |
1 | From: Philippe Mathieu-Daudé <f4bug@amsat.org> | 1 | From: Philippe Mathieu-Daudé <philmd@redhat.com> |
---|---|---|---|
2 | 2 | ||
3 | "0x%u" format is very misleading, replace by "0x%x". | 3 | Commit 96927c744 replaced qdev_init_nofail() call by |
4 | isa_realize_and_unref() which has a different error | ||
5 | message. Update the test output accordingly. | ||
4 | 6 | ||
5 | Found running: | 7 | Gitlab CI error after merging b77b5b3dc7: |
8 | https://gitlab.com/qemu-project/qemu/-/jobs/597414772#L4375 | ||
6 | 9 | ||
7 | $ git grep -E '0x%[0-9]*([lL]*|" ?PRI)[dDuU]' hw/ | 10 | Reported-by: Thomas Huth <thuth@redhat.com> |
11 | Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> | ||
12 | Message-Id: <20200616154949.6586-1-philmd@redhat.com> | ||
13 | Reviewed-by: Thomas Huth <thuth@redhat.com> | ||
14 | Signed-off-by: Max Reitz <mreitz@redhat.com> | ||
15 | --- | ||
16 | tests/qemu-iotests/051.pc.out | 4 ++-- | ||
17 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
8 | 18 | ||
9 | Inspired-by: Richard Henderson <richard.henderson@linaro.org> | 19 | diff --git a/tests/qemu-iotests/051.pc.out b/tests/qemu-iotests/051.pc.out |
10 | Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> | ||
11 | Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> | ||
12 | Message-id: 20220323114718.58714-3-philippe.mathieu.daude@gmail.com | ||
13 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | ||
14 | --- | ||
15 | hw/i386/sgx.c | 2 +- | ||
16 | hw/i386/trace-events | 6 +++--- | ||
17 | hw/misc/trace-events | 4 ++-- | ||
18 | hw/scsi/trace-events | 4 ++-- | ||
19 | 4 files changed, 8 insertions(+), 8 deletions(-) | ||
20 | |||
21 | diff --git a/hw/i386/sgx.c b/hw/i386/sgx.c | ||
22 | index XXXXXXX..XXXXXXX 100644 | 20 | index XXXXXXX..XXXXXXX 100644 |
23 | --- a/hw/i386/sgx.c | 21 | --- a/tests/qemu-iotests/051.pc.out |
24 | +++ b/hw/i386/sgx.c | 22 | +++ b/tests/qemu-iotests/051.pc.out |
25 | @@ -XXX,XX +XXX,XX @@ void pc_machine_init_sgx_epc(PCMachineState *pcms) | 23 | @@ -XXX,XX +XXX,XX @@ QEMU X.Y.Z monitor - type 'help' for more information |
26 | } | 24 | |
27 | 25 | Testing: -drive if=ide | |
28 | if ((sgx_epc->base + sgx_epc->size) < sgx_epc->base) { | 26 | QEMU X.Y.Z monitor - type 'help' for more information |
29 | - error_report("Size of all 'sgx-epc' =0x%"PRIu64" causes EPC to wrap", | 27 | -(qemu) QEMU_PROG: Initialization of device ide-hd failed: Device needs media, but drive is empty |
30 | + error_report("Size of all 'sgx-epc' =0x%"PRIx64" causes EPC to wrap", | 28 | +(qemu) QEMU_PROG: Device needs media, but drive is empty |
31 | sgx_epc->size); | 29 | |
32 | exit(EXIT_FAILURE); | 30 | Testing: -drive if=virtio |
33 | } | 31 | QEMU X.Y.Z monitor - type 'help' for more information |
34 | diff --git a/hw/i386/trace-events b/hw/i386/trace-events | 32 | @@ -XXX,XX +XXX,XX @@ QEMU X.Y.Z monitor - type 'help' for more information |
35 | index XXXXXXX..XXXXXXX 100644 | 33 | |
36 | --- a/hw/i386/trace-events | 34 | Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on |
37 | +++ b/hw/i386/trace-events | 35 | QEMU X.Y.Z monitor - type 'help' for more information |
38 | @@ -XXX,XX +XXX,XX @@ vtd_fault_disabled(void) "Fault processing disabled for context entry" | 36 | -(qemu) QEMU_PROG: Initialization of device ide-hd failed: Block node is read-only |
39 | vtd_replay_ce_valid(const char *mode, uint8_t bus, uint8_t dev, uint8_t fn, uint16_t domain, uint64_t hi, uint64_t lo) "%s: replay valid context device %02"PRIx8":%02"PRIx8".%02"PRIx8" domain 0x%"PRIx16" hi 0x%"PRIx64" lo 0x%"PRIx64 | 37 | +(qemu) QEMU_PROG: Block node is read-only |
40 | vtd_replay_ce_invalid(uint8_t bus, uint8_t dev, uint8_t fn) "replay invalid context device %02"PRIx8":%02"PRIx8".%02"PRIx8 | 38 | |
41 | vtd_page_walk_level(uint64_t addr, uint32_t level, uint64_t start, uint64_t end) "walk (base=0x%"PRIx64", level=%"PRIu32") iova range 0x%"PRIx64" - 0x%"PRIx64 | 39 | Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on |
42 | -vtd_page_walk_one(uint16_t domain, uint64_t iova, uint64_t gpa, uint64_t mask, int perm) "domain 0x%"PRIu16" iova 0x%"PRIx64" -> gpa 0x%"PRIx64" mask 0x%"PRIx64" perm %d" | 40 | QEMU X.Y.Z monitor - type 'help' for more information |
43 | +vtd_page_walk_one(uint16_t domain, uint64_t iova, uint64_t gpa, uint64_t mask, int perm) "domain 0x%"PRIx16" iova 0x%"PRIx64" -> gpa 0x%"PRIx64" mask 0x%"PRIx64" perm %d" | ||
44 | vtd_page_walk_one_skip_map(uint64_t iova, uint64_t mask, uint64_t translated) "iova 0x%"PRIx64" mask 0x%"PRIx64" translated 0x%"PRIx64 | ||
45 | vtd_page_walk_one_skip_unmap(uint64_t iova, uint64_t mask) "iova 0x%"PRIx64" mask 0x%"PRIx64 | ||
46 | vtd_page_walk_skip_read(uint64_t iova, uint64_t next) "Page walk skip iova 0x%"PRIx64" - 0x%"PRIx64" due to unable to read" | ||
47 | vtd_page_walk_skip_reserve(uint64_t iova, uint64_t next) "Page walk skip iova 0x%"PRIx64" - 0x%"PRIx64" due to rsrv set" | ||
48 | vtd_switch_address_space(uint8_t bus, uint8_t slot, uint8_t fn, bool on) "Device %02x:%02x.%x switching address space (iommu enabled=%d)" | ||
49 | vtd_as_unmap_whole(uint8_t bus, uint8_t slot, uint8_t fn, uint64_t iova, uint64_t size) "Device %02x:%02x.%x start 0x%"PRIx64" size 0x%"PRIx64 | ||
50 | -vtd_translate_pt(uint16_t sid, uint64_t addr) "source id 0x%"PRIu16", iova 0x%"PRIx64 | ||
51 | -vtd_pt_enable_fast_path(uint16_t sid, bool success) "sid 0x%"PRIu16" %d" | ||
52 | +vtd_translate_pt(uint16_t sid, uint64_t addr) "source id 0x%"PRIx16", iova 0x%"PRIx64 | ||
53 | +vtd_pt_enable_fast_path(uint16_t sid, bool success) "sid 0x%"PRIx16" %d" | ||
54 | vtd_irq_generate(uint64_t addr, uint64_t data) "addr 0x%"PRIx64" data 0x%"PRIx64 | ||
55 | vtd_reg_read(uint64_t addr, uint64_t size) "addr 0x%"PRIx64" size 0x%"PRIx64 | ||
56 | vtd_reg_write(uint64_t addr, uint64_t size, uint64_t val) "addr 0x%"PRIx64" size 0x%"PRIx64" value 0x%"PRIx64 | ||
57 | diff --git a/hw/misc/trace-events b/hw/misc/trace-events | ||
58 | index XXXXXXX..XXXXXXX 100644 | ||
59 | --- a/hw/misc/trace-events | ||
60 | +++ b/hw/misc/trace-events | ||
61 | @@ -XXX,XX +XXX,XX @@ | ||
62 | # See docs/devel/tracing.rst for syntax documentation. | ||
63 | |||
64 | # allwinner-cpucfg.c | ||
65 | -allwinner_cpucfg_cpu_reset(uint8_t cpu_id, uint32_t reset_addr) "id %u, reset_addr 0x%" PRIu32 | ||
66 | +allwinner_cpucfg_cpu_reset(uint8_t cpu_id, uint32_t reset_addr) "id %u, reset_addr 0x%" PRIx32 | ||
67 | allwinner_cpucfg_read(uint64_t offset, uint64_t data, unsigned size) "offset 0x%" PRIx64 " data 0x%" PRIx64 " size %" PRIu32 | ||
68 | allwinner_cpucfg_write(uint64_t offset, uint64_t data, unsigned size) "offset 0x%" PRIx64 " data 0x%" PRIx64 " size %" PRIu32 | ||
69 | |||
70 | @@ -XXX,XX +XXX,XX @@ imx7_gpr_write(uint64_t offset, uint64_t value) "addr 0x%08" PRIx64 "value 0x%08 | ||
71 | |||
72 | # mos6522.c | ||
73 | mos6522_set_counter(int index, unsigned int val) "T%d.counter=%d" | ||
74 | -mos6522_get_next_irq_time(uint16_t latch, int64_t d, int64_t delta) "latch=%d counter=0x%"PRId64 " delta_next=0x%"PRId64 | ||
75 | +mos6522_get_next_irq_time(uint16_t latch, int64_t d, int64_t delta) "latch=%d counter=0x%"PRIx64 " delta_next=0x%"PRIx64 | ||
76 | mos6522_set_sr_int(void) "set sr_int" | ||
77 | mos6522_write(uint64_t addr, const char *name, uint64_t val) "reg=0x%"PRIx64 " [%s] val=0x%"PRIx64 | ||
78 | mos6522_read(uint64_t addr, const char *name, unsigned val) "reg=0x%"PRIx64 " [%s] val=0x%x" | ||
79 | diff --git a/hw/scsi/trace-events b/hw/scsi/trace-events | ||
80 | index XXXXXXX..XXXXXXX 100644 | ||
81 | --- a/hw/scsi/trace-events | ||
82 | +++ b/hw/scsi/trace-events | ||
83 | @@ -XXX,XX +XXX,XX @@ lsi_bad_phase_interrupt(void) "Phase mismatch interrupt" | ||
84 | lsi_bad_selection(uint32_t id) "Selected absent target %"PRIu32 | ||
85 | lsi_do_dma_unavailable(void) "DMA no data available" | ||
86 | lsi_do_dma(uint64_t addr, int len) "DMA addr=0x%"PRIx64" len=%d" | ||
87 | -lsi_queue_command(uint32_t tag) "Queueing tag=0x%"PRId32 | ||
88 | +lsi_queue_command(uint32_t tag) "Queueing tag=0x%"PRIx32 | ||
89 | lsi_add_msg_byte_error(void) "MSG IN data too long" | ||
90 | lsi_add_msg_byte(uint8_t data) "MSG IN 0x%02x" | ||
91 | lsi_reselect(int id) "Reselected target %d" | ||
92 | @@ -XXX,XX +XXX,XX @@ lsi_do_msgout_noop(void) "MSG: No Operation" | ||
93 | lsi_do_msgout_extended(uint8_t msg, uint8_t len) "Extended message 0x%x (len %d)" | ||
94 | lsi_do_msgout_ignored(const char *msg) "%s (ignored)" | ||
95 | lsi_do_msgout_simplequeue(uint8_t select_tag) "SIMPLE queue tag=0x%x" | ||
96 | -lsi_do_msgout_abort(uint32_t tag) "MSG: ABORT TAG tag=0x%"PRId32 | ||
97 | +lsi_do_msgout_abort(uint32_t tag) "MSG: ABORT TAG tag=0x%"PRIx32 | ||
98 | lsi_do_msgout_clearqueue(uint32_t tag) "MSG: CLEAR QUEUE tag=0x%"PRIx32 | ||
99 | lsi_do_msgout_busdevicereset(uint32_t tag) "MSG: BUS DEVICE RESET tag=0x%"PRIx32 | ||
100 | lsi_do_msgout_select(int id) "Select LUN %d" | ||
101 | -- | 41 | -- |
102 | 2.35.1 | 42 | 2.26.2 |
103 | 43 | ||
104 | 44 | diff view generated by jsdifflib |
1 | From: Philippe Mathieu-Daudé <f4bug@amsat.org> | 1 | From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> |
---|---|---|---|
2 | 2 | ||
3 | "0x%u" format is very misleading, replace by "0x%x". | 3 | 820c6bee534ec3b added testing of qcow2.py into 291, and it breaks 291 |
4 | with external data file. Actually, 291 is bad place for qcow2.py | ||
5 | testing, better add a separate test. | ||
4 | 6 | ||
5 | Found running: | 7 | For now, drop qcow2.py testing from 291 to fix the regression. |
6 | 8 | ||
7 | $ git grep -E '0x%[0-9]*([lL]*|" ?PRI)[dDuU]' block/ | 9 | Fixes: 820c6bee534ec3b |
10 | Reported-by: Max Reitz <mreitz@redhat.com> | ||
11 | Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | ||
12 | Message-Id: <20200618154052.8629-1-vsementsov@virtuozzo.com> | ||
13 | Reviewed-by: Eric Blake <eblake@redhat.com> | ||
14 | Signed-off-by: Max Reitz <mreitz@redhat.com> | ||
15 | --- | ||
16 | tests/qemu-iotests/291 | 4 ---- | ||
17 | tests/qemu-iotests/291.out | 33 --------------------------------- | ||
18 | 2 files changed, 37 deletions(-) | ||
8 | 19 | ||
9 | Inspired-by: Richard Henderson <richard.henderson@linaro.org> | 20 | diff --git a/tests/qemu-iotests/291 b/tests/qemu-iotests/291 |
10 | Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> | 21 | index XXXXXXX..XXXXXXX 100755 |
11 | Reviewed-by: Hanna Reitz <hreitz@redhat.com> | 22 | --- a/tests/qemu-iotests/291 |
12 | Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> | 23 | +++ b/tests/qemu-iotests/291 |
13 | Reviewed-by: Denis V. Lunev <den@openvz.org> | 24 | @@ -XXX,XX +XXX,XX @@ $QEMU_IO -c 'w 1M 1M' -f $IMGFMT "$TEST_IMG" | _filter_qemu_io |
14 | Message-id: 20220323114718.58714-2-philippe.mathieu.daude@gmail.com | 25 | $QEMU_IMG bitmap --disable -f $IMGFMT "$TEST_IMG" b1 |
15 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | 26 | $QEMU_IMG bitmap --enable -f $IMGFMT "$TEST_IMG" b2 |
16 | --- | 27 | $QEMU_IO -c 'w 2M 1M' -f $IMGFMT "$TEST_IMG" | _filter_qemu_io |
17 | block/parallels-ext.c | 2 +- | 28 | -echo "Check resulting qcow2 header extensions:" |
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | 29 | -$PYTHON qcow2.py "$TEST_IMG" dump-header-exts |
19 | 30 | ||
20 | diff --git a/block/parallels-ext.c b/block/parallels-ext.c | 31 | echo |
32 | echo "=== Bitmap preservation not possible to non-qcow2 ===" | ||
33 | @@ -XXX,XX +XXX,XX @@ $QEMU_IMG bitmap --merge tmp -f $IMGFMT "$TEST_IMG" b0 | ||
34 | $QEMU_IMG bitmap --remove --image-opts \ | ||
35 | driver=$IMGFMT,file.driver=file,file.filename="$TEST_IMG" tmp | ||
36 | _img_info --format-specific | ||
37 | -echo "Check resulting qcow2 header extensions:" | ||
38 | -$PYTHON qcow2.py "$TEST_IMG" dump-header-exts | ||
39 | |||
40 | echo | ||
41 | echo "=== Check bitmap contents ===" | ||
42 | diff --git a/tests/qemu-iotests/291.out b/tests/qemu-iotests/291.out | ||
21 | index XXXXXXX..XXXXXXX 100644 | 43 | index XXXXXXX..XXXXXXX 100644 |
22 | --- a/block/parallels-ext.c | 44 | --- a/tests/qemu-iotests/291.out |
23 | +++ b/block/parallels-ext.c | 45 | +++ b/tests/qemu-iotests/291.out |
24 | @@ -XXX,XX +XXX,XX @@ static int parallels_parse_format_extension(BlockDriverState *bs, | 46 | @@ -XXX,XX +XXX,XX @@ wrote 1048576/1048576 bytes at offset 1048576 |
25 | break; | 47 | 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
26 | 48 | wrote 1048576/1048576 bytes at offset 2097152 | |
27 | default: | 49 | 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
28 | - error_setg(errp, "Unknown feature: 0x%" PRIu64, fh.magic); | 50 | -Check resulting qcow2 header extensions: |
29 | + error_setg(errp, "Unknown feature: 0x%" PRIx64, fh.magic); | 51 | -Header extension: |
30 | goto fail; | 52 | -magic 0xe2792aca (Backing format) |
31 | } | 53 | -length 5 |
54 | -data 'qcow2' | ||
55 | - | ||
56 | -Header extension: | ||
57 | -magic 0x6803f857 (Feature table) | ||
58 | -length 336 | ||
59 | -data <binary> | ||
60 | - | ||
61 | -Header extension: | ||
62 | -magic 0x23852875 (Bitmaps) | ||
63 | -length 24 | ||
64 | -nb_bitmaps 2 | ||
65 | -reserved32 0 | ||
66 | -bitmap_directory_size 0x40 | ||
67 | -bitmap_directory_offset 0x510000 | ||
68 | - | ||
69 | |||
70 | === Bitmap preservation not possible to non-qcow2 === | ||
71 | |||
72 | @@ -XXX,XX +XXX,XX @@ Format specific information: | ||
73 | granularity: 65536 | ||
74 | refcount bits: 16 | ||
75 | corrupt: false | ||
76 | -Check resulting qcow2 header extensions: | ||
77 | -Header extension: | ||
78 | -magic 0x6803f857 (Feature table) | ||
79 | -length 336 | ||
80 | -data <binary> | ||
81 | - | ||
82 | -Header extension: | ||
83 | -magic 0x23852875 (Bitmaps) | ||
84 | -length 24 | ||
85 | -nb_bitmaps 3 | ||
86 | -reserved32 0 | ||
87 | -bitmap_directory_size 0x60 | ||
88 | -bitmap_directory_offset 0x520000 | ||
89 | - | ||
90 | |||
91 | === Check bitmap contents === | ||
32 | 92 | ||
33 | -- | 93 | -- |
34 | 2.35.1 | 94 | 2.26.2 |
35 | 95 | ||
36 | 96 | diff view generated by jsdifflib |