Re: [PATCH 10/13] kvm/powerpc: Add support for Book3S processors in hypervisor mode

2011-05-27 Thread Paul Mackerras
On Tue, May 17, 2011 at 12:17:50PM +0200, Alexander Graf wrote: On 16.05.2011, at 07:58, Paul Mackerras wrote: I do the check there because I was having problems where, if the HDEC goes negative before we do the partition switch, we would occasionally not get the HDEC interrupt at all

Re: [PATCH 10/13] kvm/powerpc: Add support for Book3S processors in hypervisor mode

2011-05-27 Thread Alexander Graf
On 27.05.2011, at 12:33, Paul Mackerras wrote: On Tue, May 17, 2011 at 12:17:50PM +0200, Alexander Graf wrote: On 16.05.2011, at 07:58, Paul Mackerras wrote: I do the check there because I was having problems where, if the HDEC goes negative before we do the partition switch, we would

Re: [PATCH 10/13] kvm/powerpc: Add support for Book3S processors in hypervisor mode

2011-05-27 Thread Segher Boessenkool
I do the check there because I was having problems where, if the HDEC goes negative before we do the partition switch, we would occasionally not get the HDEC interrupt at all until the next time HDEC went negative, ~ 8.4 seconds later. Yikes - so HDEC is edge and doesn't even keep the

Re: [PATCH 10/13] kvm/powerpc: Add support for Book3S processors in hypervisor mode

2011-05-27 Thread Alexander Graf
On 27.05.2011, at 22:59, Segher Boessenkool wrote: I do the check there because I was having problems where, if the HDEC goes negative before we do the partition switch, we would occasionally not get the HDEC interrupt at all until the next time HDEC went negative, ~ 8.4 seconds later.

Re: [PATCH 10/13] kvm/powerpc: Add support for Book3S processors in hypervisor mode

2011-05-27 Thread Segher Boessenkool
If HDEC expires when interrupts are off, the HDEC interrupt stays pending until interrupts get re-enabled. I'm not sure exactly what the conditions are that cause an HDEC interrupt to get lost, but they seem to involve at least a partition switch. On some CPUs, if the top bit of the