[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [v2][PATCH 1/1] cpus: use cpu_is_stopped efficiently
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [v2][PATCH 1/1] cpus: use cpu_is_stopped efficiently |
Date: |
Fri, 02 Aug 2013 15:33:48 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 |
Am 02.08.2013 03:43, schrieb Tiejun Chen:
> It makes more sense and simple later.
>
> Signed-off-by: Tiejun Chen <address@hidden>
> ---
> v1 -> v2:
>
> To optimize performance slightly, we can reorder the two conditions to
> avoid the non-inline function call if cpu->stopped.
Patch doesn't apply to qemu.git: next_cpu and cpu_thread_is_idle() use
CPUState since a few weeks and do_vm_stop() changed from void to int.
Please remember to rebase before sending patches.
Thanks, applied to qom-cpu-next (with modified commit message):
https://github.com/afaerber/qemu-cpu/commits/qom-cpu-next
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg