From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCAjc-0008CB-HW for qemu-devel@nongnu.org; Tue, 29 Jul 2014 12:58:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCAjT-0003mj-GN for qemu-devel@nongnu.org; Tue, 29 Jul 2014 12:58:44 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:37274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCAjT-0003mc-9R for qemu-devel@nongnu.org; Tue, 29 Jul 2014 12:58:35 -0400 Received: by mail-wi0-f172.google.com with SMTP id n3so6024243wiv.11 for ; Tue, 29 Jul 2014 09:58:34 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <53D7D2B5.8060500@redhat.com> Date: Tue, 29 Jul 2014 18:58:29 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20140715210948.GA20036@amt.cnet> <53C5A4C9.80609@redhat.com> <20140716011634.GA30717@amt.cnet> <20140716115229.GA7741@amt.cnet> <53C6EE7C.60702@beyond.pl> <53C79C41.4000800@beyond.pl> <53C7B989.9000203@beyond.pl> <53C7CEE5.4080006@beyond.pl> <53C8DF68.5040705@redhat.com> In-Reply-To: <53C8DF68.5040705@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] latest rc: virtio-blk hangs forever after migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?TWFyY2luIEdpYnXFgmE=?= , Andrey Korolyov Cc: Amit Shah , Marcelo Tosatti , Fam Zheng , "qemu-devel@nongnu.org" Il 18/07/2014 10:48, Paolo Bonzini ha scritto: > > It is easy to find out if the "fix" is related to 1 or 2/3: just write > > if (cpu->kvm_vcpu_dirty) { > printf ("do_kvm_cpu_synchronize_state_always: look at 2/3\n"); > kvm_arch_get_registers(cpu); > } else { > printf ("do_kvm_cpu_synchronize_state_always: look at 1\n"); > } > > To further refine between 2 and 3, I suppose you can set a breakpoint on > cpu_synchronize_all_states and kvm_cpu_exec, and see which is called > first after cpu_synchronize_all_states_always. Marcin, have you ever gotten round to doing this? Paolo