|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [RFC v2 4/6] hostmem: return recreated MemoryRegion if current can't be reused |
Date: | Mon, 08 Jun 2015 18:28:08 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
On 08/06/2015 18:25, Igor Mammedov wrote: > >> > Can we just outlaw this, forcing each memory backend to be >> > used only once? > to outlaw it gracefully without asserting QEMU during hotplug > user should be able to detect that it's outlawed i.e. use > memory_region_is_hva_mapped(), but yes we can. We can also add a ->detach method to HostMemoryBackend, and forbid get_memory after it has been invoked. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |