diff options
author | Nikunj A Dadhania <nikunj@linux.ibm.com> | 2018-09-04 14:54:18 +0530 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-09-05 16:06:19 +1000 |
commit | a84f71793aab5d06b5798e78e1cee82cc3e4b3e2 (patch) | |
tree | 2041d6a0476488eede9d6e60ba813aac2b999961 /target/ppc/kvm_ppc.h | |
parent | b12a4efb76e81644e290d962d2eb6dbb0a5f214f (diff) | |
download | qemu-a84f71793aab5d06b5798e78e1cee82cc3e4b3e2.zip qemu-a84f71793aab5d06b5798e78e1cee82cc3e4b3e2.tar.gz qemu-a84f71793aab5d06b5798e78e1cee82cc3e4b3e2.tar.bz2 |
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>
Diffstat (limited to 'target/ppc/kvm_ppc.h')
-rw-r--r-- | target/ppc/kvm_ppc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/ppc/kvm_ppc.h b/target/ppc/kvm_ppc.h index 657582b..f696c6e 100644 --- a/target/ppc/kvm_ppc.h +++ b/target/ppc/kvm_ppc.h @@ -72,6 +72,7 @@ bool kvmppc_pvr_workaround_required(PowerPCCPU *cpu); bool kvmppc_hpt_needs_host_contiguous_pages(void); void kvm_check_mmu(PowerPCCPU *cpu, Error **errp); +void kvmppc_set_reg_ppc_online(PowerPCCPU *cpu, unsigned int online); #else @@ -187,6 +188,12 @@ static inline target_ulong kvmppc_configure_v3_mmu(PowerPCCPU *cpu, return 0; } +static inline void kvmppc_set_reg_ppc_online(PowerPCCPU *cpu, + unsigned int online) +{ + return; +} + #ifndef CONFIG_USER_ONLY static inline bool kvmppc_spapr_use_multitce(void) { |