mbox series

[0/2] KVM: arm/arm64: Fixes for scheudling htimer of emulated timers

Message ID 20200217145438.23289-1-tnowicki@marvell.com (mailing list archive)
Headers show
Series KVM: arm/arm64: Fixes for scheudling htimer of emulated timers | expand

Message

Tomasz Nowicki Feb. 17, 2020, 2:54 p.m. UTC
This small series contains two fixes which were found while testing
Marc's ARM NV patch set, where we are going to have at most 4 timers
and the two are purely emulated.

First patch cancels hrtimer when the timer should fire and there is no
change in irq line level which suppresses timer interrupt storm when
guest enables interrupts.

Second patch makes sure that hrtimer is scheduled when timer irq line
goes down and there is still some time to expire.

Tomasz Nowicki (2):
  KVM: arm/arm64: Fix spurious htimer setup for emulated timer
  KVM: arm/arm64: Fix htimer setup for emulated timer when irq goes down

 virt/kvm/arm/arch_timer.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Marc Zyngier Feb. 17, 2020, 6 p.m. UTC | #1
On 2020-02-17 14:54, Tomasz Nowicki wrote:
> This small series contains two fixes which were found while testing
> Marc's ARM NV patch set, where we are going to have at most 4 timers
> and the two are purely emulated.

What are these patches fixing? the NV series? or mainline?

Thanks,

         M.
Tomasz Nowicki Feb. 17, 2020, 6:35 p.m. UTC | #2
On 17.02.2020 19:00, Marc Zyngier wrote:
> ----------------------------------------------------------------------
> On 2020-02-17 14:54, Tomasz Nowicki wrote:
>> This small series contains two fixes which were found while testing
>> Marc's ARM NV patch set, where we are going to have at most 4 timers
>> and the two are purely emulated.
> 
> What are these patches fixing? the NV series? or mainline?
> 

Both, but found when testing NV.

Tomasz