On Fri, 31 Jan 2020 05:02:05 -0500 Janosch Frank <frankja@xxxxxxxxxxxxx> wrote: > From: Pierre Morel <pmorel@xxxxxxxxxxxxx> > > 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@xxxxxxxxxxxxx> > Signed-off-by: Janosch Frank <frankja@xxxxxxxxxxxxx>[minor fixups] I usually keep a blank between the email address and any annotations (not sure if that might trip some scripts). > --- > tools/testing/selftests/kvm/s390x/resets.c | 42 ++++++++++++++++++++++ > 1 file changed, 42 insertions(+) Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>