]> www.infradead.org Git - users/jedix/linux-maple.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)
commitb2ff728bae9b04b533fbc8de66f1719c4dc889de
treee8b4283332b15f8d3b4b22234d193b03b3f9ed9e
parentb25d4cb43f31e31c176eb862db2ad3072b496d44
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