xemu/pc-bios/s390-ccw
Collin L. Walling dbf2091aba s390-ccw: set cp_receive mask only when needed and consume pending service irqs
It is possible while waiting for multiple types of external
interrupts that we might have pending irqs remaining between
irq consumption and irq-type disabling. Those interrupts
could potentially propagate to the guest after IPL completes
and cause unwanted behavior.

As it is today, the SCLP will only recognize write events that
are enabled by the control program's send and receive masks. To
limit the window for, and prevent further irqs from, ASCII
console events (specifically keystrokes), we should only enable
the control program's receive mask when we need it.

While we're at it, remove assignment of the (non control program)
send and receive masks, as those are actually set by the SCLP.

Signed-off-by: Collin L. Walling <walling@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2018-02-26 07:56:55 +01:00
..
Makefile s390-ccw: set up interactive boot menu parameters 2018-02-26 07:56:55 +01:00
bootmap.c s390-ccw: read stage2 boot loader data to find menu 2018-02-26 07:56:55 +01:00
bootmap.h s390-ccw: read stage2 boot loader data to find menu 2018-02-26 07:56:55 +01:00
bswap.h pc-bios/s390-ccw: Move byteswap functions to a separate header 2017-07-14 12:29:48 +02:00
cio.h s390-ccw: Fix alignment for CCW1 2017-08-30 18:23:26 +02:00
iplb.h s390-ccw: parse and set boot menu options 2018-02-26 07:56:54 +01:00
libc.c s390-ccw: update libc 2018-02-26 07:56:54 +01:00
libc.h s390-ccw: update libc 2018-02-26 07:56:54 +01:00
main.c s390-ccw: set up interactive boot menu parameters 2018-02-26 07:56:55 +01:00
menu.c s390-ccw: set cp_receive mask only when needed and consume pending service irqs 2018-02-26 07:56:55 +01:00
netboot.mak s390: set DHCP client architecure id for netboot 2017-09-19 18:21:33 +02:00
netmain.c pc-bios/s390-ccw: Link libnet into the netboot image and do the TFTP load 2017-07-14 12:29:48 +02:00
s390-ccw.h s390-ccw: set cp_receive mask only when needed and consume pending service irqs 2018-02-26 07:56:55 +01:00
sclp.c s390-ccw: set cp_receive mask only when needed and consume pending service irqs 2018-02-26 07:56:55 +01:00
sclp.h pc-bios/s390-ccw: get LOADPARM stored in SCP Read Info 2017-05-02 15:08:54 +02:00
scsi.h pc-bios/s390-ccw: Get Block Limits VPD device data 2017-05-19 12:29:01 +02:00
start.S pc-bios/s390-ccw: zero out bss section 2017-12-14 17:56:54 +01:00
virtio-blkdev.c pc-bios/s390-ccw: Move virtio-block related functions into a separate file 2017-07-14 12:29:48 +02:00
virtio-net.c pc-bios/s390-ccw: Add virtio-net driver code 2017-07-14 12:29:48 +02:00
virtio-scsi.c pc-bios/s390-ccw: Fix problem with invalid virtio-scsi LUN when rebooting 2017-11-20 10:35:12 +01:00
virtio-scsi.h pc-bios/s390-ccw: Build a reasonable max_sectors limit 2017-05-19 12:29:01 +02:00
virtio.c s390-ccw: read user input for boot index via the SCLP console 2018-02-26 07:56:55 +01:00
virtio.h pc-bios/s390-ccw: Add virtio-net driver code 2017-07-14 12:29:48 +02:00