[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH tip/core/rcu 02/20] x86: Use common outgoing-CPU-notification code
- To: David Vrabel <david.vrabel@xxxxxxxxxx>, paulmck@xxxxxxxxxxxxxxxxxx
- From: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
- Date: Wed, 04 Mar 2015 11:10:15 -0500
- Cc: tglx@xxxxxxxxxxxxx, laijs@xxxxxxxxxxxxxx, bobby.prani@xxxxxxxxx, peterz@xxxxxxxxxxxxx, fweisbec@xxxxxxxxx, dvhart@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx, oleg@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, rostedt@xxxxxxxxxxx, josh@xxxxxxxxxxxxxxxx, dhowells@xxxxxxxxxx, edumazet@xxxxxxxxxx, mathieu.desnoyers@xxxxxxxxxxxx, dipankar@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, akpm@xxxxxxxxxxxxxxxxxxxx, mingo@xxxxxxxxxx
- Delivery-date: Wed, 04 Mar 2015 16:12:58 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
On 03/04/2015 10:45 AM, David Vrabel wrote:
On 04/03/15 14:55, Boris Ostrovsky wrote:
In the meantime, it turned out that HVM guests are broken by this patch
(with our without changes that we've been discussing), because HVM CPUs
die with
static void xen_hvm_cpu_die(unsigned int cpu)
{
xen_cpu_die(cpu);
native_cpu_die(cpu);
}
Which means that cpu_wait_death() is called twice, and second call moves
the CPU to CPU_BROKEN.
The simple solution is to stop calling native_cpu_die() above but I'd
like to use common code in native_cpu_die(). I'll see if I can carve it
out without too much damage to x86.
If not really been following this thread but...
Would it be preferable to refactor xen_cpu_die() instead to factor out
its the cpu_wait_death() call?
That's essentially what I was going to do. Except that native_cpu_die()
returns void so I'll need some common non-void code that lives in x86.
And then we can drop xen_hvm_cpu_die() and use xen_cpu_die() for all guests.
-boris
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|