[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] fix assertion in "info memory-devices" if memde
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] fix assertion in "info memory-devices" if memdev isn't accessible |
Date: |
Thu, 26 Mar 2015 21:33:19 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
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.
Paolo