Question about RAM migration flags
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
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.
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
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
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.