Searched defs:kvm (Results 1 - 75 of 75) sorted by relevance

/linux-4.1.27/arch/s390/kvm/
H A Dirq.h17 static inline int irqchip_in_kernel(struct kvm *kvm) irqchip_in_kernel() argument
H A DMakefile
H A Ddiag.c151 struct kvm *kvm = vcpu->kvm; __diag_time_slice_end_directed() local
H A Dkvm-s390.h49 static inline int kvm_is_ucontrol(struct kvm *kvm) kvm_is_ucontrol() argument
146 static inline int test_kvm_facility(struct kvm *kvm, unsigned long nr) test_kvm_facility() argument
164 static inline int kvm_s390_user_cpu_state_ctrl(struct kvm *kvm) kvm_s390_user_cpu_state_ctrl() argument
H A Dgaccess.c514 static int deref_table(struct kvm *kvm, unsigned long gpa, unsigned long *val) deref_table() argument
H A Dinterrupt.c1203 static struct kvm_s390_interrupt_info *get_io_int(struct kvm *kvm, get_io_int() argument
1233 struct kvm_s390_interrupt_info *kvm_s390_get_io_int(struct kvm *kvm, kvm_s390_get_io_int() argument
1249 static int __inject_service(struct kvm *kvm, __inject_service() argument
1274 static int __inject_virtio(struct kvm *kvm, __inject_virtio() argument
1291 static int __inject_pfault_done(struct kvm *kvm, __inject_pfault_done() argument
1310 static int __inject_float_mchk(struct kvm *kvm, __inject_float_mchk() argument
1324 static int __inject_io(struct kvm *kvm, struct kvm_s390_interrupt_info *inti) __inject_io() argument
1346 static int __inject_vm(struct kvm *kvm, struct kvm_s390_interrupt_info *inti) __inject_vm() argument
1407 int kvm_s390_inject_vm(struct kvm *kvm, kvm_s390_inject_vm() argument
1464 int kvm_s390_reinject_io_int(struct kvm *kvm, kvm_s390_reinject_io_int() argument
1606 void kvm_s390_clear_float_irqs(struct kvm *kvm) kvm_s390_clear_float_irqs() argument
1622 static int get_all_floating_irqs(struct kvm *kvm, u8 __user *usrbuf, u64 len) get_all_floating_irqs() argument
1784 static struct s390_io_adapter *get_io_adapter(struct kvm *kvm, unsigned int id) get_io_adapter() argument
1822 int kvm_s390_mask_adapter(struct kvm *kvm, unsigned int id, bool masked) kvm_s390_mask_adapter() argument
1834 static int kvm_s390_adapter_map(struct kvm *kvm, unsigned int id, __u64 addr) kvm_s390_adapter_map() argument
1874 static int kvm_s390_adapter_unmap(struct kvm *kvm, unsigned int id, __u64 addr) kvm_s390_adapter_unmap() argument
1899 void kvm_s390_destroy_adapters(struct kvm *kvm) kvm_s390_destroy_adapters() argument
2038 static int adapter_indicators_set(struct kvm *kvm, adapter_indicators_set() argument
2127 int kvm_set_msi(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm, kvm_set_msi() argument
2076 set_adapter_int(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm, int irq_source_id, int level, bool line_status) set_adapter_int() argument
H A Dkvm-s390.c160 int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) kvm_vm_ioctl_check_extension() argument
211 static void kvm_s390_sync_dirty_log(struct kvm *kvm, kvm_s390_sync_dirty_log() argument
234 int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, kvm_vm_ioctl_get_dirty_log() argument
269 static int kvm_vm_ioctl_enable_cap(struct kvm *kvm, struct kvm_enable_cap *cap) kvm_vm_ioctl_enable_cap() argument
308 static int kvm_s390_get_mem_control(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_get_mem_control() argument
325 static int kvm_s390_set_mem_control(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_set_mem_control() argument
386 static int kvm_s390_vm_set_crypto(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_vm_set_crypto() argument
431 static int kvm_s390_set_tod_high(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_set_tod_high() argument
445 static int kvm_s390_set_tod_low(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_set_tod_low() argument
469 static int kvm_s390_set_tod(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_set_tod() argument
490 static int kvm_s390_get_tod_high(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_get_tod_high() argument
501 static int kvm_s390_get_tod_low(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_get_tod_low() argument
517 static int kvm_s390_get_tod(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_get_tod() argument
538 static int kvm_s390_set_processor(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_set_processor() argument
568 static int kvm_s390_set_cpu_model(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_set_cpu_model() argument
580 static int kvm_s390_get_processor(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_get_processor() argument
600 static int kvm_s390_get_machine(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_get_machine() argument
623 static int kvm_s390_get_cpu_model(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_get_cpu_model() argument
638 static int kvm_s390_vm_set_attr(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_vm_set_attr() argument
663 static int kvm_s390_vm_get_attr(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_vm_get_attr() argument
685 static int kvm_s390_vm_has_attr(struct kvm *kvm, struct kvm_device_attr *attr) kvm_s390_vm_has_attr() argument
745 static long kvm_s390_get_skeys(struct kvm *kvm, struct kvm_s390_skeys *args) kvm_s390_get_skeys() argument
794 static long kvm_s390_set_skeys(struct kvm *kvm, struct kvm_s390_skeys *args) kvm_s390_set_skeys() argument
850 struct kvm *kvm = filp->private_data; kvm_arch_vm_ioctl() local
972 static void kvm_s390_set_crycb_format(struct kvm *kvm) kvm_s390_set_crycb_format() argument
988 static int kvm_s390_crypto_init(struct kvm *kvm) kvm_s390_crypto_init() argument
1011 int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) kvm_arch_init_vm() argument
1142 static void kvm_free_vcpus(struct kvm *kvm) kvm_free_vcpus() argument
1158 void kvm_arch_destroy_vm(struct kvm *kvm) kvm_arch_destroy_vm() argument
1353 struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, kvm_arch_vcpu_create() argument
1449 struct kvm *kvm = gmap->private; kvm_gmap_notifier() local
1710 bool kvm_s390_cmma_enabled(struct kvm *kvm) kvm_s390_cmma_enabled() argument
2219 static void __disable_ibs_on_all_vcpus(struct kvm *kvm) __disable_ibs_on_all_vcpus() argument
2563 int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, kvm_arch_create_memslot() argument
2570 int kvm_arch_prepare_memory_region(struct kvm *kvm, kvm_arch_prepare_memory_region() argument
2589 void kvm_arch_commit_memory_region(struct kvm *kvm, kvm_arch_commit_memory_region() argument
/linux-4.1.27/arch/mips/kvm/
H A DMakefile
H A Dtrap_emul.c448 static int kvm_trap_emul_vm_init(struct kvm *kvm) kvm_trap_emul_vm_init() argument
H A Dtlb.c144 static int kvm_mips_map_page(struct kvm *kvm, gfn_t gfn) kvm_mips_map_page() argument
173 struct kvm *kvm = vcpu->kvm; kvm_mips_translate_guest_kseg0_to_hpa() local
269 struct kvm *kvm = vcpu->kvm; kvm_mips_handle_kseg0_tlb_fault() local
362 struct kvm *kvm = vcpu->kvm; kvm_mips_handle_mapped_seg_tlb_fault() local
H A Demulate.c1536 struct kvm *kvm = vcpu->kvm; kvm_mips_sync_icache() local
H A Dmips.c103 static void kvm_mips_init_tlbs(struct kvm *kvm) kvm_mips_init_tlbs() argument
122 struct kvm *kvm = (struct kvm *)arg; kvm_mips_init_vm_percpu() local
129 int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) kvm_arch_init_vm() argument
140 void kvm_mips_free_vcpus(struct kvm *kvm) kvm_mips_free_vcpus() argument
175 void kvm_arch_destroy_vm(struct kvm *kvm) kvm_arch_destroy_vm() argument
193 int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, kvm_arch_create_memslot() argument
199 int kvm_arch_prepare_memory_region(struct kvm *kvm, kvm_arch_prepare_memory_region() argument
207 void kvm_arch_commit_memory_region(struct kvm *kvm, kvm_arch_commit_memory_region() argument
244 struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id) kvm_arch_vcpu_create() argument
972 int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log) kvm_vm_ioctl_get_dirty_log() argument
1065 int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) kvm_vm_ioctl_check_extension() argument
/linux-4.1.27/arch/powerpc/kvm/
H A Dirq.h6 static inline int irqchip_in_kernel(struct kvm *kvm) irqchip_in_kernel() argument
H A DMakefile
H A Dbook3s_64_vio_hv.c47 struct kvm *kvm = vcpu->kvm; kvmppc_h_put_tce() local
82 struct kvm *kvm = vcpu->kvm; kvmppc_h_get_tce() local
H A Dbook3s_64_vio.c50 struct kvm *kvm = stt->kvm; release_spapr_tce_table() local
100 long kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm, kvm_vm_ioctl_create_spapr_tce() argument
H A Dbook3s_rtas.c132 static int rtas_token_undefine(struct kvm *kvm, char *name) rtas_token_undefine() argument
150 static int rtas_token_define(struct kvm *kvm, char *name, u64 token) rtas_token_define() argument
188 int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp) kvm_vm_ioctl_rtas_define_token() argument
268 void kvmppc_rtas_tokens_free(struct kvm *kvm) kvmppc_rtas_tokens_free() argument
H A Dbook3s_64_mmu_host.c97 struct kvm *kvm = vcpu->kvm; kvmppc_mmu_map_page() local
H A Dbook3s_pr_papr.c391 void kvmppc_pr_init_default_hcalls(struct kvm *kvm) kvmppc_pr_init_default_hcalls() argument
H A De500.c439 static struct kvm_vcpu *kvmppc_core_vcpu_create_e500(struct kvm *kvm, kvmppc_core_vcpu_create_e500() argument
493 static int kvmppc_core_init_vm_e500(struct kvm *kvm) kvmppc_core_init_vm_e500() argument
498 static void kvmppc_core_destroy_vm_e500(struct kvm *kvm) kvmppc_core_destroy_vm_e500() argument
H A De500mc.c308 static struct kvm_vcpu *kvmppc_core_vcpu_create_e500mc(struct kvm *kvm, kvmppc_core_vcpu_create_e500mc() argument
360 static int kvmppc_core_init_vm_e500mc(struct kvm *kvm) kvmppc_core_init_vm_e500mc() argument
380 static void kvmppc_core_destroy_vm_e500mc(struct kvm *kvm) kvmppc_core_destroy_vm_e500mc() argument
H A Dbook3s_xics.h102 struct kvm *kvm; member in struct:kvmppc_xics
113 static inline struct kvmppc_icp *kvmppc_xics_find_server(struct kvm *kvm, kvmppc_xics_find_server() argument
H A Dbook3s_hv_rm_mmu.c42 static int global_invalidates(struct kvm *kvm, unsigned long flags) global_invalidates() argument
73 void kvmppc_add_revmap_chain(struct kvm *kvm, struct revmap_entry *rev, kvmppc_add_revmap_chain() argument
101 static void remove_revmap_chain(struct kvm *kvm, long pte_index, remove_revmap_chain() argument
137 long kvmppc_do_h_enter(struct kvm *kvm, unsigned long flags, kvmppc_do_h_enter() argument
375 static void do_tlbies(struct kvm *kvm, unsigned long *rbvalues, do_tlbies() argument
399 long kvmppc_do_h_remove(struct kvm *kvm, unsigned long flags, kvmppc_do_h_remove() argument
458 struct kvm *kvm = vcpu->kvm; kvmppc_h_bulk_remove() local
570 struct kvm *kvm = vcpu->kvm; kvmppc_h_protect() local
633 struct kvm *kvm = vcpu->kvm; kvmppc_h_read() local
664 void kvmppc_invalidate_hpte(struct kvm *kvm, __be64 *hptep, kvmppc_invalidate_hpte() argument
676 void kvmppc_clear_ref_hpte(struct kvm *kvm, __be64 *hptep, kvmppc_clear_ref_hpte() argument
702 long kvmppc_hv_find_lock_hpte(struct kvm *kvm, gva_t eaddr, unsigned long slb_v, kvmppc_hv_find_lock_hpte() argument
792 struct kvm *kvm = vcpu->kvm; kvmppc_hpte_hv_fault() local
H A Dbook3s_xics.c163 int kvmppc_xics_set_xive(struct kvm *kvm, u32 irq, u32 server, u32 priority) kvmppc_xics_set_xive() argument
193 int kvmppc_xics_get_xive(struct kvm *kvm, u32 irq, u32 *server, u32 *priority) kvmppc_xics_get_xive() argument
219 int kvmppc_xics_int_on(struct kvm *kvm, u32 irq) kvmppc_xics_int_on() argument
246 int kvmppc_xics_int_off(struct kvm *kvm, u32 irq) kvmppc_xics_int_off() argument
898 struct kvm *kvm = xics->kvm; xics_debug_show() local
999 static struct kvmppc_ics *kvmppc_xics_create_ics(struct kvm *kvm, kvmppc_xics_create_ics() argument
1244 int kvm_set_irq(struct kvm *kvm, int irq_source_id, u32 irq, int level, kvm_set_irq() argument
1252 int kvm_set_msi(struct kvm_kernel_irq_routing_entry *irq_entry, struct kvm *kvm, kvm_set_msi() argument
1299 struct kvm *kvm = xics->kvm; kvmppc_xics_free() local
1315 struct kvm *kvm = dev->kvm; kvmppc_xics_create() local
1397 int kvm_irq_map_gsi(struct kvm *kvm, kvm_irq_map_gsi() argument
1408 int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin) kvm_irq_map_chip_pin() argument
1390 xics_set_irq(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm, int irq_source_id, int level, bool line_status) xics_set_irq() argument
H A De500_mmu_host.c336 struct kvm *kvm = vcpu_e500->vcpu.kvm; kvmppc_e500_shadow_map() local
726 int kvm_unmap_hva(struct kvm *kvm, unsigned long hva) kvm_unmap_hva() argument
739 int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end) kvm_unmap_hva_range() argument
747 int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned long end) kvm_age_hva() argument
753 int kvm_test_age_hva(struct kvm *kvm, unsigned long hva) kvm_test_age_hva() argument
759 void kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte) kvm_set_spte_hva() argument
H A Dbook3s.c721 struct kvm_vcpu *kvmppc_core_vcpu_create(struct kvm *kvm, unsigned int id) kvmppc_core_vcpu_create() argument
736 int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log) kvm_vm_ioctl_get_dirty_log() argument
741 void kvmppc_core_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free, kvmppc_core_free_memslot() argument
747 int kvmppc_core_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, kvmppc_core_create_memslot() argument
753 void kvmppc_core_flush_memslot(struct kvm *kvm, struct kvm_memory_slot *memslot) kvmppc_core_flush_memslot() argument
758 int kvmppc_core_prepare_memory_region(struct kvm *kvm, kvmppc_core_prepare_memory_region() argument
765 void kvmppc_core_commit_memory_region(struct kvm *kvm, kvmppc_core_commit_memory_region() argument
772 int kvm_unmap_hva(struct kvm *kvm, unsigned long hva) kvm_unmap_hva() argument
778 int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end) kvm_unmap_hva_range() argument
783 int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned long end) kvm_age_hva() argument
788 int kvm_test_age_hva(struct kvm *kvm, unsigned long hva) kvm_test_age_hva() argument
793 void kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte) kvm_set_spte_hva() argument
803 int kvmppc_core_init_vm(struct kvm *kvm) kvmppc_core_init_vm() argument
814 void kvmppc_core_destroy_vm(struct kvm *kvm) kvmppc_core_destroy_vm() argument
916 int kvmppc_book3s_hcall_implemented(struct kvm *kvm, unsigned long hcall) kvmppc_book3s_hcall_implemented() argument
H A Dbook3s_pr.c251 static void do_kvm_unmap_hva(struct kvm *kvm, unsigned long start, do_kvm_unmap_hva() argument
281 static int kvm_unmap_hva_pr(struct kvm *kvm, unsigned long hva) kvm_unmap_hva_pr() argument
290 static int kvm_unmap_hva_range_pr(struct kvm *kvm, unsigned long start, kvm_unmap_hva_range_pr() argument
298 static int kvm_age_hva_pr(struct kvm *kvm, unsigned long start, kvm_age_hva_pr() argument
305 static int kvm_test_age_hva_pr(struct kvm *kvm, unsigned long hva) kvm_test_age_hva_pr() argument
311 static void kvm_set_spte_hva_pr(struct kvm *kvm, unsigned long hva, pte_t pte) kvm_set_spte_hva_pr() argument
1372 static struct kvm_vcpu *kvmppc_core_vcpu_create_pr(struct kvm *kvm, kvmppc_core_vcpu_create_pr() argument
1530 static int kvm_vm_ioctl_get_dirty_log_pr(struct kvm *kvm, kvm_vm_ioctl_get_dirty_log_pr() argument
1566 static void kvmppc_core_flush_memslot_pr(struct kvm *kvm, kvmppc_core_flush_memslot_pr() argument
1572 static int kvmppc_core_prepare_memory_region_pr(struct kvm *kvm, kvmppc_core_prepare_memory_region_pr() argument
1579 static void kvmppc_core_commit_memory_region_pr(struct kvm *kvm, kvmppc_core_commit_memory_region_pr() argument
1600 static int kvm_vm_ioctl_get_smmu_info_pr(struct kvm *kvm, kvm_vm_ioctl_get_smmu_info_pr() argument
1646 static int kvm_vm_ioctl_get_smmu_info_pr(struct kvm *kvm, kvm_vm_ioctl_get_smmu_info_pr() argument
1657 static int kvmppc_core_init_vm_pr(struct kvm *kvm) kvmppc_core_init_vm_pr() argument
1675 static void kvmppc_core_destroy_vm_pr(struct kvm *kvm) kvmppc_core_destroy_vm_pr() argument
H A Dpowerpc.c402 int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) kvm_arch_init_vm() argument
435 void kvm_arch_destroy_vm(struct kvm *kvm) kvm_arch_destroy_vm() argument
457 int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) kvm_vm_ioctl_check_extension() argument
584 void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free, kvm_arch_free_memslot() argument
590 int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, kvm_arch_create_memslot() argument
596 int kvm_arch_prepare_memory_region(struct kvm *kvm, kvm_arch_prepare_memory_region() argument
604 void kvm_arch_commit_memory_region(struct kvm *kvm, kvm_arch_commit_memory_region() argument
612 void kvm_arch_flush_shadow_memslot(struct kvm *kvm, kvm_arch_flush_shadow_memslot() argument
618 struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id) kvm_arch_vcpu_create() argument
1253 int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_event, kvm_vm_ioctl_irq_line() argument
1266 static int kvm_vm_ioctl_enable_cap(struct kvm *kvm, kvm_vm_ioctl_enable_cap() argument
1341 struct kvm *kvm = filp->private_data; kvm_arch_vm_ioctl() local
1350 struct kvm *kvm = filp->private_data; kvm_arch_vm_ioctl() local
1356 struct kvm *kvm = filp->private_data; kvm_arch_vm_ioctl() local
H A Dbook3s_64_mmu_hv.c51 long kvmppc_alloc_hpt(struct kvm *kvm, u32 *htab_orderp) kvmppc_alloc_hpt() argument
114 long kvmppc_alloc_reset_hpt(struct kvm *kvm, u32 *htab_orderp) kvmppc_alloc_reset_hpt() argument
150 void kvmppc_free_hpt(struct kvm *kvm) kvmppc_free_hpt() argument
185 struct kvm *kvm = vcpu->kvm; kvmppc_map_vrma() local
257 long kvmppc_virtmode_do_h_enter(struct kvm *kvm, unsigned long flags, kvmppc_virtmode_do_h_enter() argument
310 struct kvm *kvm = vcpu->kvm; kvmppc_mmu_book3s_64_hv_xlate() local
438 struct kvm *kvm = vcpu->kvm; kvmppc_book3s_hv_page_fault() local
646 static void kvmppc_rmap_reset(struct kvm *kvm) kvmppc_rmap_reset() argument
665 static int kvm_handle_hva_range(struct kvm *kvm, kvm_handle_hva_range() argument
705 static int kvm_handle_hva(struct kvm *kvm, unsigned long hva, kvm_handle_hva() argument
712 static int kvm_unmap_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_unmap_rmapp() argument
775 int kvm_unmap_hva_hv(struct kvm *kvm, unsigned long hva) kvm_unmap_hva_hv() argument
781 int kvm_unmap_hva_range_hv(struct kvm *kvm, unsigned long start, unsigned long end) kvm_unmap_hva_range_hv() argument
787 void kvmppc_core_flush_memslot_hv(struct kvm *kvm, kvmppc_core_flush_memslot_hv() argument
810 static int kvm_age_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_age_rmapp() argument
863 int kvm_age_hva_hv(struct kvm *kvm, unsigned long start, unsigned long end) kvm_age_hva_hv() argument
868 static int kvm_test_age_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_test_age_rmapp() argument
899 int kvm_test_age_hva_hv(struct kvm *kvm, unsigned long hva) kvm_test_age_hva_hv() argument
904 void kvm_set_spte_hva_hv(struct kvm *kvm, unsigned long hva, pte_t pte) kvm_set_spte_hva_hv() argument
909 static int vcpus_running(struct kvm *kvm) vcpus_running() argument
918 static int kvm_test_clear_dirty_npages(struct kvm *kvm, unsigned long *rmapp) kvm_test_clear_dirty_npages() argument
1021 long kvmppc_hv_get_dirty_log(struct kvm *kvm, struct kvm_memory_slot *memslot, kvmppc_hv_get_dirty_log() argument
1055 void *kvmppc_pin_guest_page(struct kvm *kvm, unsigned long gpa, kvmppc_pin_guest_page() argument
1086 void kvmppc_unpin_guest_page(struct kvm *kvm, void *va, unsigned long gpa, kvmppc_unpin_guest_page() argument
1132 struct kvm *kvm; member in struct:kvm_htab_ctx
1230 struct kvm *kvm = ctx->kvm; kvm_htab_read() local
1327 struct kvm *kvm = ctx->kvm; kvm_htab_write() local
1456 int kvm_vm_ioctl_get_htab_fd(struct kvm *kvm, struct kvm_get_htab_fd *ghf) kvm_vm_ioctl_get_htab_fd() argument
1493 struct kvm *kvm; member in struct:debugfs_htab_state
1503 struct kvm *kvm = inode->i_private; debugfs_htab_open() local
1534 struct kvm *kvm; debugfs_htab_read() local
1620 void kvmppc_mmu_debugfs_init(struct kvm *kvm) kvmppc_mmu_debugfs_init() argument
H A Dbook3s_hv.c301 struct kvm_vcpu *kvmppc_find_vcpu(struct kvm *kvm, int id) kvmppc_find_vcpu() argument
359 struct kvm *kvm = vcpu->kvm; do_h_register_vpa() local
467 struct kvm *kvm = vcpu->kvm; kvmppc_update_vpa() local
983 struct kvm *kvm = vcpu->kvm; kvmppc_set_lpcr() local
1423 static struct kvmppc_vcore *kvmppc_vcore_create(struct kvm *kvm, int core) kvmppc_vcore_create() argument
1580 struct kvm *kvm = vcpu->kvm; debugfs_vcpu_init() local
1599 static struct kvm_vcpu *kvmppc_core_vcpu_create_hv(struct kvm *kvm, kvmppc_core_vcpu_create_hv() argument
1678 static void unpin_vpa(struct kvm *kvm, struct kvmppc_vpa *vpa) unpin_vpa() argument
2305 static int kvm_vm_ioctl_get_smmu_info_hv(struct kvm *kvm, kvm_vm_ioctl_get_smmu_info_hv() argument
2327 static int kvm_vm_ioctl_get_dirty_log_hv(struct kvm *kvm, kvm_vm_ioctl_get_dirty_log_hv() argument
2381 static int kvmppc_core_prepare_memory_region_hv(struct kvm *kvm, kvmppc_core_prepare_memory_region_hv() argument
2388 static void kvmppc_core_commit_memory_region_hv(struct kvm *kvm, kvmppc_core_commit_memory_region_hv() argument
2411 void kvmppc_update_lpcr(struct kvm *kvm, unsigned long lpcr, unsigned long mask) kvmppc_update_lpcr() argument
2441 struct kvm *kvm = vcpu->kvm; kvmppc_hv_setup_htab_rma() local
2516 static int kvmppc_core_init_vm_hv(struct kvm *kvm) kvmppc_core_init_vm_hv() argument
2571 static void kvmppc_free_vcores(struct kvm *kvm) kvmppc_free_vcores() argument
2586 static void kvmppc_core_destroy_vm_hv(struct kvm *kvm) kvmppc_core_destroy_vm_hv() argument
H A Dbooke.c1769 int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log) kvm_vm_ioctl_get_dirty_log() argument
1774 void kvmppc_core_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free, kvmppc_core_free_memslot() argument
1779 int kvmppc_core_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, kvmppc_core_create_memslot() argument
1785 int kvmppc_core_prepare_memory_region(struct kvm *kvm, kvmppc_core_prepare_memory_region() argument
1792 void kvmppc_core_commit_memory_region(struct kvm *kvm, kvmppc_core_commit_memory_region() argument
1798 void kvmppc_core_flush_memslot(struct kvm *kvm, struct kvm_memory_slot *memslot) kvmppc_core_flush_memslot() argument
2073 int kvmppc_core_init_vm(struct kvm *kvm) kvmppc_core_init_vm() argument
2078 struct kvm_vcpu *kvmppc_core_vcpu_create(struct kvm *kvm, unsigned int id) kvmppc_core_vcpu_create() argument
2088 void kvmppc_core_destroy_vm(struct kvm *kvm) kvmppc_core_destroy_vm() argument
H A Dmpic.c192 struct kvm *kvm; member in struct:openpic
1791 mpic_set_irq(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm, int irq_source_id, int level, bool line_status) mpic_set_irq() argument
1807 kvm_set_msi(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm, int irq_source_id, int level, bool line_status) kvm_set_msi() argument
/linux-4.1.27/arch/x86/kvm/
H A Dassigned-dev.h18 static inline int kvm_iommu_unmap_guest(struct kvm *kvm) kvm_iommu_unmap_guest() argument
23 static inline long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl, kvm_vm_ioctl_assigned_device() argument
29 static inline void kvm_free_all_assigned_devices(struct kvm *kvm) {} argument
H A Diommu.c65 static void kvm_unpin_pages(struct kvm *kvm, pfn_t pfn, unsigned long npages) kvm_unpin_pages() argument
73 int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot) kvm_iommu_map_pages() argument
151 static int kvm_iommu_map_memslots(struct kvm *kvm) kvm_iommu_map_memslots() argument
173 int kvm_assign_device(struct kvm *kvm, struct pci_dev *pdev) kvm_assign_device() argument
213 int kvm_deassign_device(struct kvm *kvm, struct pci_dev *pdev) kvm_deassign_device() argument
233 int kvm_iommu_map_guest(struct kvm *kvm) kvm_iommu_map_guest() argument
271 static void kvm_iommu_put_pages(struct kvm *kvm, kvm_iommu_put_pages() argument
314 void kvm_iommu_unmap_pages(struct kvm *kvm, struct kvm_memory_slot *slot) kvm_iommu_unmap_pages() argument
319 static int kvm_iommu_unmap_memslots(struct kvm *kvm) kvm_iommu_unmap_memslots() argument
339 int kvm_iommu_unmap_guest(struct kvm *kvm) kvm_iommu_unmap_guest() argument
H A Dirq.h66 struct kvm *kvm; member in struct:kvm_pic
81 static inline struct kvm_pic *pic_irqchip(struct kvm *kvm) pic_irqchip() argument
86 static inline int irqchip_in_kernel(struct kvm *kvm) irqchip_in_kernel() argument
H A Dlapic.h146 static inline bool kvm_apic_vid_enabled(struct kvm *kvm) kvm_apic_vid_enabled() argument
H A Di8254.h32 struct kvm *kvm; member in struct:kvm_kpit_state
44 struct kvm *kvm; member in struct:kvm_pit
H A Di8259.c239 int kvm_pic_read_irq(struct kvm *kvm) kvm_pic_read_irq() argument
577 static void pic_irq_request(struct kvm *kvm, int level) pic_irq_request() argument
601 struct kvm_pic *kvm_create_pic(struct kvm *kvm) kvm_create_pic() argument
654 void kvm_destroy_pic(struct kvm *kvm) kvm_destroy_pic() argument
H A Dioapic.h73 struct kvm *kvm; member in struct:kvm_ioapic
96 static inline struct kvm_ioapic *ioapic_irqchip(struct kvm *kvm) ioapic_irqchip() argument
101 static inline bool kvm_ioapic_handles_vector(struct kvm *kvm, int vector) kvm_ioapic_handles_vector() argument
H A Dirq_comm.c56 int kvm_irq_delivery_to_apic(struct kvm *kvm, struct kvm_lapic *src, kvm_irq_delivery_to_apic() argument
149 int kvm_set_irq_inatomic(struct kvm *kvm, int irq_source_id, u32 irq, int level) kvm_set_irq_inatomic() argument
178 int kvm_request_irq_source_id(struct kvm *kvm) kvm_request_irq_source_id() argument
201 void kvm_free_irq_source_id(struct kvm *kvm, int irq_source_id) kvm_free_irq_source_id() argument
222 void kvm_register_irq_mask_notifier(struct kvm *kvm, int irq, kvm_register_irq_mask_notifier() argument
231 void kvm_unregister_irq_mask_notifier(struct kvm *kvm, int irq, kvm_unregister_irq_mask_notifier() argument
240 void kvm_fire_mask_notifiers(struct kvm *kvm, unsigned irqchip, unsigned pin, kvm_fire_mask_notifiers() argument
328 int kvm_setup_default_irq_routing(struct kvm *kvm) kvm_setup_default_irq_routing() argument
34 kvm_set_pic_irq(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm, int irq_source_id, int level, bool line_status) kvm_set_pic_irq() argument
42 kvm_set_ioapic_irq(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm, int irq_source_id, int level, bool line_status) kvm_set_ioapic_irq() argument
114 kvm_set_msi(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm, int irq_source_id, int level, bool line_status) kvm_set_msi() argument
128 kvm_set_msi_inatomic(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm) kvm_set_msi_inatomic() argument
H A Dmmu.h75 static inline unsigned int kvm_mmu_available_pages(struct kvm *kvm) kvm_mmu_available_pages() argument
H A Dmmu_audit.c88 static void walk_all_active_sps(struct kvm *kvm, sp_handler fn) walk_all_active_sps() argument
129 static void inspect_spte_has_rmap(struct kvm *kvm, u64 *sptep) inspect_spte_has_rmap() argument
174 static void check_mappings_rmap(struct kvm *kvm, struct kvm_mmu_page *sp) check_mappings_rmap() argument
189 static void audit_write_protection(struct kvm *kvm, struct kvm_mmu_page *sp) audit_write_protection() argument
209 static void audit_sp(struct kvm *kvm, struct kvm_mmu_page *sp) audit_sp() argument
215 static void audit_all_active_sps(struct kvm *kvm) audit_all_active_sps() argument
H A Di8254.c73 static void pit_set_gate(struct kvm *kvm, int channel, u32 val) pit_set_gate() argument
99 static int pit_get_gate(struct kvm *kvm, int channel) pit_get_gate() argument
106 static s64 __kpit_elapsed(struct kvm *kvm) __kpit_elapsed() argument
130 static s64 kpit_elapsed(struct kvm *kvm, struct kvm_kpit_channel_state *c, kpit_elapsed() argument
139 static int pit_get_count(struct kvm *kvm, int channel) pit_get_count() argument
169 static int pit_get_out(struct kvm *kvm, int channel) pit_get_out() argument
204 static void pit_latch_count(struct kvm *kvm, int channel) pit_latch_count() argument
217 static void pit_latch_status(struct kvm *kvm, int channel) pit_latch_status() argument
280 struct kvm *kvm = pit->kvm; pit_do_work() local
333 static void create_pit_timer(struct kvm *kvm, u32 val, int is_period) create_pit_timer() argument
378 static void pit_load_count(struct kvm *kvm, int channel, u32 val) pit_load_count() argument
418 void kvm_pit_load_count(struct kvm *kvm, int channel, u32 val, int hpet_legacy_start) kvm_pit_load_count() argument
454 struct kvm *kvm = pit->kvm; pit_ioport_write() local
531 struct kvm *kvm = pit->kvm; pit_ioport_read() local
602 struct kvm *kvm = pit->kvm; speaker_ioport_write() local
620 struct kvm *kvm = pit->kvm; speaker_ioport_read() local
679 struct kvm_pit *kvm_create_pit(struct kvm *kvm, u32 flags) kvm_create_pit() argument
762 void kvm_free_pit(struct kvm *kvm) kvm_free_pit() argument
H A Dioapic.c275 void kvm_vcpu_request_scan_ioapic(struct kvm *kvm) kvm_vcpu_request_scan_ioapic() argument
609 int kvm_ioapic_init(struct kvm *kvm) kvm_ioapic_init() argument
635 void kvm_ioapic_destroy(struct kvm *kvm) kvm_ioapic_destroy() argument
647 int kvm_get_ioapic(struct kvm *kvm, struct kvm_ioapic_state *state) kvm_get_ioapic() argument
660 int kvm_set_ioapic(struct kvm *kvm, struct kvm_ioapic_state *state) kvm_set_ioapic() argument
H A Dassigned-dev.c43 struct kvm *kvm; member in struct:kvm_assigned_dev_kernel
224 static void deassign_guest_irq(struct kvm *kvm, deassign_guest_irq() argument
241 static void deassign_host_irq(struct kvm *kvm, deassign_host_irq() argument
288 static int kvm_deassign_irq(struct kvm *kvm, kvm_deassign_irq() argument
311 static void kvm_free_assigned_irq(struct kvm *kvm, kvm_free_assigned_irq() argument
317 static void kvm_free_assigned_device(struct kvm *kvm, kvm_free_assigned_device() argument
341 void kvm_free_all_assigned_devices(struct kvm *kvm) kvm_free_all_assigned_devices() argument
355 static int assigned_device_enable_host_intx(struct kvm *kvm, assigned_device_enable_host_intx() argument
390 static int assigned_device_enable_host_msi(struct kvm *kvm, assigned_device_enable_host_msi() argument
414 static int assigned_device_enable_host_msix(struct kvm *kvm, assigned_device_enable_host_msix() argument
448 static int assigned_device_enable_guest_intx(struct kvm *kvm, assigned_device_enable_guest_intx() argument
458 static int assigned_device_enable_guest_msi(struct kvm *kvm, assigned_device_enable_guest_msi() argument
469 static int assigned_device_enable_guest_msix(struct kvm *kvm, assigned_device_enable_guest_msix() argument
479 static int assign_host_irq(struct kvm *kvm, assign_host_irq() argument
516 static int assign_guest_irq(struct kvm *kvm, assign_guest_irq() argument
564 static int kvm_vm_ioctl_assign_irq(struct kvm *kvm, kvm_vm_ioctl_assign_irq() argument
606 static int kvm_vm_ioctl_deassign_dev_irq(struct kvm *kvm, kvm_vm_ioctl_deassign_dev_irq() argument
689 static int kvm_vm_ioctl_assign_device(struct kvm *kvm, kvm_vm_ioctl_assign_device() argument
802 static int kvm_vm_ioctl_deassign_device(struct kvm *kvm, kvm_vm_ioctl_deassign_device() argument
830 static int kvm_vm_ioctl_set_msix_nr(struct kvm *kvm, kvm_vm_ioctl_set_msix_nr() argument
875 static int kvm_vm_ioctl_set_msix_entry(struct kvm *kvm, kvm_vm_ioctl_set_msix_entry() argument
911 static int kvm_vm_ioctl_set_pci_irq_mask(struct kvm *kvm, kvm_vm_ioctl_set_pci_irq_mask() argument
960 long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl, kvm_vm_ioctl_assigned_device() argument
H A Dlapic.c158 static void recalculate_apic_map(struct kvm *kvm) recalculate_apic_map() argument
681 bool kvm_irq_delivery_to_apic_fast(struct kvm *kvm, struct kvm_lapic *src, kvm_irq_delivery_to_apic_fast() argument
H A Dsvm.c1214 static struct kvm_vcpu *svm_create_vcpu(struct kvm *kvm, unsigned int id) svm_create_vcpu() argument
3652 static int svm_vm_has_apicv(struct kvm *kvm) svm_vm_has_apicv() argument
3749 static int svm_set_tss_addr(struct kvm *kvm, unsigned int addr) svm_set_tss_addr() argument
H A Dmmu.c226 static unsigned int kvm_current_mmio_generation(struct kvm *kvm) kvm_current_mmio_generation() argument
231 static void mark_mmio_spte(struct kvm *kvm, u64 *sptep, u64 gfn, mark_mmio_spte() argument
261 static bool set_mmio_spte(struct kvm *kvm, u64 *sptep, gfn_t gfn, set_mmio_spte() argument
272 static bool check_mmio_spte(struct kvm *kvm, u64 spte) check_mmio_spte() argument
784 static void account_shadowed(struct kvm *kvm, gfn_t gfn) account_shadowed() argument
799 static void unaccount_shadowed(struct kvm *kvm, gfn_t gfn) unaccount_shadowed() argument
815 static int has_wrprotected_page(struct kvm *kvm, has_wrprotected_page() argument
831 static int host_mapping_level(struct kvm *kvm, gfn_t gfn) host_mapping_level() argument
1022 static unsigned long *gfn_to_rmap(struct kvm *kvm, gfn_t gfn, int level) gfn_to_rmap() argument
1049 static void rmap_remove(struct kvm *kvm, u64 *spte) rmap_remove() argument
1122 static void drop_spte(struct kvm *kvm, u64 *sptep) drop_spte() argument
1129 static bool __drop_large_spte(struct kvm *kvm, u64 *sptep) __drop_large_spte() argument
1161 static bool spte_write_protect(struct kvm *kvm, u64 *sptep, bool pt_protect) spte_write_protect() argument
1178 static bool __rmap_write_protect(struct kvm *kvm, unsigned long *rmapp, __rmap_write_protect() argument
1195 static bool spte_clear_dirty(struct kvm *kvm, u64 *sptep) spte_clear_dirty() argument
1206 static bool __rmap_clear_dirty(struct kvm *kvm, unsigned long *rmapp) __rmap_clear_dirty() argument
1222 static bool spte_set_dirty(struct kvm *kvm, u64 *sptep) spte_set_dirty() argument
1233 static bool __rmap_set_dirty(struct kvm *kvm, unsigned long *rmapp) __rmap_set_dirty() argument
1259 static void kvm_mmu_write_protect_pt_masked(struct kvm *kvm, kvm_mmu_write_protect_pt_masked() argument
1284 void kvm_mmu_clear_dirty_pt_masked(struct kvm *kvm, kvm_mmu_clear_dirty_pt_masked() argument
1311 void kvm_arch_mmu_enable_log_dirty_pt_masked(struct kvm *kvm, kvm_arch_mmu_enable_log_dirty_pt_masked() argument
1322 static bool rmap_write_protect(struct kvm *kvm, u64 gfn) rmap_write_protect() argument
1340 static int kvm_unmap_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_unmap_rmapp() argument
1360 static int kvm_set_pte_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_set_pte_rmapp() argument
1404 static int kvm_handle_hva_range(struct kvm *kvm, kvm_handle_hva_range() argument
1463 static int kvm_handle_hva(struct kvm *kvm, unsigned long hva, kvm_handle_hva() argument
1473 int kvm_unmap_hva(struct kvm *kvm, unsigned long hva) kvm_unmap_hva() argument
1478 int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end) kvm_unmap_hva_range() argument
1483 void kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte) kvm_set_spte_hva() argument
1488 static int kvm_age_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_age_rmapp() argument
1512 static int kvm_test_age_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_test_age_rmapp() argument
1556 int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned long end) kvm_age_hva() argument
1581 int kvm_test_age_hva(struct kvm *kvm, unsigned long hva) kvm_test_age_hva() argument
1608 static inline void kvm_mod_used_mmu_pages(struct kvm *kvm, int nr) kvm_mod_used_mmu_pages() argument
1792 static void kvm_unlink_unsync_page(struct kvm *kvm, struct kvm_mmu_page *sp) kvm_unlink_unsync_page() argument
2005 static bool is_obsolete_sp(struct kvm *kvm, struct kvm_mmu_page *sp) is_obsolete_sp() argument
2168 static bool mmu_page_zap_pte(struct kvm *kvm, struct kvm_mmu_page *sp, mmu_page_zap_pte() argument
2193 static void kvm_mmu_page_unlink_children(struct kvm *kvm, kvm_mmu_page_unlink_children() argument
2207 static void kvm_mmu_unlink_parents(struct kvm *kvm, struct kvm_mmu_page *sp) kvm_mmu_unlink_parents() argument
2216 static int mmu_zap_unsync_children(struct kvm *kvm, mmu_zap_unsync_children() argument
2242 static int kvm_mmu_prepare_zap_page(struct kvm *kvm, struct kvm_mmu_page *sp, kvm_mmu_prepare_zap_page() argument
2278 static void kvm_mmu_commit_zap_page(struct kvm *kvm, kvm_mmu_commit_zap_page() argument
2304 static bool prepare_zap_oldest_mmu_page(struct kvm *kvm, prepare_zap_oldest_mmu_page() argument
2323 void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned int goal_nr_mmu_pages) kvm_mmu_change_mmu_pages() argument
2344 int kvm_mmu_unprotect_page(struct kvm *kvm, gfn_t gfn) kvm_mmu_unprotect_page() argument
3548 static bool sync_mmio_spte(struct kvm *kvm, u64 *sptep, gfn_t gfn, sync_mmio_spte() argument
4378 void kvm_mmu_slot_remove_write_access(struct kvm *kvm, kvm_mmu_slot_remove_write_access() argument
4431 static bool kvm_mmu_zap_collapsible_spte(struct kvm *kvm, kvm_mmu_zap_collapsible_spte() argument
4466 void kvm_mmu_zap_collapsible_sptes(struct kvm *kvm, kvm_mmu_zap_collapsible_sptes() argument
4498 void kvm_mmu_slot_leaf_clear_dirty(struct kvm *kvm, kvm_mmu_slot_leaf_clear_dirty() argument
4537 void kvm_mmu_slot_largepage_remove_write_access(struct kvm *kvm, kvm_mmu_slot_largepage_remove_write_access() argument
4575 void kvm_mmu_slot_set_dirty(struct kvm *kvm, kvm_mmu_slot_set_dirty() argument
4614 static void kvm_zap_obsolete_pages(struct kvm *kvm) kvm_zap_obsolete_pages() argument
4673 void kvm_mmu_invalidate_zap_all_pages(struct kvm *kvm) kvm_mmu_invalidate_zap_all_pages() argument
4694 static bool kvm_has_zapped_obsolete_pages(struct kvm *kvm) kvm_has_zapped_obsolete_pages() argument
4699 void kvm_mmu_invalidate_mmio_sptes(struct kvm *kvm) kvm_mmu_invalidate_mmio_sptes() argument
4714 struct kvm *kvm; mmu_shrink_scan() local
4821 unsigned int kvm_mmu_calculate_mmu_pages(struct kvm *kvm) kvm_mmu_calculate_mmu_pages() argument
H A Dvmx.c949 static inline bool vm_need_tpr_shadow(struct kvm *kvm) vm_need_tpr_shadow() argument
1065 static inline bool vm_need_virtualize_apic_accesses(struct kvm *kvm) vm_need_virtualize_apic_accesses() argument
4041 static int init_rmode_tss(struct kvm *kvm) init_rmode_tss() argument
4072 static int init_rmode_identity_map(struct kvm *kvm) init_rmode_identity_map() argument
4131 static int alloc_apic_access_page(struct kvm *kvm) alloc_apic_access_page() argument
4165 static int alloc_identity_pagetable(struct kvm *kvm) alloc_identity_pagetable() argument
4361 static int vmx_vm_has_apicv(struct kvm *kvm) vmx_vm_has_apicv() argument
4976 static int vmx_set_tss_addr(struct kvm *kvm, unsigned int addr) vmx_set_tss_addr() argument
7671 struct kvm *kvm = vmx->vcpu.kvm; vmx_flush_pml_buffer() local
7704 static void kvm_flush_pml_buffers(struct kvm *kvm) kvm_flush_pml_buffers() argument
7880 static void vmx_hwapic_isr_update(struct kvm *kvm, int isr) vmx_hwapic_isr_update() argument
8396 static struct kvm_vcpu *vmx_create_vcpu(struct kvm *kvm, unsigned int id) vmx_create_vcpu() argument
10143 static void vmx_slot_enable_log_dirty(struct kvm *kvm, vmx_slot_enable_log_dirty() argument
10150 static void vmx_slot_disable_log_dirty(struct kvm *kvm, vmx_slot_disable_log_dirty() argument
10156 static void vmx_flush_log_dirty(struct kvm *kvm) vmx_flush_log_dirty() argument
10161 static void vmx_enable_log_dirty_pt_masked(struct kvm *kvm, vmx_enable_log_dirty_pt_masked() argument
H A Dx86.c1109 static void kvm_write_wall_clock(struct kvm *kvm, gpa_t wall_clock) kvm_write_wall_clock() argument
1295 struct kvm *kvm = vcpu->kvm; kvm_write_tsc() local
1535 static void pvclock_update_vm_gtod_copy(struct kvm *kvm) pvclock_update_vm_gtod_copy() argument
1566 static void kvm_gen_update_masterclock(struct kvm *kvm) kvm_gen_update_masterclock() argument
1743 struct kvm *kvm = container_of(ka, struct kvm, arch); kvmclock_update_fn() local
1754 struct kvm *kvm = v->kvm; kvm_gen_kvmclock_update() local
1768 struct kvm *kvm = container_of(ka, struct kvm, arch); kvmclock_sync_fn() local
1929 struct kvm *kvm = vcpu->kvm; xen_hvm_config() local
1958 static bool kvm_hv_hypercall_enabled(struct kvm *kvm) kvm_hv_hypercall_enabled() argument
1980 struct kvm *kvm = vcpu->kvm; set_msr_hyperv_pw() local
2457 struct kvm *kvm = vcpu->kvm; get_msr_hyperv_pw() local
2755 int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) kvm_vm_ioctl_check_extension() argument
3633 static int kvm_vm_ioctl_set_tss_addr(struct kvm *kvm, unsigned long addr) kvm_vm_ioctl_set_tss_addr() argument
3643 static int kvm_vm_ioctl_set_identity_map_addr(struct kvm *kvm, kvm_vm_ioctl_set_identity_map_addr() argument
3650 static int kvm_vm_ioctl_set_nr_mmu_pages(struct kvm *kvm, kvm_vm_ioctl_set_nr_mmu_pages() argument
3665 static int kvm_vm_ioctl_get_nr_mmu_pages(struct kvm *kvm) kvm_vm_ioctl_get_nr_mmu_pages() argument
3670 static int kvm_vm_ioctl_get_irqchip(struct kvm *kvm, struct kvm_irqchip *chip) kvm_vm_ioctl_get_irqchip() argument
3696 static int kvm_vm_ioctl_set_irqchip(struct kvm *kvm, struct kvm_irqchip *chip) kvm_vm_ioctl_set_irqchip() argument
3727 static int kvm_vm_ioctl_get_pit(struct kvm *kvm, struct kvm_pit_state *ps) kvm_vm_ioctl_get_pit() argument
3737 static int kvm_vm_ioctl_set_pit(struct kvm *kvm, struct kvm_pit_state *ps) kvm_vm_ioctl_set_pit() argument
3748 static int kvm_vm_ioctl_get_pit2(struct kvm *kvm, struct kvm_pit_state2 *ps) kvm_vm_ioctl_get_pit2() argument
3761 static int kvm_vm_ioctl_set_pit2(struct kvm *kvm, struct kvm_pit_state2 *ps) kvm_vm_ioctl_set_pit2() argument
3780 static int kvm_vm_ioctl_reinject(struct kvm *kvm, kvm_vm_ioctl_reinject() argument
3810 int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log) kvm_vm_ioctl_get_dirty_log() argument
3837 int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_event, kvm_vm_ioctl_irq_line() argument
3852 struct kvm *kvm = filp->private_data; kvm_arch_vm_ioctl() local
5535 struct kvm *kvm; kvmclock_cpufreq_notifier() local
5748 struct kvm *kvm; pvclock_gtod_update_fn() local
5950 static void kvm_pv_kick_cpu_op(struct kvm *kvm, unsigned long flags, int apicid) kvm_pv_kick_cpu_op() argument
6210 void kvm_arch_mmu_notifier_invalidate_page(struct kvm *kvm, kvm_arch_mmu_notifier_invalidate_page() argument
6445 static inline int vcpu_block(struct kvm *kvm, struct kvm_vcpu *vcpu) vcpu_block() argument
6476 struct kvm *kvm = vcpu->kvm; vcpu_run() local
7079 struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, kvm_arch_vcpu_create() argument
7117 struct kvm *kvm = vcpu->kvm; kvm_arch_vcpu_postcreate() local
7194 struct kvm *kvm; kvm_arch_hardware_enable() local
7321 struct kvm *kvm; kvm_arch_vcpu_init() local
7417 int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) kvm_arch_init_vm() argument
7455 static void kvm_free_vcpus(struct kvm *kvm) kvm_free_vcpus() argument
7478 void kvm_arch_sync_events(struct kvm *kvm) kvm_arch_sync_events() argument
7486 void kvm_arch_destroy_vm(struct kvm *kvm) kvm_arch_destroy_vm() argument
7512 void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free, kvm_arch_free_memslot() argument
7533 int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, kvm_arch_create_memslot() argument
7592 void kvm_arch_memslots_updated(struct kvm *kvm) kvm_arch_memslots_updated() argument
7601 int kvm_arch_prepare_memory_region(struct kvm *kvm, kvm_arch_prepare_memory_region() argument
7630 static void kvm_mmu_slot_apply_flags(struct kvm *kvm, kvm_mmu_slot_apply_flags() argument
7680 void kvm_arch_commit_memory_region(struct kvm *kvm, kvm_arch_commit_memory_region() argument
7737 void kvm_arch_flush_shadow_all(struct kvm *kvm) kvm_arch_flush_shadow_all() argument
7742 void kvm_arch_flush_shadow_memslot(struct kvm *kvm, kvm_arch_flush_shadow_memslot() argument
7956 void kvm_arch_register_noncoherent_dma(struct kvm *kvm) kvm_arch_register_noncoherent_dma() argument
7962 void kvm_arch_unregister_noncoherent_dma(struct kvm *kvm) kvm_arch_unregister_noncoherent_dma() argument
7968 bool kvm_arch_has_noncoherent_dma(struct kvm *kvm) kvm_arch_has_noncoherent_dma() argument
/linux-4.1.27/arch/arm/kvm/
H A DMakefile
H A Dpsci.c69 struct kvm *kvm = source_vcpu->kvm; kvm_psci_vcpu_on() local
132 struct kvm *kvm = vcpu->kvm; kvm_psci_vcpu_affinity_info() local
H A Darm.c113 int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) kvm_arch_init_vm() argument
153 void kvm_arch_destroy_vm(struct kvm *kvm) kvm_arch_destroy_vm() argument
169 int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) kvm_vm_ioctl_check_extension() argument
213 struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id) kvm_arch_vcpu_create() argument
374 static bool need_new_vmid_gen(struct kvm *kvm) need_new_vmid_gen() argument
387 static void update_vttbr(struct kvm *kvm) update_vttbr() argument
441 struct kvm *kvm = vcpu->kvm; kvm_vcpu_first_run_init() local
470 bool kvm_arch_intc_initialized(struct kvm *kvm) kvm_arch_intc_initialized() argument
624 int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_level, kvm_vm_ioctl_irq_line() argument
825 int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log) kvm_vm_ioctl_get_dirty_log() argument
841 static int kvm_vm_ioctl_set_device_addr(struct kvm *kvm, kvm_vm_ioctl_set_device_addr() argument
862 struct kvm *kvm = filp->private_data; kvm_arch_vm_ioctl() local
1085 struct kvm_vcpu *kvm_mpidr_to_vcpu(struct kvm *kvm, unsigned long mpidr) kvm_mpidr_to_vcpu() argument
H A Dmmu.c64 void kvm_flush_remote_tlbs(struct kvm *kvm) kvm_flush_remote_tlbs() argument
69 static void kvm_tlb_flush_vmid_ipa(struct kvm *kvm, phys_addr_t ipa) kvm_tlb_flush_vmid_ipa() argument
115 static void stage2_dissolve_pmd(struct kvm *kvm, phys_addr_t addr, pmd_t *pmd) stage2_dissolve_pmd() argument
157 static void clear_pgd_entry(struct kvm *kvm, pgd_t *pgd, phys_addr_t addr) clear_pgd_entry() argument
166 static void clear_pud_entry(struct kvm *kvm, pud_t *pud, phys_addr_t addr) clear_pud_entry() argument
176 static void clear_pmd_entry(struct kvm *kvm, pmd_t *pmd, phys_addr_t addr) clear_pmd_entry() argument
206 static void unmap_ptes(struct kvm *kvm, pmd_t *pmd, unmap_ptes() argument
232 static void unmap_pmds(struct kvm *kvm, pud_t *pud, unmap_pmds() argument
261 static void unmap_puds(struct kvm *kvm, pgd_t *pgd, unmap_puds() argument
291 static void unmap_range(struct kvm *kvm, pgd_t *pgdp, unmap_range() argument
306 static void stage2_flush_ptes(struct kvm *kvm, pmd_t *pmd, stage2_flush_ptes() argument
318 static void stage2_flush_pmds(struct kvm *kvm, pud_t *pud, stage2_flush_pmds() argument
336 static void stage2_flush_puds(struct kvm *kvm, pgd_t *pgd, stage2_flush_puds() argument
354 static void stage2_flush_memslot(struct kvm *kvm, stage2_flush_memslot() argument
376 static void stage2_flush_vm(struct kvm *kvm) stage2_flush_vm() argument
666 int kvm_alloc_stage2_pgd(struct kvm *kvm) kvm_alloc_stage2_pgd() argument
739 static void unmap_stage2_range(struct kvm *kvm, phys_addr_t start, u64 size) unmap_stage2_range() argument
744 static void stage2_unmap_memslot(struct kvm *kvm, stage2_unmap_memslot() argument
792 void stage2_unmap_vm(struct kvm *kvm) stage2_unmap_vm() argument
820 void kvm_free_stage2_pgd(struct kvm *kvm) kvm_free_stage2_pgd() argument
833 static pud_t *stage2_get_pud(struct kvm *kvm, struct kvm_mmu_memory_cache *cache, stage2_get_pud() argument
851 static pmd_t *stage2_get_pmd(struct kvm *kvm, struct kvm_mmu_memory_cache *cache, stage2_get_pmd() argument
869 static int stage2_set_pmd_huge(struct kvm *kvm, struct kvm_mmu_memory_cache stage2_set_pmd_huge() argument
900 static int stage2_set_pte(struct kvm *kvm, struct kvm_mmu_memory_cache *cache, stage2_set_pte() argument
964 int kvm_phys_addr_ioremap(struct kvm *kvm, phys_addr_t guest_ipa, kvm_phys_addr_ioremap() argument
1124 static void stage2_wp_range(struct kvm *kvm, phys_addr_t addr, phys_addr_t end) stage2_wp_range() argument
1160 void kvm_mmu_wp_memory_region(struct kvm *kvm, int slot) kvm_mmu_wp_memory_region() argument
1183 static void kvm_mmu_write_protect_pt_masked(struct kvm *kvm, kvm_mmu_write_protect_pt_masked() argument
1201 void kvm_arch_mmu_enable_log_dirty_pt_masked(struct kvm *kvm, kvm_arch_mmu_enable_log_dirty_pt_masked() argument
1222 struct kvm *kvm = vcpu->kvm; user_mem_abort() local
1465 static int handle_hva_to_gpa(struct kvm *kvm, handle_hva_to_gpa() argument
1505 static int kvm_unmap_hva_handler(struct kvm *kvm, gpa_t gpa, void *data) kvm_unmap_hva_handler() argument
1511 int kvm_unmap_hva(struct kvm *kvm, unsigned long hva) kvm_unmap_hva() argument
1523 int kvm_unmap_hva_range(struct kvm *kvm, kvm_unmap_hva_range() argument
1534 static int kvm_set_spte_handler(struct kvm *kvm, gpa_t gpa, void *data) kvm_set_spte_handler() argument
1550 void kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte) kvm_set_spte_hva() argument
1563 static int kvm_age_hva_handler(struct kvm *kvm, gpa_t gpa, void *data) kvm_age_hva_handler() argument
1593 static int kvm_test_age_hva_handler(struct kvm *kvm, gpa_t gpa, void *data) kvm_test_age_hva_handler() argument
1612 int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned long end) kvm_age_hva() argument
1618 int kvm_test_age_hva(struct kvm *kvm, unsigned long hva) kvm_test_age_hva() argument
1724 void kvm_arch_commit_memory_region(struct kvm *kvm, kvm_arch_commit_memory_region() argument
1738 int kvm_arch_prepare_memory_region(struct kvm *kvm, kvm_arch_prepare_memory_region() argument
1827 void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free, kvm_arch_free_memslot() argument
1832 int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, kvm_arch_create_memslot() argument
1847 void kvm_arch_memslots_updated(struct kvm *kvm) kvm_arch_memslots_updated() argument
1851 void kvm_arch_flush_shadow_all(struct kvm *kvm) kvm_arch_flush_shadow_all() argument
1855 void kvm_arch_flush_shadow_memslot(struct kvm *kvm, kvm_arch_flush_shadow_memslot() argument
/linux-4.1.27/virt/kvm/
H A Dcoalesced_mmio.h20 struct kvm *kvm; member in struct:kvm_coalesced_mmio_dev
33 static inline int kvm_coalesced_mmio_init(struct kvm *kvm) { return 0; } kvm_coalesced_mmio_free() argument
34 static inline void kvm_coalesced_mmio_free(struct kvm *kvm) { } argument
H A Dcoalesced_mmio.c105 int kvm_coalesced_mmio_init(struct kvm *kvm) kvm_coalesced_mmio_init() argument
130 void kvm_coalesced_mmio_free(struct kvm *kvm) kvm_coalesced_mmio_free() argument
136 int kvm_vm_ioctl_register_coalesced_mmio(struct kvm *kvm, kvm_vm_ioctl_register_coalesced_mmio() argument
167 int kvm_vm_ioctl_unregister_coalesced_mmio(struct kvm *kvm, kvm_vm_ioctl_unregister_coalesced_mmio() argument
H A Dirqchip.c45 int kvm_irq_map_gsi(struct kvm *kvm, kvm_irq_map_gsi() argument
64 int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin) kvm_irq_map_chip_pin() argument
72 int kvm_send_userspace_msi(struct kvm *kvm, struct kvm_msi *msi) kvm_send_userspace_msi() argument
92 int kvm_set_irq(struct kvm *kvm, int irq_source_id, u32 irq, int level, kvm_set_irq() argument
121 void kvm_free_irq_routing(struct kvm *kvm) kvm_free_irq_routing() argument
159 int kvm_set_irq_routing(struct kvm *kvm, kvm_set_irq_routing() argument
H A Deventfd.c60 struct kvm *kvm; member in struct:_irqfd_resampler
77 struct kvm *kvm; member in struct:_irqfd
104 struct kvm *kvm = irqfd->kvm; irqfd_inject() local
125 struct kvm *kvm; irqfd_resampler_ack() local
147 struct kvm *kvm = resampler->kvm; irqfd_resampler_shutdown() local
230 struct kvm *kvm = irqfd->kvm; irqfd_wakeup() local
282 static void irqfd_update(struct kvm *kvm, struct _irqfd *irqfd) irqfd_update() argument
305 kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) kvm_irqfd_assign() argument
451 bool kvm_irq_has_notifier(struct kvm *kvm, unsigned irqchip, unsigned pin) kvm_irq_has_notifier() argument
472 void kvm_notify_acked_irq(struct kvm *kvm, unsigned irqchip, unsigned pin) kvm_notify_acked_irq() argument
489 void kvm_register_irq_ack_notifier(struct kvm *kvm, kvm_register_irq_ack_notifier() argument
498 void kvm_unregister_irq_ack_notifier(struct kvm *kvm, kvm_unregister_irq_ack_notifier() argument
510 kvm_eventfd_init(struct kvm *kvm) kvm_eventfd_init() argument
526 kvm_irqfd_deassign(struct kvm *kvm, struct kvm_irqfd *args) kvm_irqfd_deassign() argument
566 kvm_irqfd(struct kvm *kvm, struct kvm_irqfd *args) kvm_irqfd() argument
582 kvm_irqfd_release(struct kvm *kvm) kvm_irqfd_release() argument
605 void kvm_irq_routing_update(struct kvm *kvm) kvm_irq_routing_update() argument
749 ioeventfd_check_collision(struct kvm *kvm, struct _ioeventfd *p) ioeventfd_check_collision() argument
774 static int kvm_assign_ioeventfd_idx(struct kvm *kvm, kvm_assign_ioeventfd_idx() argument
838 kvm_deassign_ioeventfd_idx(struct kvm *kvm, enum kvm_bus bus_idx, kvm_deassign_ioeventfd_idx() argument
878 static int kvm_deassign_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args) kvm_deassign_ioeventfd() argument
890 kvm_assign_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args) kvm_assign_ioeventfd() argument
944 kvm_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args) kvm_ioeventfd() argument
H A Dkvm_main.c151 bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req) kvm_make_all_cpus_request() argument
184 void kvm_flush_remote_tlbs(struct kvm *kvm) kvm_flush_remote_tlbs() argument
196 void kvm_reload_remote_mmus(struct kvm *kvm) kvm_reload_remote_mmus() argument
201 void kvm_make_mclock_inprogress_request(struct kvm *kvm) kvm_make_mclock_inprogress_request() argument
206 void kvm_make_scan_ioapic_request(struct kvm *kvm) kvm_make_scan_ioapic_request() argument
211 int kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id) kvm_vcpu_init() argument
265 struct kvm *kvm = mmu_notifier_to_kvm(mn); kvm_mmu_notifier_invalidate_page() local
307 struct kvm *kvm = mmu_notifier_to_kvm(mn); kvm_mmu_notifier_change_pte() local
323 struct kvm *kvm = mmu_notifier_to_kvm(mn); kvm_mmu_notifier_invalidate_range_start() local
349 struct kvm *kvm = mmu_notifier_to_kvm(mn); kvm_mmu_notifier_invalidate_range_end() local
375 struct kvm *kvm = mmu_notifier_to_kvm(mn); kvm_mmu_notifier_clear_flush_young() local
395 struct kvm *kvm = mmu_notifier_to_kvm(mn); kvm_mmu_notifier_test_young() local
410 struct kvm *kvm = mmu_notifier_to_kvm(mn); kvm_mmu_notifier_release() local
428 static int kvm_init_mmu_notifier(struct kvm *kvm) kvm_init_mmu_notifier() argument
436 static int kvm_init_mmu_notifier(struct kvm *kvm) kvm_init_mmu_notifier() argument
443 static void kvm_init_memslots_id(struct kvm *kvm) kvm_init_memslots_id() argument
455 struct kvm *kvm = kvm_arch_alloc_vm(); kvm_create_vm() local
556 static void kvm_free_physmem_slot(struct kvm *kvm, struct kvm_memory_slot *free, kvm_free_physmem_slot() argument
567 static void kvm_free_physmem(struct kvm *kvm) kvm_free_physmem() argument
578 static void kvm_destroy_devices(struct kvm *kvm) kvm_destroy_devices() argument
591 static void kvm_destroy_vm(struct kvm *kvm) kvm_destroy_vm() argument
619 void kvm_get_kvm(struct kvm *kvm) kvm_get_kvm() argument
625 void kvm_put_kvm(struct kvm *kvm) kvm_put_kvm() argument
635 struct kvm *kvm = filp->private_data; kvm_vm_release() local
729 static struct kvm_memslots *install_new_memslots(struct kvm *kvm, install_new_memslots() argument
764 int __kvm_set_memory_region(struct kvm *kvm, __kvm_set_memory_region() argument
941 int kvm_set_memory_region(struct kvm *kvm, kvm_set_memory_region() argument
953 static int kvm_vm_ioctl_set_memory_region(struct kvm *kvm, kvm_vm_ioctl_set_memory_region() argument
961 int kvm_get_dirty_log(struct kvm *kvm, kvm_get_dirty_log() argument
1019 int kvm_get_dirty_log_protect(struct kvm *kvm, kvm_get_dirty_log_protect() argument
1089 struct kvm_memory_slot *gfn_to_memslot(struct kvm *kvm, gfn_t gfn) gfn_to_memslot() argument
1095 int kvm_is_visible_gfn(struct kvm *kvm, gfn_t gfn) kvm_is_visible_gfn() argument
1107 unsigned long kvm_host_page_size(struct kvm *kvm, gfn_t gfn) kvm_host_page_size() argument
1164 unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn) gfn_to_hva() argument
1185 unsigned long gfn_to_hva_prot(struct kvm *kvm, gfn_t gfn, bool *writable) gfn_to_hva_prot() argument
1381 static pfn_t __gfn_to_pfn(struct kvm *kvm, gfn_t gfn, bool atomic, bool *async, __gfn_to_pfn() argument
1395 pfn_t gfn_to_pfn_atomic(struct kvm *kvm, gfn_t gfn) gfn_to_pfn_atomic() argument
1401 pfn_t gfn_to_pfn_async(struct kvm *kvm, gfn_t gfn, bool *async, gfn_to_pfn_async() argument
1408 pfn_t gfn_to_pfn(struct kvm *kvm, gfn_t gfn) gfn_to_pfn() argument
1414 pfn_t gfn_to_pfn_prot(struct kvm *kvm, gfn_t gfn, bool write_fault, gfn_to_pfn_prot() argument
1432 int gfn_to_page_many_atomic(struct kvm *kvm, gfn_t gfn, struct page **pages, gfn_to_page_many_atomic() argument
1462 struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn) gfn_to_page() argument
1534 int kvm_read_guest_page(struct kvm *kvm, gfn_t gfn, void *data, int offset, kvm_read_guest_page() argument
1550 int kvm_read_guest(struct kvm *kvm, gpa_t gpa, void *data, unsigned long len) kvm_read_guest() argument
1570 int kvm_read_guest_atomic(struct kvm *kvm, gpa_t gpa, void *data, kvm_read_guest_atomic() argument
1590 int kvm_write_guest_page(struct kvm *kvm, gfn_t gfn, const void *data, kvm_write_guest_page() argument
1607 int kvm_write_guest(struct kvm *kvm, gpa_t gpa, const void *data, kvm_write_guest() argument
1628 int kvm_gfn_to_hva_cache_init(struct kvm *kvm, struct gfn_to_hva_cache *ghc, kvm_gfn_to_hva_cache_init() argument
1665 int kvm_write_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc, kvm_write_guest_cached() argument
1691 int kvm_read_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc, kvm_read_guest_cached() argument
1716 int kvm_clear_guest_page(struct kvm *kvm, gfn_t gfn, int offset, int len) kvm_clear_guest_page() argument
1724 int kvm_clear_guest(struct kvm *kvm, gpa_t gpa, unsigned long len) kvm_clear_guest() argument
1743 static void mark_page_dirty_in_slot(struct kvm *kvm, mark_page_dirty_in_slot() argument
1754 void mark_page_dirty(struct kvm *kvm, gfn_t gfn) mark_page_dirty() argument
1907 struct kvm *kvm = me->kvm; kvm_vcpu_on_spin() local
2018 static int kvm_vm_ioctl_create_vcpu(struct kvm *kvm, u32 id) kvm_vm_ioctl_create_vcpu() argument
2375 struct kvm *kvm = dev->kvm; kvm_device_release() local
2426 static int kvm_ioctl_create_device(struct kvm *kvm, kvm_ioctl_create_device() argument
2469 static long kvm_vm_ioctl_check_extension_generic(struct kvm *kvm, long arg) kvm_vm_ioctl_check_extension_generic() argument
2501 struct kvm *kvm = filp->private_data; kvm_vm_ioctl() local
2686 struct kvm *kvm = filp->private_data; kvm_vm_compat_ioctl() local
2729 struct kvm *kvm; kvm_dev_ioctl_create_vm() local
3112 int kvm_io_bus_register_dev(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr, kvm_io_bus_register_dev() argument
3137 int kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx, kvm_io_bus_unregister_dev() argument
3177 struct kvm *kvm; vm_stat_get() local
3192 struct kvm *kvm; vcpu_stat_get() local
/linux-4.1.27/tools/perf/arch/s390/util/
H A Dkvm-stat.c96 int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid) cpu_isa_init() argument
/linux-4.1.27/tools/perf/arch/x86/util/
H A Dkvm-stat.c144 int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid) cpu_isa_init() argument
/linux-4.1.27/arch/arm/include/asm/
H A Dkvm_mmu.h166 static inline void *kvm_get_hwpgd(struct kvm *kvm) kvm_get_hwpgd() argument
H A Dkvm_host.h174 static inline void kvm_arch_mmu_notifier_invalidate_page(struct kvm *kvm, kvm_arch_mmu_notifier_invalidate_page() argument
235 static inline void kvm_arch_sync_events(struct kvm *kvm) {} kvm_arch_vcpu_uninit() argument
/linux-4.1.27/virt/kvm/arm/
H A Darch_timer.c340 void kvm_timer_enable(struct kvm *kvm) kvm_timer_enable() argument
357 void kvm_timer_init(struct kvm *kvm) kvm_timer_init() argument
H A Dvgic-v2-emul.c140 static u32 vgic_get_target_reg(struct kvm *kvm, int irq) vgic_get_target_reg() argument
154 static void vgic_set_target_reg(struct kvm *kvm, u32 val, int irq) vgic_set_target_reg() argument
409 struct kvm *kvm = vcpu->kvm; vgic_dispatch_sgi() local
488 static int vgic_v2_map_resources(struct kvm *kvm, vgic_v2_map_resources() argument
551 static int vgic_v2_init_model(struct kvm *kvm) vgic_v2_init_model() argument
561 void vgic_v2_init_emulation(struct kvm *kvm) vgic_v2_init_emulation() argument
H A Dvgic-v3-emul.c254 struct kvm *kvm = vcpu->kvm; handle_mmio_route_reg() local
722 static int vgic_v3_map_resources(struct kvm *kvm, vgic_v3_map_resources() argument
797 static int vgic_v3_init_model(struct kvm *kvm) vgic_v3_init_model() argument
826 void vgic_v3_init_emulation(struct kvm *kvm) vgic_v3_init_emulation() argument
887 struct kvm *kvm = vcpu->kvm; vgic_v3_dispatch_sgi() local
H A Dvgic.c101 int kvm_vgic_map_resources(struct kvm *kvm) kvm_vgic_map_resources() argument
452 bool vgic_handle_enable_reg(struct kvm *kvm, struct kvm_exit_mmio *mmio, vgic_handle_enable_reg() argument
474 bool vgic_handle_set_pending_reg(struct kvm *kvm, vgic_handle_set_pending_reg() argument
511 bool vgic_handle_clear_pending_reg(struct kvm *kvm, vgic_handle_clear_pending_reg() argument
547 bool vgic_handle_set_active_reg(struct kvm *kvm, vgic_handle_set_active_reg() argument
566 bool vgic_handle_clear_active_reg(struct kvm *kvm, vgic_handle_clear_active_reg() argument
884 int vgic_register_kvm_io_dev(struct kvm *kvm, gpa_t base, int len, vgic_register_kvm_io_dev() argument
983 void vgic_update_state(struct kvm *kvm) vgic_update_state() argument
1264 struct kvm *kvm = vcpu->kvm; vgic_process_maintenance() local
1418 void vgic_kick_vcpus(struct kvm *kvm) vgic_kick_vcpus() argument
1451 static int vgic_update_irq_pending(struct kvm *kvm, int cpuid, vgic_update_irq_pending() argument
1539 int kvm_vgic_inject_irq(struct kvm *kvm, int cpuid, unsigned int irq_num, kvm_vgic_inject_irq() argument
1643 void kvm_vgic_destroy(struct kvm *kvm) kvm_vgic_destroy() argument
1681 int vgic_init(struct kvm *kvm) vgic_init() argument
1771 static int init_vgic_model(struct kvm *kvm, int type) init_vgic_model() argument
1792 int kvm_vgic_create(struct kvm *kvm, u32 type) kvm_vgic_create() argument
1856 static int vgic_ioaddr_overlap(struct kvm *kvm) vgic_ioaddr_overlap() argument
1869 static int vgic_ioaddr_assign(struct kvm *kvm, phys_addr_t *ioaddr, vgic_ioaddr_assign() argument
1906 int kvm_vgic_addr(struct kvm *kvm, unsigned long type, u64 *addr, bool write) kvm_vgic_addr() argument
2143 int kvm_irq_map_gsi(struct kvm *kvm, kvm_irq_map_gsi() argument
2150 int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin) kvm_irq_map_chip_pin() argument
2155 int kvm_set_irq(struct kvm *kvm, int irq_source_id, kvm_set_irq() argument
2168 kvm_set_msi(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm, int irq_source_id, int level, bool line_status) kvm_set_msi() argument
/linux-4.1.27/arch/powerpc/include/asm/
H A Dkvm_book3s_64.h418 static inline void note_hpte_modification(struct kvm *kvm, note_hpte_modification() argument
431 static inline struct kvm_memslots *kvm_memslots_raw(struct kvm *kvm) kvm_memslots_raw() argument
H A Dkvm_ppc.h300 static inline bool is_kvmppc_hv_enabled(struct kvm *kvm) is_kvmppc_hv_enabled() argument
453 static inline int kvm_vm_ioctl_xics_irq(struct kvm *kvm, kvm_vm_ioctl_xics_irq() argument
H A Dkvm_host.h63 static inline void kvm_arch_mmu_notifier_invalidate_page(struct kvm *kvm, kvm_arch_mmu_notifier_invalidate_page() argument
178 struct kvm *kvm; member in struct:kvmppc_spapr_tce_table
288 struct kvm *kvm; member in struct:kvmppc_vcore
700 static inline void kvm_arch_sync_events(struct kvm *kvm) {} kvm_arch_memslots_updated() argument
701 static inline void kvm_arch_memslots_updated(struct kvm *kvm) {} kvm_arch_flush_shadow_all() argument
702 static inline void kvm_arch_flush_shadow_all(struct kvm *kvm) {} kvm_arch_sched_in() argument
/linux-4.1.27/arch/arm64/include/asm/
H A Dkvm_host.h186 static inline void kvm_arch_mmu_notifier_invalidate_page(struct kvm *kvm, kvm_arch_mmu_notifier_invalidate_page() argument
249 static inline void kvm_arch_sync_events(struct kvm *kvm) {} kvm_arch_vcpu_uninit() argument
/linux-4.1.27/tools/perf/
H A Dbuiltin-kvm.c73 static const char *get_exit_reason(struct perf_kvm_stat *kvm, get_exit_reason() argument
88 void exit_event_decode_key(struct perf_kvm_stat *kvm, exit_event_decode_key() argument
98 static bool register_kvm_events_ops(struct perf_kvm_stat *kvm) register_kvm_events_ops() argument
119 static void init_kvm_event_record(struct perf_kvm_stat *kvm) init_kvm_event_record() argument
196 static struct kvm_event *find_create_kvm_event(struct perf_kvm_stat *kvm, find_create_kvm_event() argument
218 static bool handle_begin_event(struct perf_kvm_stat *kvm, handle_begin_event() argument
265 static bool is_child_event(struct perf_kvm_stat *kvm, is_child_event() argument
287 static bool handle_child_event(struct perf_kvm_stat *kvm, handle_child_event() argument
313 static bool handle_end_event(struct perf_kvm_stat *kvm, handle_end_event() argument
396 static bool handle_kvm_event(struct perf_kvm_stat *kvm, handle_kvm_event() argument
462 static bool select_key(struct perf_kvm_stat *kvm) select_key() argument
499 update_total_count(struct perf_kvm_stat *kvm, struct kvm_event *event) update_total_count() argument
512 static void sort_result(struct perf_kvm_stat *kvm) sort_result() argument
541 static void print_vcpu_info(struct perf_kvm_stat *kvm) print_vcpu_info() argument
576 static void print_result(struct perf_kvm_stat *kvm) print_result() argument
632 struct perf_kvm_stat *kvm = container_of(tool, struct perf_kvm_stat, tool); process_lost_event() local
639 static bool skip_sample(struct perf_kvm_stat *kvm, skip_sample() argument
655 struct perf_kvm_stat *kvm = container_of(tool, struct perf_kvm_stat, process_sample_event() local
674 static int cpu_isa_config(struct perf_kvm_stat *kvm) cpu_isa_config() argument
717 static s64 perf_kvm__mmap_read_idx(struct perf_kvm_stat *kvm, int idx, perf_kvm__mmap_read_idx() argument
759 static int perf_kvm__mmap_read(struct perf_kvm_stat *kvm) perf_kvm__mmap_read() argument
809 static int perf_kvm__timerfd_create(struct perf_kvm_stat *kvm) perf_kvm__timerfd_create() argument
836 static int perf_kvm__handle_timerfd(struct perf_kvm_stat *kvm) perf_kvm__handle_timerfd() argument
900 static int kvm_events_live_report(struct perf_kvm_stat *kvm) kvm_events_live_report() argument
977 static int kvm_live_open_events(struct perf_kvm_stat *kvm) kvm_live_open_events() argument
1038 static int read_events(struct perf_kvm_stat *kvm) read_events() argument
1076 static int parse_target_str(struct perf_kvm_stat *kvm) parse_target_str() argument
1089 static int kvm_events_report_vcpu(struct perf_kvm_stat *kvm) kvm_events_report_vcpu() argument
1129 kvm_events_record(struct perf_kvm_stat *kvm, int argc, const char **argv) kvm_events_record() argument
1195 kvm_events_report(struct perf_kvm_stat *kvm, int argc, const char **argv) kvm_events_report() argument
1282 static int kvm_events_live(struct perf_kvm_stat *kvm, kvm_events_live() argument
1428 struct perf_kvm_stat kvm = { kvm_cmd_stat() local
/linux-4.1.27/include/linux/
H A Dkvm_host.h217 struct kvm *kvm; member in struct:kvm_vcpu
346 struct kvm { struct
414 static inline struct kvm_vcpu *kvm_get_vcpu(struct kvm *kvm, int i) kvm_get_vcpu() argument
426 static inline struct kvm_vcpu *kvm_get_vcpu_by_id(struct kvm *kvm, int id) kvm_get_vcpu_by_id() argument
451 static inline void kvm_vcpu_request_scan_ioapic(struct kvm *kvm) kvm_vcpu_request_scan_ioapic() argument
476 static inline struct kvm_memslots *kvm_memslots(struct kvm *kvm) kvm_memslots() argument
679 static inline void kvm_arch_free_vm(struct kvm *kvm) kvm_arch_free_vm() argument
690 static inline void kvm_arch_register_noncoherent_dma(struct kvm *kvm) kvm_arch_register_noncoherent_dma() argument
694 static inline void kvm_arch_unregister_noncoherent_dma(struct kvm *kvm) kvm_arch_unregister_noncoherent_dma() argument
698 static inline bool kvm_arch_has_noncoherent_dma(struct kvm *kvm) kvm_arch_has_noncoherent_dma() argument
721 static inline bool kvm_arch_intc_initialized(struct kvm *kvm) kvm_arch_intc_initialized() argument
764 static inline int kvm_iommu_map_pages(struct kvm *kvm, kvm_iommu_map_pages() argument
770 static inline void kvm_iommu_unmap_pages(struct kvm *kvm, kvm_iommu_unmap_pages() argument
853 static inline int memslot_id(struct kvm *kvm, gfn_t gfn) memslot_id() argument
881 static inline bool kvm_is_error_gpa(struct kvm *kvm, gpa_t gpa) kvm_is_error_gpa() argument
908 static inline int mmu_notifier_retry(struct kvm *kvm, unsigned long mmu_seq) mmu_notifier_retry() argument
948 static inline void kvm_free_irq_routing(struct kvm *kvm) {} kvm_free_irq_routing() argument
964 static inline int kvm_irqfd(struct kvm *kvm, struct kvm_irqfd *args) kvm_irqfd() argument
969 static inline void kvm_irqfd_release(struct kvm *kvm) {} kvm_irqfd_release() argument
974 static inline void kvm_eventfd_init(struct kvm *kvm) {} kvm_eventfd_init() argument
976 static inline int kvm_irqfd(struct kvm *kvm, struct kvm_irqfd *args) kvm_irqfd() argument
981 static inline void kvm_irqfd_release(struct kvm *kvm) {} kvm_irqfd_release() argument
984 static inline void kvm_irq_routing_update(struct kvm *kvm) kvm_irq_routing_update() argument
989 static inline int kvm_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args) kvm_ioeventfd() argument
1034 struct kvm *kvm; member in struct:kvm_device
/linux-4.1.27/arch/mips/include/asm/
H A Dkvm_host.h839 static inline void kvm_arch_sync_events(struct kvm *kvm) {} kvm_arch_free_memslot() argument
840 static inline void kvm_arch_free_memslot(struct kvm *kvm, kvm_arch_free_memslot() argument
842 static inline void kvm_arch_memslots_updated(struct kvm *kvm) {} kvm_arch_flush_shadow_all() argument
843 static inline void kvm_arch_flush_shadow_all(struct kvm *kvm) {} kvm_arch_flush_shadow_memslot() argument
844 static inline void kvm_arch_flush_shadow_memslot(struct kvm *kvm, kvm_arch_flush_shadow_memslot() argument
/linux-4.1.27/arch/s390/include/asm/
H A Dkvm_host.h632 static inline void kvm_arch_sync_events(struct kvm *kvm) {} kvm_arch_vcpu_uninit() argument
635 static inline void kvm_arch_free_memslot(struct kvm *kvm, kvm_arch_free_memslot() argument
637 static inline void kvm_arch_memslots_updated(struct kvm *kvm) {} kvm_arch_flush_shadow_all() argument
638 static inline void kvm_arch_flush_shadow_all(struct kvm *kvm) {} kvm_arch_flush_shadow_memslot() argument
639 static inline void kvm_arch_flush_shadow_memslot(struct kvm *kvm, kvm_arch_flush_shadow_memslot() argument

Completed in 1630 milliseconds