virtio-ccw: implement ->device_plugged
commitfb846a094fdee7bb6a88b48aeed0d97a8080a20d
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 21 Apr 2015 14:36:56 +0000 (21 16:36 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 8 May 2015 08:36:02 +0000 (8 10:36 +0200)
tree7d1588aa40fae001b7f3521ac0b56d368b3ea1e1
parent1fa755234e24697cc76f326782edbb09bd0a3a53
virtio-ccw: implement ->device_plugged

Let's move operations that are only valid after the backend has been
realized to a ->device_plugged callback, just as virtio-pci does.
Also reorder setting up the host feature bits to the sequence used
by virtio-pci.

While we're at it, also add a ->device_unplugged callback to stop
ioeventfd, just to be on the safe side.

Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Message-Id: <1429627016-30656-3-git-send-email-cornelia.huck@de.ibm.com>
hw/s390x/virtio-ccw.c