Release 4.10 arch/x86/include/asm/kvm_para.h
#ifndef _ASM_X86_KVM_PARA_H
#define _ASM_X86_KVM_PARA_H
#include <asm/processor.h>
#include <asm/alternative.h>
#include <uapi/asm/kvm_para.h>
extern void kvmclock_init(void);
extern int kvm_register_clock(char *txt);
#ifdef CONFIG_KVM_GUEST
bool kvm_check_and_clear_guest_paused(void);
#else
static inline bool kvm_check_and_clear_guest_paused(void)
{
return false;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
eric b munson | eric b munson | 12 | 100.00% | 1 | 100.00% |
| Total | 12 | 100.00% | 1 | 100.00% |
#endif /* CONFIG_KVM_GUEST */
#define KVM_HYPERCALL \
ALTERNATIVE(".byte 0x0f,0x01,0xc1", ".byte 0x0f,0x01,0xd9", X86_FEATURE_VMMCALL)
/* For KVM hypercalls, a three-byte sequence of either the vmcall or the vmmcall
* instruction. The hypervisor may replace it with something else but only the
* instructions are guaranteed to be supported.
*
* Up to four arguments may be passed in rbx, rcx, rdx, and rsi respectively.
* The hypercall number should be placed in rax and the return value will be
* placed in rax. No other registers will be clobbered unless explicitly
* noted by the particular hypercall.
*/
static inline long kvm_hypercall0(unsigned int nr)
{
long ret;
asm volatile(KVM_HYPERCALL
: "=a"(ret)
: "a"(nr)
: "memory");
return ret;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
christian borntraeger | christian borntraeger | 19 | 95.00% | 1 | 50.00% |
anthony liguori | anthony liguori | 1 | 5.00% | 1 | 50.00% |
| Total | 20 | 100.00% | 2 | 100.00% |
static inline long kvm_hypercall1(unsigned int nr, unsigned long p1)
{
long ret;
asm volatile(KVM_HYPERCALL
: "=a"(ret)
: "a"(nr), "b"(p1)
: "memory");
return ret;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
christian borntraeger | christian borntraeger | 23 | 95.83% | 1 | 50.00% |
anthony liguori | anthony liguori | 1 | 4.17% | 1 | 50.00% |
| Total | 24 | 100.00% | 2 | 100.00% |
static inline long kvm_hypercall2(unsigned int nr, unsigned long p1,
unsigned long p2)
{
long ret;
asm volatile(KVM_HYPERCALL
: "=a"(ret)
: "a"(nr), "b"(p1), "c"(p2)
: "memory");
return ret;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
christian borntraeger | christian borntraeger | 27 | 96.43% | 1 | 50.00% |
anthony liguori | anthony liguori | 1 | 3.57% | 1 | 50.00% |
| Total | 28 | 100.00% | 2 | 100.00% |
static inline long kvm_hypercall3(unsigned int nr, unsigned long p1,
unsigned long p2, unsigned long p3)
{
long ret;
asm volatile(KVM_HYPERCALL
: "=a"(ret)
: "a"(nr), "b"(p1), "c"(p2), "d"(p3)
: "memory");
return ret;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
christian borntraeger | christian borntraeger | 31 | 96.88% | 1 | 50.00% |
anthony liguori | anthony liguori | 1 | 3.12% | 1 | 50.00% |
| Total | 32 | 100.00% | 2 | 100.00% |
static inline long kvm_hypercall4(unsigned int nr, unsigned long p1,
unsigned long p2, unsigned long p3,
unsigned long p4)
{
long ret;
asm volatile(KVM_HYPERCALL
: "=a"(ret)
: "a"(nr), "b"(p1), "c"(p2), "d"(p3), "S"(p4)
: "memory");
return ret;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
christian borntraeger | christian borntraeger | 35 | 97.22% | 1 | 50.00% |
anthony liguori | anthony liguori | 1 | 2.78% | 1 | 50.00% |
| Total | 36 | 100.00% | 2 | 100.00% |
#ifdef CONFIG_KVM_GUEST
bool kvm_para_available(void);
unsigned int kvm_arch_para_features(void);
void __init kvm_guest_init(void);
void kvm_async_pf_task_wait(u32 token);
void kvm_async_pf_task_wake(u32 token);
u32 kvm_read_and_reset_pf_reason(void);
extern void kvm_disable_steal_time(void);
#ifdef CONFIG_PARAVIRT_SPINLOCKS
void __init kvm_spinlock_init(void);
#else /* !CONFIG_PARAVIRT_SPINLOCKS */
static inline void kvm_spinlock_init(void)
{
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
srivatsa vaddagiri | srivatsa vaddagiri | 8 | 100.00% | 1 | 100.00% |
| Total | 8 | 100.00% | 1 | 100.00% |
#endif /* CONFIG_PARAVIRT_SPINLOCKS */
#else /* CONFIG_KVM_GUEST */
#define kvm_guest_init() do {} while (0)
#define kvm_async_pf_task_wait(T) do {} while(0)
#define kvm_async_pf_task_wake(T) do {} while(0)
static inline bool kvm_para_available(void)
{
return false;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
paolo bonzini | paolo bonzini | 11 | 91.67% | 1 | 50.00% |
joe perches | joe perches | 1 | 8.33% | 1 | 50.00% |
| Total | 12 | 100.00% | 2 | 100.00% |
static inline unsigned int kvm_arch_para_features(void)
{
return 0;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
paolo bonzini | paolo bonzini | 13 | 100.00% | 1 | 100.00% |
| Total | 13 | 100.00% | 1 | 100.00% |
static inline u32 kvm_read_and_reset_pf_reason(void)
{
return 0;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
gleb natapov | gleb natapov | 11 | 91.67% | 1 | 50.00% |
jan kiszka | jan kiszka | 1 | 8.33% | 1 | 50.00% |
| Total | 12 | 100.00% | 2 | 100.00% |
static inline void kvm_disable_steal_time(void)
{
return;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
glauber costa | glauber costa | 10 | 100.00% | 1 | 100.00% |
| Total | 10 | 100.00% | 1 | 100.00% |
#endif
#endif /* _ASM_X86_KVM_PARA_H */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
christian borntraeger | christian borntraeger | 143 | 40.74% | 1 | 5.26% |
gleb natapov | gleb natapov | 54 | 15.38% | 2 | 10.53% |
paolo bonzini | paolo bonzini | 45 | 12.82% | 3 | 15.79% |
srivatsa vaddagiri | srivatsa vaddagiri | 26 | 7.41% | 1 | 5.26% |
eric b munson | eric b munson | 24 | 6.84% | 1 | 5.26% |
alexander graf | alexander graf | 18 | 5.13% | 1 | 5.26% |
glauber costa | glauber costa | 17 | 4.84% | 1 | 5.26% |
glauber de oliveira costa | glauber de oliveira costa | 7 | 1.99% | 1 | 5.26% |
anthony liguori | anthony liguori | 5 | 1.42% | 1 | 5.26% |
h. peter anvin | h. peter anvin | 3 | 0.85% | 1 | 5.26% |
david howells | david howells | 2 | 0.57% | 1 | 5.26% |
marcelo tosatti | marcelo tosatti | 2 | 0.57% | 1 | 5.26% |
avi kivity | avi kivity | 2 | 0.57% | 1 | 5.26% |
joe perches | joe perches | 1 | 0.28% | 1 | 5.26% |
jesse larrew | jesse larrew | 1 | 0.28% | 1 | 5.26% |
jan kiszka | jan kiszka | 1 | 0.28% | 1 | 5.26% |
| Total | 351 | 100.00% | 19 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.