Release 4.18 arch/powerpc/include/asm/kvm_booke.h
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2, as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Copyright SUSE Linux Products GmbH 2010
*
* Authors: Alexander Graf <agraf@suse.de>
*/
#ifndef __ASM_KVM_BOOKE_H__
#define __ASM_KVM_BOOKE_H__
#include <linux/types.h>
#include <linux/kvm_host.h>
/*
* Number of available lpids. Only the low-order 6 bits of LPID rgister are
* implemented on e500mc+ cores.
*/
#define KVMPPC_NR_LPIDS 64
#define KVMPPC_INST_EHPRIV 0x7c00021c
#define EHPRIV_OC_SHIFT 11
/* "ehpriv 1" : ehpriv with OC = 1 is used for debug emulation */
#define EHPRIV_OC_DEBUG 1
static inline void kvmppc_set_gpr(struct kvm_vcpu *vcpu, int num, ulong val)
{
vcpu->arch.regs.gpr[num] = val;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 29 | 93.55% | 1 | 50.00% |
Simon Guo | 2 | 6.45% | 1 | 50.00% |
Total | 31 | 100.00% | 2 | 100.00% |
static inline ulong kvmppc_get_gpr(struct kvm_vcpu *vcpu, int num)
{
return vcpu->arch.regs.gpr[num];
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 25 | 92.59% | 1 | 50.00% |
Simon Guo | 2 | 7.41% | 1 | 50.00% |
Total | 27 | 100.00% | 2 | 100.00% |
static inline void kvmppc_set_cr(struct kvm_vcpu *vcpu, u32 val)
{
vcpu->arch.cr = val;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 23 | 100.00% | 1 | 100.00% |
Total | 23 | 100.00% | 1 | 100.00% |
static inline u32 kvmppc_get_cr(struct kvm_vcpu *vcpu)
{
return vcpu->arch.cr;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 19 | 100.00% | 1 | 100.00% |
Total | 19 | 100.00% | 1 | 100.00% |
static inline void kvmppc_set_xer(struct kvm_vcpu *vcpu, ulong val)
{
vcpu->arch.regs.xer = val;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 22 | 88.00% | 1 | 33.33% |
Simon Guo | 2 | 8.00% | 1 | 33.33% |
Sam Bobroff | 1 | 4.00% | 1 | 33.33% |
Total | 25 | 100.00% | 3 | 100.00% |
static inline ulong kvmppc_get_xer(struct kvm_vcpu *vcpu)
{
return vcpu->arch.regs.xer;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 18 | 85.71% | 1 | 33.33% |
Simon Guo | 2 | 9.52% | 1 | 33.33% |
Sam Bobroff | 1 | 4.76% | 1 | 33.33% |
Total | 21 | 100.00% | 3 | 100.00% |
static inline bool kvmppc_need_byteswap(struct kvm_vcpu *vcpu)
{
/* XXX Would need to check TLB entry */
return false;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Cédric Le Goater | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
static inline void kvmppc_set_ctr(struct kvm_vcpu *vcpu, ulong val)
{
vcpu->arch.regs.ctr = val;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 23 | 92.00% | 1 | 50.00% |
Simon Guo | 2 | 8.00% | 1 | 50.00% |
Total | 25 | 100.00% | 2 | 100.00% |
static inline ulong kvmppc_get_ctr(struct kvm_vcpu *vcpu)
{
return vcpu->arch.regs.ctr;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 19 | 90.48% | 1 | 50.00% |
Simon Guo | 2 | 9.52% | 1 | 50.00% |
Total | 21 | 100.00% | 2 | 100.00% |
static inline void kvmppc_set_lr(struct kvm_vcpu *vcpu, ulong val)
{
vcpu->arch.regs.link = val;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 22 | 88.00% | 1 | 50.00% |
Simon Guo | 3 | 12.00% | 1 | 50.00% |
Total | 25 | 100.00% | 2 | 100.00% |
static inline ulong kvmppc_get_lr(struct kvm_vcpu *vcpu)
{
return vcpu->arch.regs.link;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 18 | 85.71% | 1 | 50.00% |
Simon Guo | 3 | 14.29% | 1 | 50.00% |
Total | 21 | 100.00% | 2 | 100.00% |
static inline void kvmppc_set_pc(struct kvm_vcpu *vcpu, ulong val)
{
vcpu->arch.regs.nip = val;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 22 | 88.00% | 1 | 50.00% |
Simon Guo | 3 | 12.00% | 1 | 50.00% |
Total | 25 | 100.00% | 2 | 100.00% |
static inline ulong kvmppc_get_pc(struct kvm_vcpu *vcpu)
{
return vcpu->arch.regs.nip;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 18 | 85.71% | 1 | 50.00% |
Simon Guo | 3 | 14.29% | 1 | 50.00% |
Total | 21 | 100.00% | 2 | 100.00% |
static inline ulong kvmppc_get_fault_dar(struct kvm_vcpu *vcpu)
{
return vcpu->arch.fault_dear;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 19 | 100.00% | 1 | 100.00% |
Total | 19 | 100.00% | 1 | 100.00% |
static inline bool kvmppc_supports_magic_page(struct kvm_vcpu *vcpu)
{
/* Magic page is only supported on e500v2 */
#ifdef CONFIG_KVM_E500V2
return true;
#else
return false;
#endif
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 26 | 100.00% | 1 | 100.00% |
Total | 26 | 100.00% | 1 | 100.00% |
#endif /* __ASM_KVM_BOOKE_H__ */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexander Graf | 319 | 84.17% | 2 | 20.00% |
Simon Guo | 24 | 6.33% | 2 | 20.00% |
Cédric Le Goater | 16 | 4.22% | 1 | 10.00% |
Bharat Bhushan | 13 | 3.43% | 2 | 20.00% |
Scott Wood | 4 | 1.06% | 1 | 10.00% |
Sam Bobroff | 2 | 0.53% | 1 | 10.00% |
Mihai Caraman | 1 | 0.26% | 1 | 10.00% |
Total | 379 | 100.00% | 10 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.