login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
30
Re: [PATCH 2/10] x86: convert to generic helpers for IPI function calls
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jens Axboe <jens.axboe@...>
To: Jeremy Fitzhardinge <jeremy@...>
Cc: <linux-kernel@...>, <peterz@...>, <npiggin@...>, <linux-arch@...>, <mingo@...>, <paulmck@...>
Subject:
Re: [PATCH 2/10] x86: convert to generic helpers for IPI function calls
Date: Wednesday, April 30, 2008 - 7:35 am
On Tue, Apr 29 2008, Jeremy Fitzhardinge wrote:
quoted text
> Jens Axboe wrote: > >-int xen_smp_call_function_mask(cpumask_t mask, void (*func)(void *), > >- void *info, int wait) > > > [...] > >- /* Send a message to other CPUs and wait for them to respond */ > >- xen_send_IPI_mask(mask, XEN_CALL_FUNCTION_VECTOR); > >- > >- /* Make sure other vcpus get a chance to run if they need to. */ > >- yield = false; > >- for_each_cpu_mask(cpu, mask) > >- if (xen_vcpu_stolen(cpu)) > >- yield = true; > >- > >- if (yield) > >- HYPERVISOR_sched_op(SCHEDOP_yield, 0); > > > > I added this to deal with the case where you're sending an IPI to > another VCPU which isn't currently running on a real cpu. In this case > you could end up spinning while the other VCPU is waiting for a real CPU > to run on. (Basically the same problem that spinlocks have in a virtual > environment.) > > However, this is at best a partial solution to the problem, and I never > benchmarked if it really makes a difference. Since any other virtual > environment would have the same problem, its best if we can solve it > generically. (Of course a synchronous single-target cross-cpu call is a > simple cross-cpu rpc, which could be implemented very efficiently in the > host/hypervisor by simply doing a vcpu context switch...)
So, what would your advice be? Seems safe enough to ignore for now and attack it if it becomes a real problem. -- Jens Axboe --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/10] Add generic helpers for arch IPI function calls...
, Jens Axboe
, (Tue Apr 29, 3:26 am)
[PATCH 1/10] Add generic helpers for arch IPI function calls
, Jens Axboe
, (Tue Apr 29, 3:26 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Jeremy Fitzhardinge
, (Wed Apr 30, 6:56 pm)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Tue Apr 29, 9:59 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Wed Apr 30, 7:29 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Jens Axboe
, (Wed Apr 30, 7:34 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Wed Apr 30, 8:17 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Jens Axboe
, (Wed Apr 30, 8:37 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Thu May 1, 10:02 pm)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Nick Piggin
, (Thu May 1, 10:12 pm)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Fri May 2, 8:29 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Keith Owens
, (Fri May 2, 8:50 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Fri May 2, 9:09 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Fri May 2, 8:42 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Peter Zijlstra
, (Fri May 2, 8:59 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Nick Piggin
, (Sat May 3, 1:49 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Sat May 3, 2:11 pm)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Nick Piggin
, (Mon May 5, 12:15 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Mon May 5, 1:43 pm)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Jens Axboe
, (Wed May 7, 4:42 pm)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Thu May 8, 12:36 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Sun May 4, 6:04 pm)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Fri May 2, 10:21 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Fri May 2, 10:30 pm)
Re: [PATCH 1/10] Add generic helpers for arch IPI function c...
, Paul E. McKenney
, (Wed Apr 30, 10:44 pm)
[PATCH 7/10] m32r: convert to generic helpers for IPI functi...
, Jens Axboe
, (Tue Apr 29, 3:26 am)
[PATCH 6/10] arm: convert to generic helpers for IPI functio...
, Jens Axboe
, (Tue Apr 29, 3:26 am)
[PATCH 5/10] alpha: convert to generic helpers for IPI funct...
, Jens Axboe
, (Tue Apr 29, 3:26 am)
[PATCH 2/10] x86: convert to generic helpers for IPI functio...
, Jens Axboe
, (Tue Apr 29, 3:26 am)
Re: [PATCH 2/10] x86: convert to generic helpers for IPI fun...
, Jeremy Fitzhardinge
, (Wed Apr 30, 5:39 pm)
Re: [PATCH 2/10] x86: convert to generic helpers for IPI fun...
, Jeremy Fitzhardinge
, (Tue Apr 29, 4:35 pm)
Re: [PATCH 2/10] x86: convert to generic helpers for IPI fun...
, Jens Axboe
, (Wed Apr 30, 7:35 am)
Re: [PATCH 2/10] x86: convert to generic helpers for IPI fun...
, Paul E. McKenney
, (Wed Apr 30, 8:20 am)
Re: [PATCH 2/10] x86: convert to generic helpers for IPI fun...
, Jens Axboe
, (Wed Apr 30, 8:31 am)
Re: [PATCH 2/10] x86: convert to generic helpers for IPI fun...
, Jeremy Fitzhardinge
, (Wed Apr 30, 10:51 am)
[PATCH 4/10] ia64: convert to generic helpers for IPI functi...
, Jens Axboe
, (Tue Apr 29, 3:26 am)
[PATCH 9/10] parisc: convert to generic helpers for IPI func...
, Jens Axboe
, (Tue Apr 29, 3:26 am)
[PATCH 3/10] powerpc: convert to generic helpers for IPI fun...
, Jens Axboe
, (Tue Apr 29, 3:26 am)
[PATCH 8/10] mips: convert to generic helpers for IPI functi...
, Jens Axboe
, (Tue Apr 29, 3:26 am)
[PATCH 10/10] sh: convert to generic helpers for IPI functio...
, Jens Axboe
, (Tue Apr 29, 3:26 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jens Axboe
Re: [BUG] New Kernel Bugs
KAMEZAWA Hiroyuki
Re: 2.6.24-rc3-mm1
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
linux-netdev
:
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Jarek Poplawski
Re: [BUG #12364] Re: HTB - very bad precision? HFSC works fine! 2.6.28
Alexey Dobriyan
Re: [GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
12 users
and
835 guests
online.
Online users
doghealthltxbqz
zeekec
ffjgkterlel
bossgiftideasy
omronhbf-306cf
xboxeddie
reggeeks1
ellenchristmas
yeastinfection7
buysellonlinef
uniquebabygift
webdesignzlqcy
Syndicate