diff options
author | Lin Ma <lma@suse.com> | 2015-03-30 16:36:29 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-04-01 10:06:38 +0200 |
commit | 36bce5ca5da7a7dbdc5001dc65b40b7439472106 (patch) | |
tree | c3e9d14330ebf092e3278460e4a51fb5442d75e2 /migration | |
parent | d6edb15576643ab348a9f73e115c2e037edf7460 (diff) | |
download | qemu-36bce5ca5da7a7dbdc5001dc65b40b7439472106.tar.gz qemu-36bce5ca5da7a7dbdc5001dc65b40b7439472106.tar.bz2 qemu-36bce5ca5da7a7dbdc5001dc65b40b7439472106.zip |
hostmem: Prevent removing an in-use memory backend
showing a memory device whose memdev is removed leads an assert:
(qemu) object_add memory-backend-ram,id=ram0,size=128M
(qemu) device_add pc-dimm,id=d0,memdev=ram0
(qemu) object_del ram0
(qemu) info memory-devices
**
ERROR:qom/object.c:1274:object_get_canonical_path_component:\
assertion failed: (obj->parent != NULL)
Aborted
The patch prevents removing an in-use mem backend and error out.
Signed-off-by: Lin Ma <lma@suse.com>
Message-Id: <1427704589-7688-3-git-send-email-lma@suse.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'migration')
0 files changed, 0 insertions, 0 deletions