vmstate: add qom interface to get id
commit107b59698f79b323c4d111c46eb9e3db6f9d258b
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 28 Aug 2019 12:00:19 +0000 (28 16:00 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 6 Jan 2020 14:41:32 +0000 (6 18:41 +0400)
tree45152d37afb55b46ad20bcdfc1ee792dae7438e5
parentb0b74e1f17508cb8cef8afd698558db1bd8999cc
vmstate: add qom interface to get id

Add an interface to get the instance id, instead of depending on
Device and qdev_get_dev_path().

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
MAINTAINERS
hw/core/Makefile.objs
hw/core/qdev.c
hw/core/vmstate-if.c [new file with mode: 0644]
include/hw/vmstate-if.h [new file with mode: 0644]
include/migration/register.h
include/migration/vmstate.h
tests/Makefile.include