From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US10l-0005Kq-Am for qemu-devel@nongnu.org; Tue, 16 Apr 2013 04:13:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1US10k-0007zM-3I for qemu-devel@nongnu.org; Tue, 16 Apr 2013 04:13:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US10j-0007zA-Re for qemu-devel@nongnu.org; Tue, 16 Apr 2013 04:13:06 -0400 Message-ID: <516D07F8.2070603@redhat.com> Date: Tue, 16 Apr 2013 10:12:40 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1364804434-7980-1-git-send-email-qemulist@gmail.com> <1364804434-7980-5-git-send-email-qemulist@gmail.com> <20130411102032.GE9165@stefanha-thinkpad.redhat.com> <20130412084520.GE31055@stefanha-thinkpad.redhat.com> <20130416075755.GB6308@stefanha-thinkpad.redhat.com> In-Reply-To: <20130416075755.GB6308@stefanha-thinkpad.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/5] virtio-blk: release reference to RAM's memoryRegion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Peter Maydell , Anthony Liguori , Jan Kiszka , Marcelo Tosatti , liu ping fan , qemu-devel@nongnu.org, Vasilis Liaskovitis Il 16/04/2013 09:57, Stefan Hajnoczi ha scritto: > So it sounds like unplug will not block and there is no guarantee the > memory is actually unplugged when the monitor command completes. The > memory region is only released when the last reference count holder lets > go. > > This means that pending I/O to a hung NFS mount can delay the actual > unplug for unbounded time (by default the kernel NFS client keeps > retrying and does not fail the I/O request). The user will be able to > issue additional monitor commands and see that memory is not yet > unplugged? I think "info mtree" would provide information. We can add an event too, similar to the recently added DEVICE_DELETED. Paolo