diff options
Diffstat (limited to 'include/linux/kvm_host.h')
| -rw-r--r-- | include/linux/kvm_host.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 0f574ebc82f4..27bd53b69080 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -165,12 +165,12 @@ enum kvm_bus { | |||
| 165 | KVM_NR_BUSES | 165 | KVM_NR_BUSES |
| 166 | }; | 166 | }; |
| 167 | 167 | ||
| 168 | int kvm_io_bus_write(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr, | 168 | int kvm_io_bus_write(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, |
| 169 | int len, const void *val); | 169 | int len, const void *val); |
| 170 | int kvm_io_bus_write_cookie(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr, | 170 | int kvm_io_bus_write_cookie(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, |
| 171 | int len, const void *val, long cookie); | 171 | gpa_t addr, int len, const void *val, long cookie); |
| 172 | int kvm_io_bus_read(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr, int len, | 172 | int kvm_io_bus_read(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, |
| 173 | void *val); | 173 | int len, void *val); |
| 174 | int kvm_io_bus_register_dev(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr, | 174 | int kvm_io_bus_register_dev(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr, |
| 175 | int len, struct kvm_io_device *dev); | 175 | int len, struct kvm_io_device *dev); |
| 176 | int kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, | 176 | int kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, |
| @@ -699,6 +699,20 @@ static inline wait_queue_head_t *kvm_arch_vcpu_wq(struct kvm_vcpu *vcpu) | |||
| 699 | #endif | 699 | #endif |
| 700 | } | 700 | } |
| 701 | 701 | ||
| 702 | #ifdef __KVM_HAVE_ARCH_INTC_INITIALIZED | ||
| 703 | /* | ||
| 704 | * returns true if the virtual interrupt controller is initialized and | ||
| 705 | * ready to accept virtual IRQ. On some architectures the virtual interrupt | ||
| 706 | * controller is dynamically instantiated and this is not always true. | ||
| 707 | */ | ||
| 708 | bool kvm_arch_intc_initialized(struct kvm *kvm); | ||
| 709 | #else | ||
| 710 | static inline bool kvm_arch_intc_initialized(struct kvm *kvm) | ||
| 711 | { | ||
| 712 | return true; | ||
| 713 | } | ||
| 714 | #endif | ||
| 715 | |||
| 702 | int kvm_arch_init_vm(struct kvm *kvm, unsigned long type); | 716 | int kvm_arch_init_vm(struct kvm *kvm, unsigned long type); |
| 703 | void kvm_arch_destroy_vm(struct kvm *kvm); | 717 | void kvm_arch_destroy_vm(struct kvm *kvm); |
| 704 | void kvm_arch_sync_events(struct kvm *kvm); | 718 | void kvm_arch_sync_events(struct kvm *kvm); |
