ivshmem: more qdev conversion
commitd58d7e848ec6d5bcd19634212d58dec5f1efbdb8
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 18 Jun 2015 12:59:28 +0000 (18 14:59 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 Oct 2015 16:02:48 +0000 (24 18:02 +0200)
tree32602b83d3e992734eaf66b0d30de1ca55bc2c3b
parent49b2951f8416b356001d7b32625da0c555f0d1ce
ivshmem: more qdev conversion

Use the latest qemu device modeling API, in particular, convert to
realize to fix the error handling; right now a botched device_add
ivhsmem command kills the VM.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
hw/misc/ivshmem.c