Patchwork [2/3] qemu_system_reset: we need to call it before loadvm/migration

login
register
mail settings
Submitter Juan Quintela
Date Nov. 11, 2009, 11:39 p.m.
Message ID <4b1f6b36555957adf6e2572ff171f9dc6bc8226f.1257982286.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/38195/
State New
Headers show

Comments

Juan Quintela - Nov. 11, 2009, 11:39 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 vl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Glauber Costa - Nov. 12, 2009, 10:30 a.m.
On Thu, Nov 12, 2009 at 12:39:13AM +0100, Juan Quintela wrote:
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  vl.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/vl.c b/vl.c
> index bf91ee1..fff8e8d 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -4044,7 +4044,6 @@ static void main_loop(void)
>      qemu_system_ready = 1;
>      qemu_cond_broadcast(&qemu_system_cond);
>  #endif
> -    qemu_system_reset();
> 
>      for (;;) {
>          do {
> @@ -5835,6 +5834,7 @@ int main(int argc, char **argv, char **envp)
> 
>      rom_load_all();
> 
> +    qemu_system_reset();
>      if (loadvm) {
>          if (load_vmstate(cur_mon, loadvm) < 0) {
>              autostart = 0;
> -- 
> 1.6.2.5
that seems fine.

Patch

diff --git a/vl.c b/vl.c
index bf91ee1..fff8e8d 100644
--- a/vl.c
+++ b/vl.c
@@ -4044,7 +4044,6 @@  static void main_loop(void)
     qemu_system_ready = 1;
     qemu_cond_broadcast(&qemu_system_cond);
 #endif
-    qemu_system_reset();

     for (;;) {
         do {
@@ -5835,6 +5834,7 @@  int main(int argc, char **argv, char **envp)

     rom_load_all();

+    qemu_system_reset();
     if (loadvm) {
         if (load_vmstate(cur_mon, loadvm) < 0) {
             autostart = 0;