[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] fix assertion in "info memory-devices" if memde
Re: [Qemu-devel] [PATCH] fix assertion in "info memory-devices" if memdev isn't accessible
Fri, 27 Mar 2015 15:18:59 +0100
On Thu, 26 Mar 2015 21:33:19 +0100
Paolo Bonzini <address@hidden> wrote:
> On 26/03/2015 17:42, Igor Mammedov wrote:
> > + mdevid = object_property_get_str(OBJECT(dimm->hostmem), "id",
> > + &error_abort);
> > + mdevpath = g_strdup_printf("/objects/%s", mdevid);
> > + g_free(mdevid);
> > + mdev = object_resolve_path_type(mdevpath, TYPE_MEMORY_BACKEND,
> > + NULL);
> You can add a backend with id xyz, remove it, and add another with the
> same id, right?
> I think the can_be_deleted solution is better and not more invasive,
> even for 2.3.
yep, it's better.