]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
virtio-ccw: Check indicators location.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 23 Apr 2013 15:15:19 +0000 (17:15 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 25 Apr 2013 08:43:30 +0000 (10:43 +0200)
commit7c4869761d7f2e0a3f806a5359eea5d2473ec5d5
treeef3fb08a4797eb454ae3ac037f25592e5d3f1c2d
parent9953f8822cc316eec9962f0a2858c3439a80adec
virtio-ccw: Check indicators location.

If a guest neglected to register (secondary) indicators but still runs
with notifications enabled, we might end up writing to guest zero;
avoid this by checking for valid indicators and only writing to the
guest and generating an interrupt if indicators have been setup.

Cc: qemu-stable@nongnu.org
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/virtio-ccw.c