diff options
Diffstat (limited to 'arch/x86/kvm/hyperv.h')
-rw-r--r-- | arch/x86/kvm/hyperv.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/x86/kvm/hyperv.h b/arch/x86/kvm/hyperv.h index 315af4b660f4..9483d49a5afa 100644 --- a/arch/x86/kvm/hyperv.h +++ b/arch/x86/kvm/hyperv.h | |||
@@ -24,14 +24,6 @@ | |||
24 | #ifndef __ARCH_X86_KVM_HYPERV_H__ | 24 | #ifndef __ARCH_X86_KVM_HYPERV_H__ |
25 | #define __ARCH_X86_KVM_HYPERV_H__ | 25 | #define __ARCH_X86_KVM_HYPERV_H__ |
26 | 26 | ||
27 | int kvm_hv_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host); | ||
28 | int kvm_hv_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); | ||
29 | bool kvm_hv_hypercall_enabled(struct kvm *kvm); | ||
30 | int kvm_hv_hypercall(struct kvm_vcpu *vcpu); | ||
31 | |||
32 | int kvm_hv_synic_set_irq(struct kvm *kvm, u32 vcpu_id, u32 sint); | ||
33 | void kvm_hv_synic_send_eoi(struct kvm_vcpu *vcpu, int vector); | ||
34 | |||
35 | static inline struct kvm_vcpu_hv_synic *vcpu_to_synic(struct kvm_vcpu *vcpu) | 27 | static inline struct kvm_vcpu_hv_synic *vcpu_to_synic(struct kvm_vcpu *vcpu) |
36 | { | 28 | { |
37 | return &vcpu->arch.hyperv.synic; | 29 | return &vcpu->arch.hyperv.synic; |
@@ -46,10 +38,18 @@ static inline struct kvm_vcpu *synic_to_vcpu(struct kvm_vcpu_hv_synic *synic) | |||
46 | arch = container_of(hv, struct kvm_vcpu_arch, hyperv); | 38 | arch = container_of(hv, struct kvm_vcpu_arch, hyperv); |
47 | return container_of(arch, struct kvm_vcpu, arch); | 39 | return container_of(arch, struct kvm_vcpu, arch); |
48 | } | 40 | } |
49 | void kvm_hv_irq_routing_update(struct kvm *kvm); | ||
50 | 41 | ||
51 | void kvm_hv_vcpu_init(struct kvm_vcpu *vcpu); | 42 | int kvm_hv_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host); |
43 | int kvm_hv_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); | ||
44 | |||
45 | bool kvm_hv_hypercall_enabled(struct kvm *kvm); | ||
46 | int kvm_hv_hypercall(struct kvm_vcpu *vcpu); | ||
52 | 47 | ||
48 | void kvm_hv_irq_routing_update(struct kvm *kvm); | ||
49 | int kvm_hv_synic_set_irq(struct kvm *kvm, u32 vcpu_id, u32 sint); | ||
50 | void kvm_hv_synic_send_eoi(struct kvm_vcpu *vcpu, int vector); | ||
53 | int kvm_hv_activate_synic(struct kvm_vcpu *vcpu); | 51 | int kvm_hv_activate_synic(struct kvm_vcpu *vcpu); |
54 | 52 | ||
53 | void kvm_hv_vcpu_init(struct kvm_vcpu *vcpu); | ||
54 | |||
55 | #endif | 55 | #endif |