/virt/kvm/arm/vgic/ |
D | vgic.c | 62 unsigned long flags; in vgic_get_lpi() local 64 raw_spin_lock_irqsave(&dist->lpi_list_lock, flags); in vgic_get_lpi() 80 raw_spin_unlock_irqrestore(&dist->lpi_list_lock, flags); in vgic_get_lpi() 141 unsigned long flags; in vgic_put_irq() local 146 raw_spin_lock_irqsave(&dist->lpi_list_lock, flags); in vgic_put_irq() 148 raw_spin_unlock_irqrestore(&dist->lpi_list_lock, flags); in vgic_put_irq() 155 unsigned long flags; in vgic_flush_pending_lpis() local 157 raw_spin_lock_irqsave(&vgic_cpu->ap_list_lock, flags); in vgic_flush_pending_lpis() 169 raw_spin_unlock_irqrestore(&vgic_cpu->ap_list_lock, flags); in vgic_flush_pending_lpis() 335 unsigned long flags) in vgic_queue_irq_unlock() argument [all …]
|
D | vgic-mmio.c | 67 unsigned long flags; in vgic_mmio_write_group() local 72 raw_spin_lock_irqsave(&irq->irq_lock, flags); in vgic_mmio_write_group() 74 vgic_queue_irq_unlock(vcpu->kvm, irq, flags); in vgic_mmio_write_group() 110 unsigned long flags; in vgic_mmio_write_senable() local 115 raw_spin_lock_irqsave(&irq->irq_lock, flags); in vgic_mmio_write_senable() 133 vgic_queue_irq_unlock(vcpu->kvm, irq, flags); in vgic_mmio_write_senable() 145 unsigned long flags; in vgic_mmio_write_cenable() local 150 raw_spin_lock_irqsave(&irq->irq_lock, flags); in vgic_mmio_write_cenable() 154 raw_spin_unlock_irqrestore(&irq->irq_lock, flags); in vgic_mmio_write_cenable() 169 unsigned long flags; in vgic_mmio_read_pending() local [all …]
|
D | vgic-mmio-v2.c | 118 unsigned long flags; in vgic_mmio_write_sgir() local 142 raw_spin_lock_irqsave(&irq->irq_lock, flags); in vgic_mmio_write_sgir() 146 vgic_queue_irq_unlock(source_vcpu->kvm, irq, flags); in vgic_mmio_write_sgir() 176 unsigned long flags; in vgic_mmio_write_target() local 186 raw_spin_lock_irqsave(&irq->irq_lock, flags); in vgic_mmio_write_target() 192 raw_spin_unlock_irqrestore(&irq->irq_lock, flags); in vgic_mmio_write_target() 220 unsigned long flags; in vgic_mmio_write_sgipendc() local 225 raw_spin_lock_irqsave(&irq->irq_lock, flags); in vgic_mmio_write_sgipendc() 231 raw_spin_unlock_irqrestore(&irq->irq_lock, flags); in vgic_mmio_write_sgipendc() 242 unsigned long flags; in vgic_mmio_write_sgipends() local [all …]
|
D | vgic-irqfd.c | 58 e->msi.flags = ue->flags; in kvm_set_routing_entry() 75 msi->flags = e->msi.flags; in kvm_populate_msi()
|
D | vgic-its.c | 44 unsigned long flags; in vgic_add_lpi() local 65 raw_spin_lock_irqsave(&dist->lpi_list_lock, flags); in vgic_add_lpi() 93 raw_spin_unlock_irqrestore(&dist->lpi_list_lock, flags); in vgic_add_lpi() 279 unsigned long flags; in update_lpi_config() local 287 raw_spin_lock_irqsave(&irq->irq_lock, flags); in update_lpi_config() 294 vgic_queue_irq_unlock(kvm, irq, flags); in update_lpi_config() 299 raw_spin_unlock_irqrestore(&irq->irq_lock, flags); in update_lpi_config() 316 unsigned long flags; in vgic_copy_lpi_list() local 332 raw_spin_lock_irqsave(&dist->lpi_list_lock, flags); in vgic_copy_lpi_list() 341 raw_spin_unlock_irqrestore(&dist->lpi_list_lock, flags); in vgic_copy_lpi_list() [all …]
|
D | vgic-mmio-v3.c | 153 unsigned long flags; in vgic_mmio_write_irouter() local 164 raw_spin_lock_irqsave(&irq->irq_lock, flags); in vgic_mmio_write_irouter() 170 raw_spin_unlock_irqrestore(&irq->irq_lock, flags); in vgic_mmio_write_irouter() 276 unsigned long flags; in vgic_v3_uaccess_write_pending() local 281 raw_spin_lock_irqsave(&irq->irq_lock, flags); in vgic_v3_uaccess_write_pending() 289 vgic_queue_irq_unlock(vcpu->kvm, irq, flags); in vgic_v3_uaccess_write_pending() 292 raw_spin_unlock_irqrestore(&irq->irq_lock, flags); in vgic_v3_uaccess_write_pending() 895 unsigned long flags; in vgic_v3_dispatch_sgi() local 934 raw_spin_lock_irqsave(&irq->irq_lock, flags); in vgic_v3_dispatch_sgi() 943 vgic_queue_irq_unlock(vcpu->kvm, irq, flags); in vgic_v3_dispatch_sgi() [all …]
|
D | vgic-debug.c | 224 unsigned long flags; in vgic_debug_show() local 243 raw_spin_lock_irqsave(&irq->irq_lock, flags); in vgic_debug_show() 245 raw_spin_unlock_irqrestore(&irq->irq_lock, flags); in vgic_debug_show()
|
D | vgic-v3.c | 322 unsigned long flags; in vgic_v3_lpi_sync_pending_status() local 341 raw_spin_lock_irqsave(&irq->irq_lock, flags); in vgic_v3_lpi_sync_pending_status() 343 raw_spin_unlock_irqrestore(&irq->irq_lock, flags); in vgic_v3_lpi_sync_pending_status() 347 vgic_queue_irq_unlock(vcpu->kvm, irq, flags); in vgic_v3_lpi_sync_pending_status()
|
D | vgic-v4.c | 241 .flags = irq_entry->msi.flags, in vgic_get_its()
|
D | vgic-kvm-device.c | 113 u8 flags = (*addr & KVM_VGIC_V3_RDIST_FLAGS_MASK) in kvm_vgic_addr() local 116 if (!count || flags) in kvm_vgic_addr()
|
D | vgic.h | 170 unsigned long flags);
|
/virt/kvm/ |
D | eventfd.c | 189 __poll_t flags = key_to_poll(key); in irqfd_wakeup() local 195 if (flags & EPOLLIN) { in irqfd_wakeup() 209 if (flags & EPOLLHUP) { in irqfd_wakeup() 322 if (args->flags & KVM_IRQFD_FLAG_RESAMPLE) { in kvm_irqfd_assign() 569 if (args->flags & ~(KVM_IRQFD_FLAG_DEASSIGN | KVM_IRQFD_FLAG_RESAMPLE)) in kvm_irqfd() 572 if (args->flags & KVM_IRQFD_FLAG_DEASSIGN) in kvm_irqfd() 776 static enum kvm_bus ioeventfd_bus_from_flags(__u32 flags) in ioeventfd_bus_from_flags() argument 778 if (flags & KVM_IOEVENTFD_FLAG_PIO) in ioeventfd_bus_from_flags() 780 if (flags & KVM_IOEVENTFD_FLAG_VIRTIO_CCW_NOTIFY) in ioeventfd_bus_from_flags() 811 if (args->flags & KVM_IOEVENTFD_FLAG_DATAMATCH) in kvm_assign_ioeventfd_idx() [all …]
|
D | irqchip.c | 53 if (!irqchip_in_kernel(kvm) || (msi->flags & ~KVM_MSI_VALID_DEVID)) in kvm_send_userspace_msi() 59 route.msi.flags = msi->flags; in kvm_send_userspace_msi() 172 unsigned flags) in kvm_set_irq_routing() argument 205 if (ue->flags & ~KVM_MSI_VALID_DEVID) in kvm_set_irq_routing() 209 if (ue->flags) in kvm_set_irq_routing()
|
D | kvm_main.c | 935 if (mem->flags & ~valid_flags) in check_memory_region_flags() 1033 new.flags = mem->flags; in __kvm_set_memory_region() 1041 ((new.flags ^ old.flags) & KVM_MEM_READONLY)) in __kvm_set_memory_region() 1046 else if (new.flags != old.flags) in __kvm_set_memory_region() 1059 new.flags = 0; in __kvm_set_memory_region() 1075 if (!(new.flags & KVM_MEM_LOG_DIRTY_PAGES)) in __kvm_set_memory_region() 1087 if ((new.flags & KVM_MEM_LOG_DIRTY_PAGES) && !new.dirty_bitmap) { in __kvm_set_memory_region() 1099 slot->flags |= KVM_MEMSLOT_INVALID; in __kvm_set_memory_region() 1390 memslot->flags & KVM_MEMSLOT_INVALID) in kvm_is_visible_gfn() 1423 return slot->flags & KVM_MEM_READONLY; in memslot_is_readonly() [all …]
|
/virt/kvm/arm/ |
D | mmu.c | 41 static bool is_iomap(unsigned long flags) in is_iomap() argument 43 return flags & KVM_S2PTE_FLAG_IS_IOMAP; in is_iomap() 48 return memslot->dirty_bitmap && !(memslot->flags & KVM_MEM_READONLY); in memslot_is_logging() 1223 unsigned long flags) in stage2_set_pte() argument 1228 bool iomap = flags & KVM_S2PTE_FLAG_IS_IOMAP; in stage2_set_pte() 1229 bool logging_active = flags & KVM_S2_FLAG_LOGGING_ACTIVE; in stage2_set_pte() 1684 unsigned long vma_pagesize, flags = 0; in user_mem_abort() local 1752 flags |= KVM_S2PTE_FLAG_IS_IOMAP; in user_mem_abort() 1759 flags |= KVM_S2_FLAG_LOGGING_ACTIVE; in user_mem_abort() 1769 if (exec_fault && is_iomap(flags)) in user_mem_abort() [all …]
|
D | arch_timer.c | 341 unsigned long flags; in timer_save_state() local 346 local_irq_save(flags); in timer_save_state() 378 local_irq_restore(flags); in timer_save_state() 420 unsigned long flags; in timer_restore_state() local 425 local_irq_save(flags); in timer_restore_state() 449 local_irq_restore(flags); in timer_restore_state()
|