qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] QMP: Really move the RESET event to qemu_system_reset()
@ 2010-03-10 14:54 Luiz Capitulino
  2010-03-10 15:24 ` Anthony Liguori
  2010-03-10 15:27 ` Anthony Liguori
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Capitulino @ 2010-03-10 14:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori


Something bad has happened in the merge of commit 0ee44250, as
the log message says it's supposed to be in qemu_system_reset()
but it is do_vm_stop().

Possibly, it was a problem with the conflict resolution with
ea375f9a (which has been merged first).

This commit moves (again) the RESET event into qemu_system_reset().

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 vl.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/vl.c b/vl.c
index d8328c7..fd89e50 100644
--- a/vl.c
+++ b/vl.c
@@ -3148,8 +3148,6 @@ static void do_vm_stop(int reason)
         vm_state_notify(0, reason);
         monitor_protocol_event(QEVENT_STOP, NULL);
     }
-
-    monitor_protocol_event(QEVENT_RESET, NULL);
 }
 
 void qemu_register_reset(QEMUResetHandler *func, void *opaque)
@@ -3182,6 +3180,7 @@ void qemu_system_reset(void)
     QTAILQ_FOREACH_SAFE(re, &reset_handlers, entry, nre) {
         re->func(re->opaque);
     }
+    monitor_protocol_event(QEVENT_RESET, NULL);
     cpu_synchronize_all_post_reset();
 }
 
-- 
1.7.0.2.182.ge007

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] QMP: Really move the RESET event to qemu_system_reset()
  2010-03-10 14:54 [Qemu-devel] [PATCH] QMP: Really move the RESET event to qemu_system_reset() Luiz Capitulino
@ 2010-03-10 15:24 ` Anthony Liguori
  2010-03-10 15:27 ` Anthony Liguori
  1 sibling, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2010-03-10 15:24 UTC (permalink / raw)
  To: Luiz Capitulino; +Cc: aliguori, qemu-devel

On 03/10/2010 08:54 AM, Luiz Capitulino wrote:
> Something bad has happened in the merge of commit 0ee44250, as
> the log message says it's supposed to be in qemu_system_reset()
> but it is do_vm_stop().
>
> Possibly, it was a problem with the conflict resolution with
> ea375f9a (which has been merged first).
>    

It's not due to conflict resolution, it's due to patch applying with 
fuzz.  I'm not sure I have a great solution to avoid this.

Regards,

Anthony Liguori

> This commit moves (again) the RESET event into qemu_system_reset().
>
> Signed-off-by: Luiz Capitulino<lcapitulino@redhat.com>
> ---
>   vl.c |    3 +--
>   1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index d8328c7..fd89e50 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -3148,8 +3148,6 @@ static void do_vm_stop(int reason)
>           vm_state_notify(0, reason);
>           monitor_protocol_event(QEVENT_STOP, NULL);
>       }
> -
> -    monitor_protocol_event(QEVENT_RESET, NULL);
>   }
>
>   void qemu_register_reset(QEMUResetHandler *func, void *opaque)
> @@ -3182,6 +3180,7 @@ void qemu_system_reset(void)
>       QTAILQ_FOREACH_SAFE(re,&reset_handlers, entry, nre) {
>           re->func(re->opaque);
>       }
> +    monitor_protocol_event(QEVENT_RESET, NULL);
>       cpu_synchronize_all_post_reset();
>   }
>
>    

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] QMP: Really move the RESET event to qemu_system_reset()
  2010-03-10 14:54 [Qemu-devel] [PATCH] QMP: Really move the RESET event to qemu_system_reset() Luiz Capitulino
  2010-03-10 15:24 ` Anthony Liguori
@ 2010-03-10 15:27 ` Anthony Liguori
  1 sibling, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2010-03-10 15:27 UTC (permalink / raw)
  To: Luiz Capitulino; +Cc: aliguori, qemu-devel

On 03/10/2010 08:54 AM, Luiz Capitulino wrote:
> Something bad has happened in the merge of commit 0ee44250, as
> the log message says it's supposed to be in qemu_system_reset()
> but it is do_vm_stop().
>
> Possibly, it was a problem with the conflict resolution with
> ea375f9a (which has been merged first).
>
> This commit moves (again) the RESET event into qemu_system_reset().
>
> Signed-off-by: Luiz Capitulino<lcapitulino@redhat.com>
>    

Applied.  Thanks.

Regards,

Anthony Liguori

> ---
>   vl.c |    3 +--
>   1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index d8328c7..fd89e50 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -3148,8 +3148,6 @@ static void do_vm_stop(int reason)
>           vm_state_notify(0, reason);
>           monitor_protocol_event(QEVENT_STOP, NULL);
>       }
> -
> -    monitor_protocol_event(QEVENT_RESET, NULL);
>   }
>
>   void qemu_register_reset(QEMUResetHandler *func, void *opaque)
> @@ -3182,6 +3180,7 @@ void qemu_system_reset(void)
>       QTAILQ_FOREACH_SAFE(re,&reset_handlers, entry, nre) {
>           re->func(re->opaque);
>       }
> +    monitor_protocol_event(QEVENT_RESET, NULL);
>       cpu_synchronize_all_post_reset();
>   }
>
>    

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-10 15:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-10 14:54 [Qemu-devel] [PATCH] QMP: Really move the RESET event to qemu_system_reset() Luiz Capitulino
2010-03-10 15:24 ` Anthony Liguori
2010-03-10 15:27 ` Anthony Liguori

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).