summaryrefslogtreecommitdiffstats
path: root/arch/c6x
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2015-03-28 04:21:08 +0100
committerAlexander Graf <agraf@suse.de>2015-04-21 15:21:33 +0200
commitfd6d53b12410b4b73e3996629350dee3f4a7994f (patch)
tree30cfe656f5eda6adf02fa36d9bc65fca7ef4a4d0 /arch/c6x
parentKVM: PPC: Book3S HV: Don't wake thread with no vcpu on guest IPI (diff)
downloadlinux-fd6d53b12410b4b73e3996629350dee3f4a7994f.tar.xz
linux-fd6d53b12410b4b73e3996629350dee3f4a7994f.zip
KVM: PPC: Book3S HV: Use decrementer to wake napping threads
This arranges for threads that are napping due to their vcpu having ceded or due to not having a vcpu to wake up at the end of the guest's timeslice without having to be poked with an IPI. We do that by arranging for the decrementer to contain a value no greater than the number of timebase ticks remaining until the end of the timeslice. In the case of a thread with no vcpu, this number is in the hypervisor decrementer already. In the case of a ceded vcpu, we use the smaller of the HDEC value and the DEC value. Using the DEC like this when ceded means we need to save and restore the guest decrementer value around the nap. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/c6x')
0 files changed, 0 insertions, 0 deletions