From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQVZx-0000X4-PJ for qemu-devel@nongnu.org; Mon, 09 Jan 2017 03:45:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQVZs-0005oU-TT for qemu-devel@nongnu.org; Mon, 09 Jan 2017 03:45:21 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47796) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cQVZs-0005nw-O9 for qemu-devel@nongnu.org; Mon, 09 Jan 2017 03:45:16 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BA7194E4D0 for ; Mon, 9 Jan 2017 08:45:16 +0000 (UTC) Date: Mon, 9 Jan 2017 16:45:12 +0800 From: Peter Xu Message-ID: <20170109084512.GH4135@pxdev.xzpeter.org> References: <1483675573-12636-1-git-send-email-peterx@redhat.com> <20170106132738.GD2461@work-vm> <20170109021845.GE4135@pxdev.xzpeter.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170109021845.GE4135@pxdev.xzpeter.org> Subject: Re: [Qemu-devel] [PATCH v3 0/2] VT-d migration support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert" Cc: qemu-devel@nongnu.org, Paolo Bonzini , mst@redhat.com, Juan Quintela , Jason Wang , Amit Shah On Mon, Jan 09, 2017 at 10:18:45AM +0800, Peter Xu wrote: > On Fri, Jan 06, 2017 at 01:27:38PM +0000, Dr. David Alan Gilbert wrote: > > [...] > > > > (P.S. I found that split irqchip cannot work well with migration. Is > > > this an known issue?) > > > > How did it fail? > > The keyboard hangs after migration. > > Command line for reference: > > $qemu -M q35,kernel-irqchip=split -enable-kvm \ > -netdev user,id=net0 \ > -device e1000,netdev=net0 \ > -m 512M -monitor stdio \ > $incoming /var/lib/libvirt/images/vm1.qcow2 > > Here $incoming is "" for init vm, and "-incoming tcp:0:6666" for the > dest side. Not sure whether this is reproducable issue. Looks like > some EOI ack is missing. > > Host: 4.10.0-rc1+ (I should also tried 4.6.4-301.fc24) > Qemu: latest master > > Looking into it. The problem is that we didn't setup the first 24 gsi routing entries (which is used by the userspace ioapic) in kernel after the migration. Will post a fix for it later. -- peterx