* [Qemu-devel] [BUG] Migration broken by "e1000: port to vmstate"
@ 2009-11-24 15:04 Pierre Riteau
2009-11-24 16:27 ` Ryan Harper
2009-11-24 16:46 ` [Qemu-devel] " Juan Quintela
0 siblings, 2 replies; 9+ messages in thread
From: Pierre Riteau @ 2009-11-24 15:04 UTC (permalink / raw)
To: Juan Quintela; +Cc: qemu-devel
e482dc3eaac43f88beea133843ae38c661262e97 breaks migration of a VM using an e1000 device (which is the default...).
Origin host is Debian Lenny 32-bits, destination host is Fedora 12 32-bit. Guest is running Debian Lenny 32-bit.
Symtoms: origin finishes migration correctly, but destination prints "load of migration failed" and the VM is stopped.
This is because the origin closed the connexion, so qemu_fill_buffer reads a buffer with len == 0, which is treated as an error later (f->has_error = 1).
Reverting e482dc3eaac43f88beea133843ae38c661262e97 fixes the problem.
--
Pierre Riteau -- http://perso.univ-rennes1.fr/pierre.riteau/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [BUG] Migration broken by "e1000: port to vmstate"
2009-11-24 15:04 [Qemu-devel] [BUG] Migration broken by "e1000: port to vmstate" Pierre Riteau
@ 2009-11-24 16:27 ` Ryan Harper
2009-11-24 17:01 ` Pierre Riteau
2009-11-24 16:46 ` [Qemu-devel] " Juan Quintela
1 sibling, 1 reply; 9+ messages in thread
From: Ryan Harper @ 2009-11-24 16:27 UTC (permalink / raw)
To: Pierre Riteau; +Cc: qemu-devel, Juan Quintela
* Pierre Riteau <Pierre.Riteau@irisa.fr> [2009-11-24 09:35]:
> e482dc3eaac43f88beea133843ae38c661262e97 breaks migration of a VM using an e1000 device (which is the default...).
> Origin host is Debian Lenny 32-bits, destination host is Fedora 12 32-bit. Guest is running Debian Lenny 32-bit.
> Symtoms: origin finishes migration correctly, but destination prints "load of migration failed" and the VM is stopped.
What's your command line?
If I add -net user , or -net user -net nic,model=e1000 migration works.
--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
ryanh@us.ibm.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Qemu-devel] Re: [BUG] Migration broken by "e1000: port to vmstate"
2009-11-24 15:04 [Qemu-devel] [BUG] Migration broken by "e1000: port to vmstate" Pierre Riteau
2009-11-24 16:27 ` Ryan Harper
@ 2009-11-24 16:46 ` Juan Quintela
2009-11-24 17:02 ` Pierre Riteau
2009-11-30 14:10 ` Jan Kiszka
1 sibling, 2 replies; 9+ messages in thread
From: Juan Quintela @ 2009-11-24 16:46 UTC (permalink / raw)
To: Pierre Riteau; +Cc: qemu-devel
Pierre Riteau <Pierre.Riteau@irisa.fr> wrote:
> e482dc3eaac43f88beea133843ae38c661262e97 breaks migration of a VM using an e1000 device (which is the default...).
> Origin host is Debian Lenny 32-bits, destination host is Fedora 12 32-bit. Guest is running Debian Lenny 32-bit.
> Symtoms: origin finishes migration correctly, but destination prints "load of migration failed" and the VM is stopped.
>
> This is because the origin closed the connexion, so qemu_fill_buffer reads a buffer with len == 0, which is treated as an error later (f->has_error = 1).
> Reverting e482dc3eaac43f88beea133843ae38c661262e97 fixes the problem.
Do you use --enable-kvm? That could explain it.
I will take at that two bugs this week. I tested everything on 64bit
hosts.
Later, Juan.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [BUG] Migration broken by "e1000: port to vmstate"
2009-11-24 16:27 ` Ryan Harper
@ 2009-11-24 17:01 ` Pierre Riteau
0 siblings, 0 replies; 9+ messages in thread
From: Pierre Riteau @ 2009-11-24 17:01 UTC (permalink / raw)
To: Ryan Harper; +Cc: qemu-devel, Juan Quintela
On 24 nov. 2009, at 17:27, Ryan Harper wrote:
> * Pierre Riteau <Pierre.Riteau@irisa.fr> [2009-11-24 09:35]:
>> e482dc3eaac43f88beea133843ae38c661262e97 breaks migration of a VM using an e1000 device (which is the default...).
>> Origin host is Debian Lenny 32-bits, destination host is Fedora 12 32-bit. Guest is running Debian Lenny 32-bit.
>> Symtoms: origin finishes migration correctly, but destination prints "load of migration failed" and the VM is stopped.
>
> What's your command line?
>
> If I add -net user , or -net user -net nic,model=e1000 migration works.
Origin node: sudo qemu -m 1024 -hda /mnt/hda.img -net nic,macaddr=DE:AD:BE:EF:69:25 -net tap,script=/home/priteau/qemu-ifup -boot c
Destination node: sudo qemu -m 1024 -hda /mnt/hda.img -net nic,macaddr=DE:AD:BE:EF:69:25 -net tap,script=/home/priteau/qemu-ifup -boot c -incoming tcp:0:4444
--
Pierre Riteau -- http://perso.univ-rennes1.fr/pierre.riteau/
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Qemu-devel] Re: [BUG] Migration broken by "e1000: port to vmstate"
2009-11-24 16:46 ` [Qemu-devel] " Juan Quintela
@ 2009-11-24 17:02 ` Pierre Riteau
2009-11-30 14:10 ` Jan Kiszka
1 sibling, 0 replies; 9+ messages in thread
From: Pierre Riteau @ 2009-11-24 17:02 UTC (permalink / raw)
To: Juan Quintela; +Cc: qemu-devel
On 24 nov. 2009, at 17:46, Juan Quintela wrote:
> Pierre Riteau <Pierre.Riteau@irisa.fr> wrote:
>> e482dc3eaac43f88beea133843ae38c661262e97 breaks migration of a VM using an e1000 device (which is the default...).
>> Origin host is Debian Lenny 32-bits, destination host is Fedora 12 32-bit. Guest is running Debian Lenny 32-bit.
>> Symtoms: origin finishes migration correctly, but destination prints "load of migration failed" and the VM is stopped.
>>
>> This is because the origin closed the connexion, so qemu_fill_buffer reads a buffer with len == 0, which is treated as an error later (f->has_error = 1).
>> Reverting e482dc3eaac43f88beea133843ae38c661262e97 fixes the problem.
>
> Do you use --enable-kvm? That could explain it.
No I don't (although the bug appears with qemu-kvm as well, but I haven't tested the revert).
--
Pierre Riteau -- http://perso.univ-rennes1.fr/pierre.riteau/
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Qemu-devel] Re: [BUG] Migration broken by "e1000: port to vmstate"
2009-11-24 16:46 ` [Qemu-devel] " Juan Quintela
2009-11-24 17:02 ` Pierre Riteau
@ 2009-11-30 14:10 ` Jan Kiszka
2009-11-30 14:14 ` Jan Kiszka
2009-11-30 14:20 ` Juan Quintela
1 sibling, 2 replies; 9+ messages in thread
From: Jan Kiszka @ 2009-11-30 14:10 UTC (permalink / raw)
To: Juan Quintela; +Cc: qemu-devel, Pierre Riteau
Juan Quintela wrote:
> Pierre Riteau <Pierre.Riteau@irisa.fr> wrote:
>> e482dc3eaac43f88beea133843ae38c661262e97 breaks migration of a VM using an e1000 device (which is the default...).
>> Origin host is Debian Lenny 32-bits, destination host is Fedora 12 32-bit. Guest is running Debian Lenny 32-bit.
>> Symtoms: origin finishes migration correctly, but destination prints "load of migration failed" and the VM is stopped.
>>
>> This is because the origin closed the connexion, so qemu_fill_buffer reads a buffer with len == 0, which is treated as an error later (f->has_error = 1).
>> Reverting e482dc3eaac43f88beea133843ae38c661262e97 fixes the problem.
>
> Do you use --enable-kvm? That could explain it.
>
Confirmed here - the hard way, ie. after debugging a while on my own
patches. My scenario is default command line + -enable-kvm, migration to
file (exec:cat), then restore from that file. Restore fails while
reading the e1000 state with EOF.
> I will take at that two bugs this week. I tested everything on 64bit
> hosts.
Any news on this?
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Qemu-devel] Re: [BUG] Migration broken by "e1000: port to vmstate"
2009-11-30 14:10 ` Jan Kiszka
@ 2009-11-30 14:14 ` Jan Kiszka
2009-11-30 14:20 ` Juan Quintela
1 sibling, 0 replies; 9+ messages in thread
From: Jan Kiszka @ 2009-11-30 14:14 UTC (permalink / raw)
To: Juan Quintela; +Cc: qemu-devel, Pierre Riteau
Jan Kiszka wrote:
> Juan Quintela wrote:
>> Pierre Riteau <Pierre.Riteau@irisa.fr> wrote:
>>> e482dc3eaac43f88beea133843ae38c661262e97 breaks migration of a VM using an e1000 device (which is the default...).
>>> Origin host is Debian Lenny 32-bits, destination host is Fedora 12 32-bit. Guest is running Debian Lenny 32-bit.
>>> Symtoms: origin finishes migration correctly, but destination prints "load of migration failed" and the VM is stopped.
>>>
>>> This is because the origin closed the connexion, so qemu_fill_buffer reads a buffer with len == 0, which is treated as an error later (f->has_error = 1).
>>> Reverting e482dc3eaac43f88beea133843ae38c661262e97 fixes the problem.
>> Do you use --enable-kvm? That could explain it.
>>
>
> Confirmed here - the hard way, ie. after debugging a while on my own
> patches. My scenario is default command line + -enable-kvm, migration to
> file (exec:cat), then restore from that file. Restore fails while
> reading the e1000 state with EOF.
Forgot to add: IIRC, the EOF first popped up in the second "mac_reg"
section, ie. the VMSTATE_UINT32_SUB_ARRAY(..., MTA). May SUB_ARRAY is
buggy. e1000 seems to be its only user so far.
>
>> I will take at that two bugs this week. I tested everything on 64bit
>> hosts.
>
> Any news on this?
>
> Jan
>
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Qemu-devel] Re: [BUG] Migration broken by "e1000: port to vmstate"
2009-11-30 14:10 ` Jan Kiszka
2009-11-30 14:14 ` Jan Kiszka
@ 2009-11-30 14:20 ` Juan Quintela
2009-12-01 13:22 ` [Qemu-devel] live migration of 64-bit kvm guest (was: [BUG] Migration broken by "e1000: port to vmstate") Jan Kiszka
1 sibling, 1 reply; 9+ messages in thread
From: Juan Quintela @ 2009-11-30 14:20 UTC (permalink / raw)
To: Jan Kiszka; +Cc: qemu-devel, Pierre Riteau
Jan Kiszka <jan.kiszka@siemens.com> wrote:
> Juan Quintela wrote:
>> Pierre Riteau <Pierre.Riteau@irisa.fr> wrote:
>>> e482dc3eaac43f88beea133843ae38c661262e97 breaks migration of a VM using an e1000 device (which is the default...).
>>> Origin host is Debian Lenny 32-bits, destination host is Fedora 12 32-bit. Guest is running Debian Lenny 32-bit.
>>> Symtoms: origin finishes migration correctly, but destination prints "load of migration failed" and the VM is stopped.
>>>
>>> This is because the origin closed the connexion, so qemu_fill_buffer reads a buffer with len == 0, which is treated as an error later (f->has_error = 1).
>>> Reverting e482dc3eaac43f88beea133843ae38c661262e97 fixes the problem.
>>
>> Do you use --enable-kvm? That could explain it.
>>
>
> Confirmed here - the hard way, ie. after debugging a while on my own
> patches. My scenario is default command line + -enable-kvm, migration to
> file (exec:cat), then restore from that file. Restore fails while
> reading the e1000 state with EOF.
>
>> I will take at that two bugs this week. I tested everything on 64bit
>> hosts.
>
> Any news on this?
nope, migration backwards took more time that I wanted.
Will take a look tomorrow.
Sorry, Juan.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Qemu-devel] live migration of 64-bit kvm guest (was: [BUG] Migration broken by "e1000: port to vmstate")
2009-11-30 14:20 ` Juan Quintela
@ 2009-12-01 13:22 ` Jan Kiszka
0 siblings, 0 replies; 9+ messages in thread
From: Jan Kiszka @ 2009-12-01 13:22 UTC (permalink / raw)
To: Juan Quintela; +Cc: qemu-devel, Pierre Riteau
Juan Quintela wrote:
> Jan Kiszka <jan.kiszka@siemens.com> wrote:
>> Juan Quintela wrote:
>>> Pierre Riteau <Pierre.Riteau@irisa.fr> wrote:
>>>> e482dc3eaac43f88beea133843ae38c661262e97 breaks migration of a VM using an e1000 device (which is the default...).
>>>> Origin host is Debian Lenny 32-bits, destination host is Fedora 12 32-bit. Guest is running Debian Lenny 32-bit.
>>>> Symtoms: origin finishes migration correctly, but destination prints "load of migration failed" and the VM is stopped.
>>>>
>>>> This is because the origin closed the connexion, so qemu_fill_buffer reads a buffer with len == 0, which is treated as an error later (f->has_error = 1).
>>>> Reverting e482dc3eaac43f88beea133843ae38c661262e97 fixes the problem.
>>> Do you use --enable-kvm? That could explain it.
>>>
>> Confirmed here - the hard way, ie. after debugging a while on my own
>> patches. My scenario is default command line + -enable-kvm, migration to
>> file (exec:cat), then restore from that file. Restore fails while
>> reading the e1000 state with EOF.
>>
>>> I will take at that two bugs this week. I tested everything on 64bit
>>> hosts.
>> Any news on this?
>
> nope, migration backwards took more time that I wanted.
>
> Will take a look tomorrow.
>
I'm currently pulling hair while trying to migrate a 64-bit x86 guest in
kvm mode (via exec+snapshot file, but without block migration and any of
my patches). The target crashes after taking over.
Are you aware of any 64-bit migration issues related to kvm (as you said
there are more bugs)? 32 bit works fine here.
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-12-01 13:22 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-24 15:04 [Qemu-devel] [BUG] Migration broken by "e1000: port to vmstate" Pierre Riteau
2009-11-24 16:27 ` Ryan Harper
2009-11-24 17:01 ` Pierre Riteau
2009-11-24 16:46 ` [Qemu-devel] " Juan Quintela
2009-11-24 17:02 ` Pierre Riteau
2009-11-30 14:10 ` Jan Kiszka
2009-11-30 14:14 ` Jan Kiszka
2009-11-30 14:20 ` Juan Quintela
2009-12-01 13:22 ` [Qemu-devel] live migration of 64-bit kvm guest (was: [BUG] Migration broken by "e1000: port to vmstate") Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).