[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH qom-cpu v4 14/18] dump: Abstract dump_init() wit
From: |
Luiz Capitulino |
Subject: |
Re: [Qemu-devel] [PATCH qom-cpu v4 14/18] dump: Abstract dump_init() with cpu_synchronize_all_states() |
Date: |
Tue, 11 Jun 2013 11:55:12 -0400 |
On Sun, 9 Jun 2013 18:10:43 +0200
Andreas Färber <address@hidden> wrote:
> Instead of calling cpu_synchronize_state() for each CPU, call the
> existing cpu_synchronize_all_states() helper.
>
> Signed-off-by: Andreas Färber <address@hidden>
Reviewed-by: Luiz Capitulino <address@hidden>
> ---
> dump.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/dump.c b/dump.c
> index b44dafc..44a1339 100644
> --- a/dump.c
> +++ b/dump.c
> @@ -21,6 +21,7 @@
> #include "sysemu/dump.h"
> #include "sysemu/sysemu.h"
> #include "sysemu/memory_mapping.h"
> +#include "sysemu/cpus.h"
> #include "qapi/error.h"
> #include "qmp-commands.h"
>
> @@ -732,12 +733,12 @@ static int dump_init(DumpState *s, int fd, bool paging,
> bool has_filter,
> * If the target architecture is not supported, cpu_get_dump_info() will
> * return -1.
> *
> - * if we use kvm, we should synchronize the register before we get dump
> + * If we use KVM, we should synchronize the registers before we get dump
> * info.
> */
> + cpu_synchronize_all_states();
> nr_cpus = 0;
> for (env = first_cpu; env != NULL; env = env->next_cpu) {
> - cpu_synchronize_state(env);
> nr_cpus++;
> }
>
- [Qemu-devel] [PATCH qom-cpu v4 07/18] cpu: Turn cpu_paging_enabled() into a CPUState hook, (continued)
- [Qemu-devel] [PATCH qom-cpu v4 07/18] cpu: Turn cpu_paging_enabled() into a CPUState hook, Andreas Färber, 2013/06/09
- [Qemu-devel] [PATCH qom-cpu v4 10/18] memory_mapping: Drop qemu_get_memory_mapping() stub, Andreas Färber, 2013/06/09
- [Qemu-devel] [PATCH qom-cpu v4 11/18] dump: Drop qmp_dump_guest_memory() stub and build for all targets, Andreas Färber, 2013/06/09
- [Qemu-devel] [PATCH qom-cpu v4 09/18] cpu: Turn cpu_get_memory_mapping() into a CPUState hook, Andreas Färber, 2013/06/09
- [Qemu-devel] [PATCH qom-cpu v4 14/18] dump: Abstract dump_init() with cpu_synchronize_all_states(), Andreas Färber, 2013/06/09
- Re: [Qemu-devel] [PATCH qom-cpu v4 14/18] dump: Abstract dump_init() with cpu_synchronize_all_states(),
Luiz Capitulino <=
- [Qemu-devel] [PATCH qom-cpu v4 12/18] cpu: Change default for CPUClass::get_paging_enabled(), Andreas Färber, 2013/06/09
- [Qemu-devel] [PATCH qom-cpu v4 13/18] memory_mapping: Cleanup qemu_get_guest_memory_mapping(), Andreas Färber, 2013/06/09
- [Qemu-devel] [PATCH qom-cpu v4 15/18] dump: Abstract dump_init() further with qemu_for_each_cpu(), Andreas Färber, 2013/06/09
- [Qemu-devel] [PATCH qom-cpu v4 16/18] dump: Abstract write_elf{64, 32}_notes() with qemu_for_each_cpu(), Andreas Färber, 2013/06/09