]> git.proxmox.com Git - mirror_qemu.git/commit
pc-dimm: get_memory_region() will not fail after realize
authorDavid Hildenbrand <david@redhat.com>
Tue, 19 Jun 2018 13:41:41 +0000 (15:41 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jun 2018 17:05:34 +0000 (19:05 +0200)
commitf0b7bca64dbe8a15c1f4285c6061ce3c81a4a5c7
treecaff083cd29ac9d855fa00c5d5d8f10055860e36
parenta4659a8ef424928f654707ca637ba133cbe22396
pc-dimm: get_memory_region() will not fail after realize

Let's try to reduce error handling a bit. In the plug/unplug case, the
device was realized and therefore we can assume that getting access to
the memory region will not fail.

For get_vmstate_memory_region() this is already handled that way.
Document both cases.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180619134141.29478-13-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/pc.c
hw/mem/pc-dimm.c
hw/ppc/spapr.c
include/hw/mem/pc-dimm.h