Re: [PATCH v2 1/3] Introduce a workqueue to deliver PIT timer interrupts.

2010-06-15 Thread Marcelo Tosatti
On Tue, Jun 15, 2010 at 08:11:45AM -0400, Chris Lalancette wrote: > On 06/14/10 - 07:19:49PM, Marcelo Tosatti wrote: > > On Mon, Jun 14, 2010 at 01:11:20PM -0400, Chris Lalancette wrote: > > > We really want to "kvm_set_irq" during the hrtimer callback, > > > but that is risky because that is durin

Re: [PATCH v2 1/3] Introduce a workqueue to deliver PIT timer interrupts.

2010-06-15 Thread Gleb Natapov
On Mon, Jun 14, 2010 at 01:11:20PM -0400, Chris Lalancette wrote: > We really want to "kvm_set_irq" during the hrtimer callback, > but that is risky because that is during interrupt context. > Instead, offload the work to a workqueue, which is a bit safer > and should provide most of the same funct

Re: [PATCH v2 1/3] Introduce a workqueue to deliver PIT timer interrupts.

2010-06-14 Thread Marcelo Tosatti
On Mon, Jun 14, 2010 at 01:11:20PM -0400, Chris Lalancette wrote: > We really want to "kvm_set_irq" during the hrtimer callback, > but that is risky because that is during interrupt context. > Instead, offload the work to a workqueue, which is a bit safer > and should provide most of the same funct

[PATCH v2 1/3] Introduce a workqueue to deliver PIT timer interrupts.

2010-06-14 Thread Chris Lalancette
We really want to "kvm_set_irq" during the hrtimer callback, but that is risky because that is during interrupt context. Instead, offload the work to a workqueue, which is a bit safer and should provide most of the same functionality. Signed-off-by: Chris Lalancette --- arch/x86/kvm/i8254.c | 1