From mboxrd@z Thu Jan 1 00:00:00 1970 From: "=?utf-8?B?WmhhbmcgSGFveXU=?=" Subject: =?utf-8?B?UmU6IFtRZW11LWRldmVsXSBXaGVyZSBpcyB0aGUgVk0gbGl2ZSBtaWdyYXRpb24gY29kZT8=?= Date: Tue, 18 Nov 2014 09:29:16 +0800 Message-ID: <201411180929134821865@sangfor.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: "=?utf-8?B?Smlkb25nIFhpYW8=?=" , "=?utf-8?B?S1ZN?=" , "=?utf-8?B?cWVtdS1kZXZlbA==?=" Return-path: Received: from smtp.sanfor.com ([58.251.49.30]:38335 "EHLO mail.sangfor.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752963AbaKRB3e (ORCPT ); Mon, 17 Nov 2014 20:29:34 -0500 Sender: kvm-owner@vger.kernel.org List-ID: > Hi, > > I saw this page: > > http://www.linux-kvm.org/page/Migration. > > It looks like Migration is a feature provided by KVM? But when I look > at the Linux kernel source code, i.e., virt/kvm, and arch/x86/kvm, I > don't see the code for this migration feature. > Most of live migration code is in qemu migration.c, savevm.c, arch_init.c, block-migration.c, and the other devices's save/load handler, .etc, only log/sync dirty page implemented in kernel. You can read the most important function migration_thread(), process_incoming_migration_co(). > So I wonder where is the source code for the live migration? Is it >purely implemented in user space? Because I see there are the > following files in the qemu source code: > > migration.c migration-exec.c migration-fd.c migration-rdma.c > migration-tcp.c migration-unix.c > > If I wish to understand the implementation of migration in Qemu/KVM, > are these above files the ones I should read? Thanks. > > -Jidong