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 <levinsasha...@gmail.com>
> 
> 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to