]> git.proxmox.com Git - mirror_qemu.git/commit - cpus.c
cpus: Replace open-coded CPU loop in qmp_memsave() with qemu_get_cpu()
authorAndreas Färber <afaerber@suse.de>
Fri, 15 Feb 2013 14:41:49 +0000 (15:41 +0100)
committerAndreas Färber <afaerber@suse.de>
Tue, 12 Mar 2013 09:35:54 +0000 (10:35 +0100)
commit151d1322a3a0c865089c09aeb50f18215121921a
tree6aa9898088ab6b15e235e3305d302012152f6f64
parent1c8bb3cc7b98ad07a028567b86fc6baa5c5a0b7a
cpus: Replace open-coded CPU loop in qmp_memsave() with qemu_get_cpu()

No functional change, just less usages of first_cpu and next_cpu fields.

env is passed to cpu_memory_rw_debug(), which in turn passes it to
target-specific cpu_get_phys_page_debug(). Changing both would be a
larger refactoring, so defer that by using env_ptr for now.

Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
cpus.c