]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc/kvm: set vcpu as online/offline
authorNikunj A Dadhania <nikunj@linux.ibm.com>
Tue, 4 Sep 2018 09:24:18 +0000 (14:54 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 5 Sep 2018 06:06:19 +0000 (16:06 +1000)
commita84f71793aab5d06b5798e78e1cee82cc3e4b3e2
tree2041d6a0476488eede9d6e60ba813aac2b999961
parentb12a4efb76e81644e290d962d2eb6dbb0a5f214f
target/ppc/kvm: set vcpu as online/offline

Set the newly added register(KVM_REG_PPC_ONLINE) to indicate if the vcpu is
online(1) or offline(0)

KVM will use this information to set the RWMR register, which controls the PURR
and SPURR accumulation.

CC: paulus@samba.org
Signed-off-by: Nikunj A Dadhania <nikunj@linux.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_cpu_core.c
hw/ppc/spapr_rtas.c
target/ppc/kvm.c
target/ppc/kvm_ppc.h