]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: PPC: Book3S HV: Run virtual core whenever any vcpus in it can run
authorPaul Mackerras <paulus@samba.org>
Mon, 15 Oct 2012 01:17:42 +0000 (01:17 +0000)
committerAlexander Graf <agraf@suse.de>
Tue, 30 Oct 2012 09:54:17 +0000 (10:54 +0100)
commitc3ae8125cb28c81d6d5dbbabe4b8734a2c2a04a8
tree901616f2b871898e206181d082356fd0a54fe17c
parentad1f9650d9285cfe57701424507aa81c67c882dc
KVM: PPC: Book3S HV: Run virtual core whenever any vcpus in it can run

Currently the Book3S HV code implements a policy on multi-threaded
processors (i.e. POWER7) that requires all of the active vcpus in a
virtual core to be ready to run before we run the virtual core.
However, that causes problems on reset, because reset stops all vcpus
except vcpu 0, and can also reduce throughput since all four threads
in a virtual core have to wait whenever any one of them hits a
hypervisor page fault.

This relaxes the policy, allowing the virtual core to run as soon as
any vcpu in it is runnable.  With this, the KVMPPC_VCPU_STOPPED state
and the KVMPPC_VCPU_BUSY_IN_HOST state have been combined into a single
KVMPPC_VCPU_NOTREADY state, since we no longer need to distinguish
between them.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/kvm/book3s_hv.c