Re: [PATCH 2/2] kvm tools: Add ability to assert/deassert IRQs using 'kvm debug'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2011-12-12 at 23:33 +0200, Pekka Enberg wrote:
> On Mon, 2011-12-12 at 11:19 +0200, Sasha Levin wrote:
> > Add options to assert and deassert IRQs using 'kvm debug'. For example, to
> > assert IRQ4 in guest 'my_instance':
> > 
> > 	vm debug -n my_instance --assert_irq 4
> > 
> > Signed-off-by: Sasha Levin <levinsasha928@xxxxxxxxx>
> 
> Why is this useful? How does it protect against random users asserting
> IRQs in the guest?

Mostly useful to debug hangs as it lets the user trigger an irq which
wasn't triggered the way it was supposed to be triggered.

We discussed doing this feature in when we were working on the virtio
code and had random hangs which we believed were caused by our code not
asserting IRQs the way it should be doing. This way we can do it
manually to debug such issues.

It doesn't prevent a user to shoot himself in the leg.

-- 

Sasha.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux