From: Jan Kiszka <jan.kiszka@siemens.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: kvm-devel <kvm@vger.kernel.org>
Subject: Re: [PATCH] kvm: Drop obsolete cpu_get/put in make_all_cpus_request
Date: Tue, 21 Jul 2009 10:24:08 +0200 [thread overview]
Message-ID: <4A657B28.5030006@siemens.com> (raw)
In-Reply-To: <20090721000054.GB15189@amt.cnet>
Marcelo Tosatti wrote:
> Jan,
>
> This was suggested but we thought it might be safer to keep the
> get_cpu/put_cpu pair in case -rt kernels require it (which might be
> bullshit, but nobody verified).
-rt stumbles over both patterns (that's why I stumbled over it in the
first place: get_cpu disables preemption, but spin_lock is a sleeping
lock under -rt) and actually requires requests_lock to become
raw_spinlock_t. Reordering get_cpu and spin_lock would be another
option, but not really a gain for both scenarios.
So unless there is a way to make the whole critical section preemptible
(thus migration-agnostic), I think we can micro-optimize it like this.
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2009-07-21 8:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-20 9:30 [PATCH] kvm: Drop obsolete cpu_get/put in make_all_cpus_request Jan Kiszka
2009-07-20 19:46 ` Andrea Arcangeli
2009-07-21 0:00 ` Marcelo Tosatti
2009-07-21 8:24 ` Jan Kiszka [this message]
2009-07-21 17:10 ` Marcelo Tosatti
2009-07-21 23:29 ` Jan Kiszka
2009-07-21 23:37 ` Marcelo Tosatti
2009-08-03 12:18 ` Avi Kivity
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=4A657B28.5030006@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox