]> Git Repo - qemu.git/commit
s390-virtio: Accommodate guests using virtqueues too early
authorChristian Borntraeger <[email protected]>
Thu, 30 Apr 2015 15:53:13 +0000 (17:53 +0200)
committerCornelia Huck <[email protected]>
Fri, 8 May 2015 08:36:02 +0000 (10:36 +0200)
commitcb927b8aee7c3993a43cb829f7341071f873857b
treea17a5bcd3ba44e3fb68b36063433ea2d7103e14d
parentf8340b360b9bc29d48716ba8aca79df2b9544979
s390-virtio: Accommodate guests using virtqueues too early

Feature updates are not a synchronuous operation for the legacy
s390-virtio transport. This transport syncs the guest feature bits
(those from finalize) on the set_status hypercall. Before that qemu
thinks that features are zero, which means QEMU will misbehave, e.g.
it will not write the event index, even if the guest asks for it.

Let's detect the case where a kick happens before the driver is ready
and force sync the features.
With this workaround, it is now safe to switch to the common feature
bit handling code as used by all other transports.

Signed-off-by: Christian Borntraeger <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
hw/s390x/s390-virtio.c
This page took 0.021798 seconds and 4 git commands to generate.