qemu-e2k/tests/libqos
Stefan Hajnoczi c0f79698ed libqos: implement VIRTIO 1.0 FEATURES_OK step
Device initialization has an extra step in VIRTIO 1.0.  The FEATURES_OK
status bit is set to indicate that feature negotiation has completed.
The driver then reads the status register again to check that the device
agrees with the final features.

Implement this step as part of qvirtio_set_features() instead of
introducing a separate function.  This way all existing code works
without modifications.

The check in qvirtio_set_driver_ok() needs to be updated because
FEATURES_OK will be set for VIRTIO 1.0 devices.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20191023100425.12168-9-stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Thomas Huth" <thuth@redhat.com>
2019-10-25 07:46:22 -04:00
..
aarch64-xlnx-zcu102-machine.c
ahci.c
ahci.h
arm-imx25-pdk-machine.c
arm-n800-machine.c
arm-raspi2-machine.c
arm-sabrelite-machine.c
arm-smdkc210-machine.c
arm-virt-machine.c
arm-xilinx-zynq-a9-machine.c
e1000e.c
e1000e.h
fw_cfg.c
fw_cfg.h
i2c-imx.c
i2c-omap.c
i2c.c
i2c.h
libqos-pc.c
libqos-pc.h
libqos-spapr.c
libqos-spapr.h
libqos.c
libqos.h
malloc-pc.c
malloc-pc.h
malloc-spapr.c
malloc-spapr.h
malloc.c
malloc.h
pci-pc.c
pci-pc.h
pci-spapr.c
pci-spapr.h
pci.c
pci.h
ppc64_pseries-machine.c
qgraph_internal.h
qgraph.c
qgraph.h
rtas.c
rtas.h
sdhci.c
sdhci.h
tpci200.c
usb.c
usb.h
virtio-9p.c libqos: add missing virtio-9p feature negotiation 2019-10-25 07:46:22 -04:00
virtio-9p.h
virtio-balloon.c
virtio-balloon.h
virtio-blk.c
virtio-blk.h
virtio-mmio.c
virtio-mmio.h
virtio-net.c
virtio-net.h
virtio-pci.c
virtio-pci.h
virtio-rng.c
virtio-rng.h
virtio-scsi.c
virtio-scsi.h
virtio-serial.c
virtio-serial.h
virtio.c libqos: implement VIRTIO 1.0 FEATURES_OK step 2019-10-25 07:46:22 -04:00
virtio.h libqos: enforce Device Initialization order 2019-10-25 07:46:22 -04:00
x86_64_pc-machine.c