From: Laurent Vivier <Laurent.Vivier@bull.net>
To: Andi Kleen <ak@suse.de>
Cc: discuss@x86-64.org, linux-kernel <linux-kernel@vger.kernel.org>,
Avi Kivity <avi@qumranet.com>
Subject: Re: [PATCH] Implement missing x86_64 function smp_call_function_mask()
Date: Thu, 23 Aug 2007 11:34:45 +0200 [thread overview]
Message-ID: <46CD54B5.6050200@bull.net> (raw)
In-Reply-To: <200708231125.38816.ak@suse.de>
[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]
Andi Kleen wrote:
> On Thursday 23 August 2007 09:36:05 Laurent Vivier wrote:
>> This patch defines the missing function smp_call_function_mask() for x86_64,
>> this is more or less a cut&paste of i386 function.
>
> What do you need it for?
Hi Andi,
it is for KVM:
drivers/kvm/kvm_main.c:
203 void kvm_flush_remote_tlbs(struct kvm *kvm)
204 {
...
227 /*
228 * We really want smp_call_function_mask() here. But that's not
229 * available, so ipi all cpus in parallel and wait for them
230 * to complete.
231 */
232 for (cpu = first_cpu(cpus); cpu != NR_CPUS; cpu = next_cpu(cpu, cpus))
233 smp_call_function_single(cpu, ack_flush, &completed, 1, 0);
234 while (atomic_read(&completed) != needed) {
235 cpu_relax();
236 barrier();
237 }
238 }
Regards,
Laurent
--
------------- Laurent.Vivier@bull.net --------------
"Software is hard" - Donald Knuth
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-08-23 9:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-23 7:36 [PATCH] Implement missing x86_64 function smp_call_function_mask() Laurent Vivier
2007-08-23 9:25 ` Andi Kleen
2007-08-23 9:34 ` Laurent Vivier [this message]
2007-08-23 10:56 ` [discuss] " Andi Kleen
2007-08-24 11:21 ` [PATCH][RESEND] " Laurent Vivier
2007-08-24 12:33 ` Andi Kleen
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=46CD54B5.6050200@bull.net \
--to=laurent.vivier@bull.net \
--cc=ak@suse.de \
--cc=avi@qumranet.com \
--cc=discuss@x86-64.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox