* [PATCH] make migration work again
@ 2009-05-08 20:06 Glauber Costa
2009-05-10 12:51 ` Avi Kivity
0 siblings, 1 reply; 4+ messages in thread
From: Glauber Costa @ 2009-05-08 20:06 UTC (permalink / raw)
To: kvm; +Cc: avi
Due to a small messup in version checking, migration was not working.
fix it.
Signed-off-by: Glauber Costa <glommer@redhat.com>
---
migration-tcp.c | 1 +
savevm.c | 1 +
target-i386/helper.c | 1 +
target-i386/machine.c | 8 ++++----
4 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/target-i386/machine.c b/target-i386/machine.c
index 7f75d31..c1e05c5 100644
--- a/target-i386/machine.c
+++ b/target-i386/machine.c
@@ -194,11 +194,11 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id)
int32_t a20_mask;
if (version_id != 3 && version_id != 4 && version_id != 5
- && version_id != 6 && version_id != 7 && version_id != 8)
- return -EINVAL;
- /* KVM cannot accept migrations from QEMU today */
- if (version_id != 9)
+ && version_id != 6 && version_id != 7 && version_id != 8
+ /* KVM cannot accept migrations from QEMU today */
+ && version_id != 9)
return -EINVAL;
+
for(i = 0; i < CPU_NB_REGS; i++)
qemu_get_betls(f, &env->regs[i]);
qemu_get_betls(f, &env->eip);
--
1.6.2.2
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] make migration work again
2009-05-08 20:06 [PATCH] make migration work again Glauber Costa
@ 2009-05-10 12:51 ` Avi Kivity
2009-05-11 8:31 ` Avi Kivity
0 siblings, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2009-05-10 12:51 UTC (permalink / raw)
To: Glauber Costa; +Cc: kvm
Glauber Costa wrote:
> Due to a small messup in version checking, migration was not working.
> fix it.
>
> Signed-off-by: Glauber Costa <glommer@redhat.com>
> ---
> migration-tcp.c | 1 +
> savevm.c | 1 +
> target-i386/helper.c | 1 +
> target-i386/machine.c | 8 ++++----
> 4 files changed, 7 insertions(+), 4 deletions(-)
>
>
Strange diffstat.
> diff --git a/target-i386/machine.c b/target-i386/machine.c
> index 7f75d31..c1e05c5 100644
> --- a/target-i386/machine.c
> +++ b/target-i386/machine.c
> @@ -194,11 +194,11 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id)
> int32_t a20_mask;
>
> if (version_id != 3 && version_id != 4 && version_id != 5
> - && version_id != 6 && version_id != 7 && version_id != 8)
> - return -EINVAL;
> - /* KVM cannot accept migrations from QEMU today */
> - if (version_id != 9)
> + && version_id != 6 && version_id != 7 && version_id != 8
> + /* KVM cannot accept migrations from QEMU today */
> + && version_id != 9)
> return -EINVAL;
>
I think you want to remove the first line as well? Only accept
version_id == 9? And keep the comment.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] make migration work again
2009-05-10 12:51 ` Avi Kivity
@ 2009-05-11 8:31 ` Avi Kivity
0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2009-05-11 8:31 UTC (permalink / raw)
To: Glauber Costa; +Cc: kvm
Avi Kivity wrote:
> Glauber Costa wrote:
>> Due to a small messup in version checking, migration was not working.
>> fix it.
>
> I think you want to remove the first line as well? Only accept
> version_id == 9? And keep the comment.
>
Meanwhile I've reverted the offending patch, 7b2e5aba.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] make migration work again
@ 2009-05-12 14:34 Glauber Costa
0 siblings, 0 replies; 4+ messages in thread
From: Glauber Costa @ 2009-05-12 14:34 UTC (permalink / raw)
To: kvm; +Cc: avi
Due to a small messup in version checking, migration was not working.
fix it.
Signed-off-by: Glauber Costa <glommer@redhat.com>
---
target-i386/machine.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/target-i386/machine.c b/target-i386/machine.c
index 7f75d31..730f364 100644
--- a/target-i386/machine.c
+++ b/target-i386/machine.c
@@ -193,9 +193,6 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id)
uint16_t fpus, fpuc, fptag, fpregs_format;
int32_t a20_mask;
- if (version_id != 3 && version_id != 4 && version_id != 5
- && version_id != 6 && version_id != 7 && version_id != 8)
- return -EINVAL;
/* KVM cannot accept migrations from QEMU today */
if (version_id != 9)
return -EINVAL;
--
1.6.0.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-12 14:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-08 20:06 [PATCH] make migration work again Glauber Costa
2009-05-10 12:51 ` Avi Kivity
2009-05-11 8:31 ` Avi Kivity
-- strict thread matches above, loose matches on Subject: below --
2009-05-12 14:34 Glauber Costa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox