summaryrefslogtreecommitdiffstats
path: root/hw/core/qdev.c
diff options
context:
space:
mode:
authorPeter Xu2017-03-10 14:09:29 +0100
committerEduardo Habkost2017-04-20 20:22:41 +0200
commit4728b5741040df8bd02a5ad8fd3c2beefae3dcb1 (patch)
tree86294e46f43683248c85313a53b05e6214100eaa /hw/core/qdev.c
parenthw/core/null-machine: Print error message when using the -kernel parameter (diff)
downloadqemu-4728b5741040df8bd02a5ad8fd3c2beefae3dcb1.tar.gz
qemu-4728b5741040df8bd02a5ad8fd3c2beefae3dcb1.tar.xz
qemu-4728b5741040df8bd02a5ad8fd3c2beefae3dcb1.zip
hostmem: introduce host_memory_backend_mr_inited()
We were checking this against memory region size of host memory backend's mr field to see whether the mr has been inited. This is efficient but less elegant. Let's make a helper for it to avoid confusions, along with some notes. Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <1489151370-15453-2-git-send-email-peterx@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/core/qdev.c')
0 files changed, 0 insertions, 0 deletions