Skip to contentSkip to conversation

Question about RAM migration flags

Qemu-devel Peter Lieven 4 participants 5 messages May 8, 2014 – May 10, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

while working on ram migration and reading through the code I realized that qemu does not stop loading a saved VM or rejecting an incoming migration if there is a flag in the stream that it does not understand. An unknown flag is simply ignored.

In the block migration code there is a catch at the end complaining about unknown flags, but in RAM migration there isn't.

Is this on purpose or an error?

Peter

#1 lore raw
Quoted 7 lines · Peter Lieven

Hi,

while working on ram migration and reading through the code I realized that qemu does not stop loading a saved VM or rejecting an incoming migration if there is a flag in the stream that it does not understand. An unknown flag is simply ignored.

Quoted 9 lines

In the block migration code there is a catch at the end complaining about unknown flags, but in RAM migration there isn't.

Is this on purpose or an error?

Peter

IMO, the flag in ram_load always is correct if the code of ram_save is correct. Of course, it will be much rubost to do it as block migration.

#2 lore raw
In reply to Peter Lieven
Quoted 11 lines · * Peter Lieven ([email protected]) wrote:

Hi,

while working on ram migration and reading through the code I realized that qemu does not stop loading a saved VM or rejecting an incoming migration if there is a flag in the stream that it does not understand. An unknown flag is simply ignored.

In the block migration code there is a catch at the end complaining about unknown flags, but in RAM migration there isn't.

Is this on purpose or an error?

I think it's in error; the code doesn't have much checking.

Dave
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

#3 lore raw
Quoted 12 lines

Am 09.05.2014 um 11:43 schrieb "Dr. David Alan Gilbert" <[email protected]>:

Quoted 7 lines · * Peter Lieven ([email protected]) wrote:

Hi,

while working on ram migration and reading through the code I realized that qemu does not stop loading a saved VM or rejecting an incoming migration if there is a flag in the stream that it does not understand. An unknown flag is simply ignored.

Quoted 6 lines
Quoted 4 lines

In the block migration code there is a catch at the end complaining about unknown flags, but in RAM migration there isn't.

Is this on purpose or an error?

I think it's in error; the code doesn't have much checking.

i will prepare a patch.

Peter

Quoted 4 lines

Dave
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

#4 lore raw
Quoted 10 lines · Peter Lieven
Quoted 10 lines

Am 09.05.2014 um 11:43 schrieb "Dr. David Alan Gilbert" <[email protected]>:

Quoted 7 lines · * Peter Lieven ([email protected]) wrote:

Hi,

while working on ram migration and reading through the code I realized that qemu does not stop loading a saved VM or rejecting an incoming migration if there is a flag in the stream that it does not understand. An unknown flag is simply ignored.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

In the block migration code there is a catch at the end complaining about unknown flags, but in RAM migration there isn't.

Is this on purpose or an error?

I think it's in error; the code doesn't have much checking.

i will prepare a patch.

Thanks.