]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: KVM: testing the local IRQs resets
authorPierre Morel <pmorel@linux.ibm.com>
Fri, 31 Jan 2020 10:02:05 +0000 (05:02 -0500)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 31 Jan 2020 12:17:21 +0000 (13:17 +0100)
commit880d8d6bb4f26e55255fe5a7b07c12abc5c6cd74
treee8b4283332b15f8d3b4b22234d193b03b3f9ed9e
parent7b788d067424caa427eda70051be3f2c8fea7671
selftests: KVM: testing the local IRQs resets

Local IRQs are reset by a normal cpu reset.  The initial cpu reset and
the clear cpu reset, as superset of the normal reset, both clear the
IRQs too.

Let's inject an interrupt to a vCPU before calling a reset and see if
it is gone after the reset.

We choose to inject only an emergency interrupt at this point and can
extend the test to other types of IRQs later.

Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
[minor fixups]
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20200131100205.74720-7-frankja@linux.ibm.com
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
tools/testing/selftests/kvm/s390x/resets.c