qemu-e2k/hw/block
Philippe Mathieu-Daudé aba53a12bd hw/block/pflash_cfi01: Document use of non-CFI compliant command '0x00'
The command 0x00 is used by this model since its origin (commit
05ee37ebf6). In this commit the command is described with a
amusing '/* ??? */' comment, probably meaning 'FIXME'.

        switch (cmd) {
        case 0x00: /* ??? */
            ...

This comment survived 12 years because the 0x00 value is indeed
not specified by the CFI open standard (as of this commit).

The 'cmd' field is transfered during migration. To keep the
migration feature working with older QEMU version, we have to
take a lot of care with migrated field. We figured out it is
too late to remove a non-specified value from this model
(this would make migration review very complex). It is however
not too late to improve the documentation.

Add few comments to remember this is a special value related
to QEMU, and we won't find information about it on the CFI
spec.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190716221555.11145-3-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
2020-05-22 18:44:36 +02:00
..
dataplane xen-block: Fix double qlist remove and request leak 2020-04-07 13:51:09 +02:00
block.c
cdrom.c
ecc.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
fdc.c Drop more @errp parameters after previous commit 2020-05-15 07:08:14 +02:00
hd-geometry.c
Kconfig hw/m68k: add a dummy SWIM floppy controller 2019-10-28 19:06:51 +01:00
m25p80.c m25p80: Improve command handling for unsupported commands 2020-03-17 11:36:42 +00:00
Makefile.objs nvme: introduce PMR support from NVMe 1.4 spec 2020-04-30 17:51:07 +02:00
nand.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
nvme.c Drop more @errp parameters after previous commit 2020-05-15 07:08:14 +02:00
nvme.h nvme: introduce PMR support from NVMe 1.4 spec 2020-04-30 17:51:07 +02:00
onenand.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
pflash_cfi01.c hw/block/pflash_cfi01: Document use of non-CFI compliant command '0x00' 2020-05-22 18:44:36 +02:00
pflash_cfi02.c hw: Use QEMU_IS_ALIGNED() on parallel flash block size 2020-05-18 19:05:25 +02:00
swim.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
tc58128.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
trace-events nvme: introduce PMR support from NVMe 1.4 spec 2020-04-30 17:51:07 +02:00
vhost-user-blk.c qdev: Unrealize must not fail 2020-05-15 07:08:14 +02:00
virtio-blk.c qdev: Unrealize must not fail 2020-05-15 07:08:14 +02:00
xen_blkif.h
xen-block.c qdev: Unrealize must not fail 2020-05-15 07:08:14 +02:00