From: "Andreas Färber" <afaerber@suse.de>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, alex@alex.org.uk
Subject: Re: [Qemu-devel] [PATCH 0/8] Make icount thread-safe
Date: Tue, 08 Oct 2013 15:47:27 +0200 [thread overview]
Message-ID: <52540CEF.2030507@suse.de> (raw)
In-Reply-To: <1381222058-16701-1-git-send-email-pbonzini@redhat.com>
Am 08.10.2013 10:47, schrieb Paolo Bonzini:
> This series moves the icount state under the same seqlock as the "normal"
> vm_clock implementation.
>
> It is not yet 100% thread-safe, because the CPU list should be moved
> under RCU protection (due to the call to !all_cpu_threads_idle()
> in qemu_clock_warp). However it is a substantial step forward, the
> only uncovered case being CPU hotplug.
>
> Please review.
>
> Paolo
>
> Paolo Bonzini (8):
> timers: extract timer_mod_ns_locked and timerlist_rearm
> timers: add timer_mod_anticipate and timer_mod_anticipate_ns
> timers: use cpu_get_icount() directly
> timers: reorganize icount_warp_rt
> timers: prepare the code for future races in calling qemu_clock_warp
> timers: introduce cpu_get_clock_locked
> timers: document (future) locking rules for icount
> timers: make icount thread-safe
These patches touch cpus.c exclusively, so "timers:" is rather misleading.
As you know I have pending patches (in need of rebase due to the
performance issue you raised) moving the icount CPU fields around.
Is there anything in particular I should be aware of? Looks to me as if
this may be orthogonal?
What about the previous patch disabling icount for -smp? Does this
series supersede it or does it fix different concurrency issues?
Thanks,
Andreas
> cpus.c | 110 ++++++++++++++++++++++++++++++++++++-------------
> include/qemu/timer.h | 26 +++++++++
> qemu-timer.c | 74 +++++++++++++++++++------
> 4 files changed, 163 insertions(+), 47 deletions(-)
> create mode 100644 include/qemu/seqlock.h
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2013-10-08 13:47 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-08 8:47 [Qemu-devel] [PATCH 0/8] Make icount thread-safe Paolo Bonzini
2013-10-08 8:47 ` [Qemu-devel] [PATCH 1/8] timers: extract timer_mod_ns_locked and timerlist_rearm Paolo Bonzini
2013-10-08 9:06 ` Alex Bligh
2013-10-08 8:47 ` [Qemu-devel] [PATCH 2/8] timers: add timer_mod_anticipate and timer_mod_anticipate_ns Paolo Bonzini
2013-10-08 9:15 ` Alex Bligh
2013-10-08 9:25 ` Paolo Bonzini
2013-10-08 17:01 ` Alex Bligh
2013-10-08 8:47 ` [Qemu-devel] [PATCH 3/8] timers: use cpu_get_icount() directly Paolo Bonzini
2013-10-08 16:49 ` Alex Bligh
2013-10-08 8:47 ` [Qemu-devel] [PATCH 4/8] timers: reorganize icount_warp_rt Paolo Bonzini
2013-10-08 16:50 ` Alex Bligh
2013-10-08 8:47 ` [Qemu-devel] [PATCH 5/8] timers: prepare the code for future races in calling qemu_clock_warp Paolo Bonzini
2013-10-08 16:54 ` Alex Bligh
2013-10-08 16:56 ` Paolo Bonzini
2013-10-08 17:08 ` Alex Bligh
2013-10-08 17:10 ` Paolo Bonzini
2013-10-08 8:47 ` [Qemu-devel] [PATCH 6/8] timers: introduce cpu_get_clock_locked Paolo Bonzini
2013-10-08 16:55 ` Alex Bligh
2013-10-08 8:47 ` [Qemu-devel] [PATCH 7/8] timers: document (future) locking rules for icount Paolo Bonzini
2013-10-08 16:56 ` Alex Bligh
2013-10-08 8:47 ` [Qemu-devel] [PATCH 8/8] timers: make icount thread-safe Paolo Bonzini
2013-10-08 16:57 ` Alex Bligh
2013-10-08 13:47 ` Andreas Färber [this message]
2013-10-08 13:55 ` [Qemu-devel] [PATCH 0/8] Make " Paolo Bonzini
2013-11-05 9:27 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52540CEF.2030507@suse.de \
--to=afaerber@suse.de \
--cc=alex@alex.org.uk \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.