From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFi8L-0002ZL-FL for qemu-devel@nongnu.org; Tue, 18 Feb 2014 05:42:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFi8F-000279-AD for qemu-devel@nongnu.org; Tue, 18 Feb 2014 05:42:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:16350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFi8F-00026v-26 for qemu-devel@nongnu.org; Tue, 18 Feb 2014 05:42:31 -0500 Message-ID: <5303390B.50903@redhat.com> Date: Tue, 18 Feb 2014 11:42:19 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20140218103828.GB8114@redhat.com> In-Reply-To: <20140218103828.GB8114@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] hotplug: VM got stuck when attaching a pass-through device to the non-pass-through VM for the first time List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , "Zhanghaoyu (A)" Cc: "chenliang (T)" , Avi Kivity , "Huangweidong (C)" , KVM , Gleb Natapov , Luonengjun , "qemu-devel@nongnu.org" , "Gonglei (Arei)" , "Gaowei (UVP)" Il 18/02/2014 11:38, Michael S. Tsirkin ha scritto: > What if you detach and re-attach? > Is it fast then? > If yes this means the issue is COW breaking that occurs > with get_user_pages, not translation as such. > Try hugepages with prealloc - does it help? I agree it's either COW breaking or (similarly) locking pages that the guest hasn't touched yet. You can use prealloc or "-rt mlock=on" to avoid this problem. Paolo