]> git.ipfire.org Git - thirdparty/qemu.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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 13 May 2013 16:53:19 +0000 (11:53 -0500)
commit5613bda4ac3e93b0ea7c4fd3e02ab8590ee34cca
tree638e5e6571663272671dbb83072e0b402042d10b
parentc5675a98bb24ca874c8182980847eb46f56e6a3e
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>
(cherry picked from commit 7c4869761d7f2e0a3f806a5359eea5d2473ec5d5)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/s390x/virtio-ccw.c