virtio: Start converting VirtioDevice to QOM realize
commit1d244b42d200c02ad60eb564c75d8adea9243366
authorAndreas Färber <afaerber@suse.de>
Mon, 29 Jul 2013 22:50:27 +0000 (30 00:50 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 9 Dec 2013 20:46:49 +0000 (9 21:46 +0100)
treee8c32daaaccc6a737c7b03a22e2cdb4c7f5809f0
parent7598f0f30e027146ba70517a2bda98d16bac1e24
virtio: Start converting VirtioDevice to QOM realize

Temporarily allow either VirtioDeviceClass::init or
VirtioDeviceClass::realize.

Introduce VirtioDeviceClass::unrealize for symmetry.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/virtio/virtio.c
include/hw/virtio/virtio.h