Kernel KVM virtualization development
 help / color / mirror / Atom feed
* Where is the VM live migration code?
@ 2014-11-18  0:10 Jidong Xiao
  2014-11-18  1:29 ` [Qemu-devel] " Zhang Haoyu
  0 siblings, 1 reply; 3+ messages in thread
From: Jidong Xiao @ 2014-11-18  0:10 UTC (permalink / raw)
  To: KVM, qemu-devel

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.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Where is the VM live migration code?
  2014-11-18  0:10 Where is the VM live migration code? Jidong Xiao
@ 2014-11-18  1:29 ` Zhang Haoyu
  2014-11-18  1:40   ` Jidong Xiao
  0 siblings, 1 reply; 3+ messages in thread
From: Zhang Haoyu @ 2014-11-18  1:29 UTC (permalink / raw)
  To: Jidong Xiao, KVM, qemu-devel

> 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 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Where is the VM live migration code?
  2014-11-18  1:29 ` [Qemu-devel] " Zhang Haoyu
@ 2014-11-18  1:40   ` Jidong Xiao
  0 siblings, 0 replies; 3+ messages in thread
From: Jidong Xiao @ 2014-11-18  1:40 UTC (permalink / raw)
  To: Zhang Haoyu; +Cc: KVM, qemu-devel

On Mon, Nov 17, 2014 at 5:29 PM, Zhang Haoyu <zhanghy@sangfor.com> wrote:
>> 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().
>
Great, thanks Haoyu! I will try to understand these parts of code first.

-Jidong

>> 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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-18  1:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-18  0:10 Where is the VM live migration code? Jidong Xiao
2014-11-18  1:29 ` [Qemu-devel] " Zhang Haoyu
2014-11-18  1:40   ` Jidong Xiao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox