Home
last modified time | relevance | path

Searched defs:kvm (Results 1 – 23 of 23) sorted by relevance

/virt/kvm/
Deventfd.c36 kvm_arch_irqfd_allowed(struct kvm *kvm, struct kvm_irqfd *args) in kvm_arch_irqfd_allowed()
46 struct kvm *kvm = irqfd->kvm; in irqfd_inject() local
67 struct kvm *kvm; in irqfd_resampler_ack() local
90 struct kvm *kvm = resampler->kvm; in irqfd_resampler_shutdown() local
116 struct kvm *kvm = irqfd->kvm; in irqfd_shutdown() local
174 struct kvm *kvm, int irq_source_id, in kvm_arch_set_irq_inatomic()
191 struct kvm *kvm = irqfd->kvm; in irqfd_wakeup() local
243 static void irqfd_update(struct kvm *kvm, struct kvm_kernel_irqfd *irqfd) in irqfd_update()
274 struct kvm *kvm, unsigned int host_irq, in kvm_arch_update_irqfd_routing()
282 kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) in kvm_irqfd_assign()
[all …]
Dirqchip.c22 int kvm_irq_map_gsi(struct kvm *kvm, in kvm_irq_map_gsi()
41 int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin) in kvm_irq_map_chip_pin()
49 int kvm_send_userspace_msi(struct kvm *kvm, struct kvm_msi *msi) in kvm_send_userspace_msi()
71 int kvm_set_irq(struct kvm *kvm, int irq_source_id, u32 irq, int level, in kvm_set_irq()
120 void kvm_free_irq_routing(struct kvm *kvm) in kvm_free_irq_routing()
128 static int setup_routing_entry(struct kvm *kvm, in setup_routing_entry()
160 void __attribute__((weak)) kvm_arch_irq_routing_update(struct kvm *kvm) in kvm_arch_irq_routing_update()
164 bool __weak kvm_arch_can_set_irq_routing(struct kvm *kvm) in kvm_arch_can_set_irq_routing()
169 int kvm_set_irq_routing(struct kvm *kvm, in kvm_set_irq_routing()
Dkvm_main.c162 __weak void kvm_arch_mmu_notifier_invalidate_range(struct kvm *kvm, in kvm_arch_mmu_notifier_invalidate_range()
251 bool kvm_make_vcpus_request_mask(struct kvm *kvm, unsigned int req, in kvm_make_vcpus_request_mask()
281 bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req) in kvm_make_all_cpus_request()
295 void kvm_flush_remote_tlbs(struct kvm *kvm) in kvm_flush_remote_tlbs()
322 void kvm_reload_remote_mmus(struct kvm *kvm) in kvm_reload_remote_mmus()
327 int kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id) in kvm_vcpu_init()
390 struct kvm *kvm = mmu_notifier_to_kvm(mn); in kvm_mmu_notifier_invalidate_range() local
403 struct kvm *kvm = mmu_notifier_to_kvm(mn); in kvm_mmu_notifier_change_pte() local
420 struct kvm *kvm = mmu_notifier_to_kvm(mn); in kvm_mmu_notifier_invalidate_range_start() local
446 struct kvm *kvm = mmu_notifier_to_kvm(mn); in kvm_mmu_notifier_invalidate_range_end() local
[all …]
Dcoalesced_mmio.h21 struct kvm *kvm; member
34 static inline int kvm_coalesced_mmio_init(struct kvm *kvm) { return 0; } in kvm_coalesced_mmio_init()
35 static inline void kvm_coalesced_mmio_free(struct kvm *kvm) { } in kvm_coalesced_mmio_free()
Dcoalesced_mmio.c110 int kvm_coalesced_mmio_init(struct kvm *kvm) in kvm_coalesced_mmio_init()
135 void kvm_coalesced_mmio_free(struct kvm *kvm) in kvm_coalesced_mmio_free()
141 int kvm_vm_ioctl_register_coalesced_mmio(struct kvm *kvm, in kvm_vm_ioctl_register_coalesced_mmio()
177 int kvm_vm_ioctl_unregister_coalesced_mmio(struct kvm *kvm, in kvm_vm_ioctl_unregister_coalesced_mmio()
Dvfio.c80 static void kvm_vfio_group_set_kvm(struct vfio_group *group, struct kvm *kvm) in kvm_vfio_group_set_kvm()
137 static void kvm_spapr_tce_release_vfio_group(struct kvm *kvm, in kvm_spapr_tce_release_vfio_group()
/virt/kvm/arm/
Dmmu.c57 void kvm_flush_remote_tlbs(struct kvm *kvm) in kvm_flush_remote_tlbs()
62 static void kvm_tlb_flush_vmid_ipa(struct kvm *kvm, phys_addr_t ipa) in kvm_tlb_flush_vmid_ipa()
100 static void stage2_dissolve_pmd(struct kvm *kvm, phys_addr_t addr, pmd_t *pmd) in stage2_dissolve_pmd()
118 static void stage2_dissolve_pud(struct kvm *kvm, phys_addr_t addr, pud_t *pudp) in stage2_dissolve_pud()
160 static void clear_stage2_pgd_entry(struct kvm *kvm, pgd_t *pgd, phys_addr_t addr) in clear_stage2_pgd_entry()
169 static void clear_stage2_pud_entry(struct kvm *kvm, pud_t *pud, phys_addr_t addr) in clear_stage2_pud_entry()
179 static void clear_stage2_pmd_entry(struct kvm *kvm, pmd_t *pmd, phys_addr_t addr) in clear_stage2_pmd_entry()
242 static void unmap_stage2_ptes(struct kvm *kvm, pmd_t *pmd, in unmap_stage2_ptes()
268 static void unmap_stage2_pmds(struct kvm *kvm, pud_t *pud, in unmap_stage2_pmds()
297 static void unmap_stage2_puds(struct kvm *kvm, pgd_t *pgd, in unmap_stage2_puds()
[all …]
Darm.c106 int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) in kvm_arch_init_vm()
162 void kvm_arch_destroy_vm(struct kvm *kvm) in kvm_arch_destroy_vm()
180 int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) in kvm_vm_ioctl_check_extension()
248 void kvm_arch_free_vm(struct kvm *kvm) in kvm_arch_free_vm()
256 struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id) in kvm_arch_vcpu_create()
571 struct kvm *kvm = vcpu->kvm; in kvm_vcpu_first_run_init() local
611 bool kvm_arch_intc_initialized(struct kvm *kvm) in kvm_arch_intc_initialized()
616 void kvm_arm_halt_guest(struct kvm *kvm) in kvm_arm_halt_guest()
626 void kvm_arm_resume_guest(struct kvm *kvm) in kvm_arm_resume_guest()
909 int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_level, in kvm_vm_ioctl_irq_line()
[all …]
Dpsci.c97 struct kvm *kvm = source_vcpu->kvm; in kvm_psci_vcpu_on() local
155 struct kvm *kvm = vcpu->kvm; in kvm_psci_vcpu_affinity_info() local
223 struct kvm *kvm = vcpu->kvm; in kvm_psci_0_2_call() local
339 struct kvm *kvm = vcpu->kvm; in kvm_psci_0_1_call() local
Darch_timer.c74 static inline bool userspace_irqchip(struct kvm *kvm) in userspace_irqchip()
675 struct kvm *kvm = vcpu->kvm; in update_vtimer_cntvoff() local
1106 static void set_timer_irqs(struct kvm *kvm, int vtimer_irq, int ptimer_irq) in set_timer_irqs()
Dpmu.c772 static bool pmu_irq_is_valid(struct kvm *kvm, int irq) in pmu_irq_is_valid()
/virt/kvm/arm/vgic/
Dvgic-init.c52 void kvm_vgic_early_init(struct kvm *kvm) in kvm_vgic_early_init()
71 int kvm_vgic_create(struct kvm *kvm, u32 type) in kvm_vgic_create()
142 static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis) in kvm_vgic_dist_init()
264 int vgic_init(struct kvm *kvm) in vgic_init()
330 static void kvm_vgic_dist_destroy(struct kvm *kvm) in kvm_vgic_dist_destroy()
371 static void __kvm_vgic_destroy(struct kvm *kvm) in __kvm_vgic_destroy()
384 void kvm_vgic_destroy(struct kvm *kvm) in kvm_vgic_destroy()
397 int vgic_lazy_init(struct kvm *kvm) in vgic_lazy_init()
429 int kvm_vgic_map_resources(struct kvm *kvm) in kvm_vgic_map_resources()
Dvgic-its.c39 static struct vgic_irq *vgic_add_lpi(struct kvm *kvm, u32 intid, in vgic_add_lpi()
280 static int update_lpi_config(struct kvm *kvm, struct vgic_irq *irq, in update_lpi_config()
319 int vgic_copy_lpi_list(struct kvm *kvm, struct kvm_vcpu *vcpu, u32 **intid_ptr) in vgic_copy_lpi_list()
384 static void update_affinity_ite(struct kvm *kvm, struct its_ite *ite) in update_affinity_ite()
399 static void update_affinity_collection(struct kvm *kvm, struct vgic_its *its, in update_affinity_collection()
476 static unsigned long vgic_mmio_read_its_typer(struct kvm *kvm, in vgic_mmio_read_its_typer()
498 static unsigned long vgic_mmio_read_its_iidr(struct kvm *kvm, in vgic_mmio_read_its_iidr()
509 static int vgic_mmio_uaccess_write_its_iidr(struct kvm *kvm, in vgic_mmio_uaccess_write_its_iidr()
521 static unsigned long vgic_mmio_read_its_idregs(struct kvm *kvm, in vgic_mmio_read_its_idregs()
579 static struct vgic_irq *vgic_its_check_cache(struct kvm *kvm, phys_addr_t db, in vgic_its_check_cache()
[all …]
Dvgic-irqfd.c19 struct kvm *kvm, int irq_source_id, in vgic_irqfd_set_irq()
38 int kvm_set_routing_entry(struct kvm *kvm, in kvm_set_routing_entry()
86 struct kvm *kvm, int irq_source_id, in kvm_set_msi()
107 struct kvm *kvm, int irq_source_id, int level, in kvm_arch_set_irq_inatomic()
121 int kvm_vgic_setup_default_irq_routing(struct kvm *kvm) in kvm_vgic_setup_default_irq_routing()
Dvgic-debug.c55 static void iter_init(struct kvm *kvm, struct vgic_state_iter *iter, in iter_init()
85 struct kvm *kvm = (struct kvm *)s->private; in vgic_debug_start() local
113 struct kvm *kvm = (struct kvm *)s->private; in vgic_debug_next() local
125 struct kvm *kvm = (struct kvm *)s->private; in vgic_debug_stop() local
220 struct kvm *kvm = (struct kvm *)s->private; in vgic_debug_show() local
280 void vgic_debug_init(struct kvm *kvm) in vgic_debug_init()
286 void vgic_debug_destroy(struct kvm *kvm) in vgic_debug_destroy()
Dvgic-v4.c104 int vgic_v4_init(struct kvm *kvm) in vgic_v4_init()
173 void vgic_v4_teardown(struct kvm *kvm) in vgic_v4_teardown()
234 static struct vgic_its *vgic_get_its(struct kvm *kvm, in vgic_get_its()
248 int kvm_vgic_v4_set_forwarding(struct kvm *kvm, int virq, in kvm_vgic_v4_set_forwarding()
303 int kvm_vgic_v4_unset_forwarding(struct kvm *kvm, int virq, in kvm_vgic_v4_unset_forwarding()
Dvgic-v3.c314 int vgic_v3_lpi_sync_pending_status(struct kvm *kvm, struct vgic_irq *irq) in vgic_v3_lpi_sync_pending_status()
363 int vgic_v3_save_pending_tables(struct kvm *kvm) in vgic_v3_save_pending_tables()
420 bool vgic_v3_rdist_overlap(struct kvm *kvm, gpa_t base, size_t size) in vgic_v3_rdist_overlap()
437 bool vgic_v3_check_base(struct kvm *kvm) in vgic_v3_check_base()
482 struct vgic_redist_region *vgic_v3_rdist_region_from_index(struct kvm *kvm, in vgic_v3_rdist_region_from_index()
496 int vgic_v3_map_resources(struct kvm *kvm) in vgic_v3_map_resources()
Dvgic-kvm-device.c17 int vgic_check_ioaddr(struct kvm *kvm, phys_addr_t *ioaddr, in vgic_check_ioaddr()
32 static int vgic_check_type(struct kvm *kvm, int type_needed) in vgic_check_type()
56 int kvm_vgic_addr(struct kvm *kvm, unsigned long type, u64 *addr, bool write) in kvm_vgic_addr()
299 static void unlock_vcpus(struct kvm *kvm, int vcpu_lock_idx) in unlock_vcpus()
309 void unlock_all_vcpus(struct kvm *kvm) in unlock_all_vcpus()
315 bool lock_all_vcpus(struct kvm *kvm) in lock_all_vcpus()
Dvgic.c58 static struct vgic_irq *vgic_get_lpi(struct kvm *kvm, u32 intid) in vgic_get_lpi()
90 struct vgic_irq *vgic_get_irq(struct kvm *kvm, struct kvm_vcpu *vcpu, in vgic_get_irq()
125 void __vgic_put_lpi_locked(struct kvm *kvm, struct vgic_irq *irq) in __vgic_put_lpi_locked()
138 void vgic_put_irq(struct kvm *kvm, struct vgic_irq *irq) in vgic_put_irq()
334 bool vgic_queue_irq_unlock(struct kvm *kvm, struct vgic_irq *irq, in vgic_queue_irq_unlock()
437 int kvm_vgic_inject_irq(struct kvm *kvm, int cpuid, unsigned int intid, in kvm_vgic_inject_irq()
982 void vgic_kick_vcpus(struct kvm *kvm) in vgic_kick_vcpus()
Dvgic-mmio-v3.c39 bool vgic_has_its(struct kvm *kvm) in vgic_has_its()
49 bool vgic_supports_direct_msis(struct kvm *kvm) in vgic_supports_direct_msis()
625 struct kvm *kvm = vcpu->kvm; in vgic_register_redist_iodev() local
679 static int vgic_register_all_redist_iodevs(struct kvm *kvm) in vgic_register_all_redist_iodevs()
718 static int vgic_v3_insert_redist_region(struct kvm *kvm, uint32_t index, in vgic_v3_insert_redist_region()
784 int vgic_v3_set_redist_base(struct kvm *kvm, u32 index, u64 addr, u32 count) in vgic_v3_set_redist_base()
906 struct kvm *kvm = vcpu->kvm; in vgic_v3_dispatch_sgi() local
Dvgic.h286 vgic_v3_rd_region_size(struct kvm *kvm, struct vgic_redist_region *rdreg) in vgic_v3_rd_region_size()
299 static inline bool vgic_dist_overlap(struct kvm *kvm, gpa_t base, size_t size) in vgic_dist_overlap()
Dvgic-v2.c304 int vgic_v2_map_resources(struct kvm *kvm) in vgic_v2_map_resources()
Dvgic-mmio.c755 static bool check_region(const struct kvm *kvm, in check_region()
919 int vgic_register_dist_iodev(struct kvm *kvm, gpa_t dist_base_address, in vgic_register_dist_iodev()