From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: hotplug: VM got stuck when attaching a pass-through device to the non-pass-through VM for the first time Date: Tue, 18 Feb 2014 11:42:19 +0100 Message-ID: <5303390B.50903@redhat.com> References: <20140218103828.GB8114@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "qemu-devel@nongnu.org" , KVM , Gleb Natapov , Avi Kivity , Eric Blake , Luonengjun , "Huangweidong (C)" , "Gonglei (Arei)" , "Gaowei (UVP)" , "chenliang (T)" To: "Michael S. Tsirkin" , "Zhanghaoyu (A)" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:9569 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754622AbaBRKmb (ORCPT ); Tue, 18 Feb 2014 05:42:31 -0500 In-Reply-To: <20140218103828.GB8114@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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