summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorChristian Borntraeger2018-01-29 12:22:45 +0100
committerChristian Borntraeger2018-02-14 09:16:42 +0100
commita9810327726b01404ecde082c075a7468c433ddf (patch)
treedd8553dc823ea01e9d7b4803933c6e1febdc15ff /README
parentLinux 4.16-rc1 (diff)
downloadkernel-qcow2-linux-a9810327726b01404ecde082c075a7468c433ddf.tar.gz
kernel-qcow2-linux-a9810327726b01404ecde082c075a7468c433ddf.tar.xz
kernel-qcow2-linux-a9810327726b01404ecde082c075a7468c433ddf.zip
KVM: s390: optimize wakeup for exitless interrupts
For interrupt injection of floating interrupts we queue the interrupt either in the GISA or in the floating interrupt list. The first CPU that looks at these data structures - either in KVM code or hardware will then deliver that interrupt. To minimize latency we also: -a: choose a VCPU to deliver that interrupt. We prefer idle CPUs -b: we wake up the host thread that runs the VCPU -c: set an I/O intervention bit for that CPU so that it exits guest context as soon as the PSW I/O mask is enabled This will make sure that this CPU will execute the interrupt delivery code of KVM very soon. We can now optimize the injection case if we have exitless interrupts. The wakeup is still necessary in case the target CPU sleeps. We can avoid the I/O intervention request bit though. Whenever this intervention request would be handled, the hardware could also directly inject the interrupt on that CPU, no need to go through the interrupt injection loop of KVM. Cc: Michael Mueller <mimu@linux.vnet.ibm.com> Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions