qemu-patch-raspberry4/hw/s390x
Yi Min Zhao 93d16d81c8 s390x/pci: make hot-unplug handler smoother
The current implementation of hot-unplug handler is abrupt. Any pci
operation will be just rejected if pci device is unconfigured. Thus a
pci device can not be reset or destroyed in a right, smooth and safe
way.

Improve this as follows:
- Notify the guest via a HP_EVENT_DECONFIGURE_REQUEST(0x303) event in
  the unplug handler, giving it a chance to deconfigure the device via
  sclp and allowing us to continue hot-unplug afterwards.
- Set up a timer that will generate the HP_EVENT_CONFIGURE_TO_STBRES
  (0x304) event as before if the guest did not react after an adequate
  time.

Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2016-07-11 09:48:05 +02:00
..
ccw-device.c s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00
ccw-device.h s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00
css-bridge.c s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00
css.c s390x/css: factor out some generic code from virtio_ccw_device_realize() 2016-07-11 09:48:05 +02:00
event-facility.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
ipl.c s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00
ipl.h s390x/ipl: fix reboots for migration from different bios 2016-07-11 09:48:05 +02:00
Makefile.objs s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00
s390-pci-bus.c s390x/pci: make hot-unplug handler smoother 2016-07-11 09:48:05 +02:00
s390-pci-bus.h s390x/pci: make hot-unplug handler smoother 2016-07-11 09:48:05 +02:00
s390-pci-inst.c s390x/pci: replace fid with idx in msg data of msix 2016-07-11 09:48:05 +02:00
s390-pci-inst.h s390x/pci: enable uid-checking 2016-07-11 09:48:05 +02:00
s390-skeys-kvm.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
s390-skeys.c s390: use FILE instead of QEMUFile for creating text file 2016-05-26 11:31:05 +05:30
s390-virtio-ccw.c s390x/css: Factor out virtual css bridge and bus 2016-07-11 09:48:05 +02:00
s390-virtio-hcall.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
s390-virtio.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
s390-virtio.h s390x/cpu: Cleanup init in preparation for hotplug 2016-03-10 10:37:15 +01:00
sclp.c s390x/pci: separate s390_sclp_configure function 2016-05-17 15:50:29 +02:00
sclpcpu.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
sclpquiesce.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
trace-events trace: split out trace events for hw/s390x/ directory 2016-06-20 17:22:16 +01:00
virtio-ccw.c s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00
virtio-ccw.h s390x/css: Unplug handler of virtual css bridge 2016-07-11 09:48:05 +02:00