* [Qemu-devel] [PATCH] monitor: sync from kvm state before generating output
@ 2009-01-14 14:43 Jan Kiszka
2009-01-15 20:35 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2009-01-14 14:43 UTC (permalink / raw)
To: qemu-devel@nongnu.org
[ Also available via git://git.kiszka.org/qemu.git queue/gdb ]
Ported from the KVM tree: Synchronize the qemu cpu state with kvm's
before invoking various monitor info commands (like 'info registers').
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
monitor.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/monitor.c b/monitor.c
index 7ff9890..5a040b4 100644
--- a/monitor.c
+++ b/monitor.c
@@ -297,6 +297,8 @@ static CPUState *mon_get_cpu(void)
if (!mon_cpu) {
mon_set_cpu(0);
}
+ if (kvm_enabled())
+ kvm_get_registers(mon_cpu);
return mon_cpu;
}
@@ -323,6 +325,8 @@ static void do_info_cpus(void)
mon_get_cpu();
for(env = first_cpu; env != NULL; env = env->next_cpu) {
+ if (kvm_enabled())
+ kvm_get_registers(env);
term_printf("%c CPU #%d:",
(env == mon_cpu) ? '*' : ' ',
env->cpu_index);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] monitor: sync from kvm state before generating output
2009-01-14 14:43 [Qemu-devel] [PATCH] monitor: sync from kvm state before generating output Jan Kiszka
@ 2009-01-15 20:35 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2009-01-15 20:35 UTC (permalink / raw)
To: qemu-devel
Jan Kiszka wrote:
> [ Also available via git://git.kiszka.org/qemu.git queue/gdb ]
>
> Ported from the KVM tree: Synchronize the qemu cpu state with kvm's
> before invoking various monitor info commands (like 'info registers').
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>
This depends on your previous patch so when you resubmit the previous
one, please include this in the series and I'll apply both.
Regards,
Anthony Liguori
> ---
>
> monitor.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/monitor.c b/monitor.c
> index 7ff9890..5a040b4 100644
> --- a/monitor.c
> +++ b/monitor.c
> @@ -297,6 +297,8 @@ static CPUState *mon_get_cpu(void)
> if (!mon_cpu) {
> mon_set_cpu(0);
> }
> + if (kvm_enabled())
> + kvm_get_registers(mon_cpu);
> return mon_cpu;
> }
>
> @@ -323,6 +325,8 @@ static void do_info_cpus(void)
> mon_get_cpu();
>
> for(env = first_cpu; env != NULL; env = env->next_cpu) {
> + if (kvm_enabled())
> + kvm_get_registers(env);
> term_printf("%c CPU #%d:",
> (env == mon_cpu) ? '*' : ' ',
> env->cpu_index);
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-15 20:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-14 14:43 [Qemu-devel] [PATCH] monitor: sync from kvm state before generating output Jan Kiszka
2009-01-15 20:35 ` 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).