mbox series

[kvm-unit-tests,v1,0/2] better smp interrupt checks

Message ID 20220603154037.103733-1-imbrenda@linux.ibm.com (mailing list archive)
Headers show
Series better smp interrupt checks | expand

Message

Claudio Imbrenda June 3, 2022, 3:40 p.m. UTC
Use per-CPU flags and callbacks for Program, Extern, and I/O interrupts
instead of global variables.
    
This allows for more accurate error handling; a CPU waiting for an
interrupt will not have it "stolen" by a different CPU that was not
supposed to wait for one, and now two CPUs can wait for interrupts at
the same time.

Also fix skey.c to be compatible with the new interrupt handling.

Claudio Imbrenda (2):
  s390x: skey.c: rework the interrupt handler
  lib: s390x: better smp interrupt checks

 lib/s390x/asm/arch_def.h |  7 ++++++-
 lib/s390x/interrupt.c    | 38 ++++++++++++++++----------------------
 s390x/skey.c             | 24 +++++++++---------------
 3 files changed, 31 insertions(+), 38 deletions(-)