Home
last modified time | relevance | path

Searched refs:type (Results 1 – 19 of 19) sorted by relevance

/virt/kvm/arm/
Dtrace.h93 TP_PROTO(unsigned int type, int vcpu_idx, int irq_num, int level),
94 TP_ARGS(type, vcpu_idx, irq_num, level),
97 __field( unsigned int, type )
104 __entry->type = type;
111 (__entry->type == KVM_ARM_IRQ_TYPE_CPU) ? "CPU" :
112 (__entry->type == KVM_ARM_IRQ_TYPE_PPI) ? "VGIC PPI" :
113 (__entry->type == KVM_ARM_IRQ_TYPE_SPI) ? "VGIC SPI" : "UNKNOWN",
114 __entry->type, __entry->vcpu_idx, __entry->irq_num, __entry->level)
Dpsci.c188 static void kvm_prepare_system_event(struct kvm_vcpu *vcpu, u32 type) in kvm_prepare_system_event() argument
207 vcpu->run->system_event.type = type; in kvm_prepare_system_event()
Dpmu.c484 u64 type, enable, reg; in kvm_pmu_software_increment() local
493 type = __vcpu_sys_reg(vcpu, PMEVTYPER0_EL0 + i) in kvm_pmu_software_increment()
495 if ((type == ARMV8_PMUV3_PERFCTR_SW_INCR) in kvm_pmu_software_increment()
572 attr.type = PERF_TYPE_RAW; in kvm_pmu_create_perf_event()
Darm.c106 int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) in kvm_arch_init_vm() argument
110 ret = kvm_arm_setup_stage2(kvm, type); in kvm_arch_init_vm()
1260 unsigned long dev_id, type; in kvm_vm_ioctl_set_device_addr() local
1264 type = (dev_addr->id & KVM_ARM_DEVICE_TYPE_MASK) >> in kvm_vm_ioctl_set_device_addr()
1271 return kvm_vgic_addr(kvm, type, &dev_addr->addr, true); in kvm_vm_ioctl_set_device_addr()
/virt/kvm/arm/vgic/
Dvgic-init.c71 int kvm_vgic_create(struct kvm *kvm, u32 type) in kvm_vgic_create() argument
85 if (type == KVM_DEV_TYPE_ARM_VGIC_V2 && in kvm_vgic_create()
107 if (type == KVM_DEV_TYPE_ARM_VGIC_V2) in kvm_vgic_create()
118 kvm->arch.vgic.vgic_model = type; in kvm_vgic_create()
122 if (type == KVM_DEV_TYPE_ARM_VGIC_V2) in kvm_vgic_create()
247 if (kvm_vgic_global_state.type == VGIC_V2) in kvm_vgic_vcpu_enable()
483 if (kvm_vgic_global_state.type == VGIC_V2) in kvm_vgic_init_cpu_hardware()
509 switch (gic_kvm_info->type) { in kvm_vgic_hyp_init()
Dvgic-debug.c180 char *type; in print_irq_state() local
182 type = "SGI"; in print_irq_state()
184 type = "PPI"; in print_irq_state()
186 type = "SPI"; in print_irq_state()
188 type = "LPI"; in print_irq_state()
202 type, irq->intid, in print_irq_state()
Dvgic-kvm-device.c56 int kvm_vgic_addr(struct kvm *kvm, unsigned long type, u64 *addr, bool write) in kvm_vgic_addr() argument
64 switch (type) { in kvm_vgic_addr()
164 unsigned long type = (unsigned long)attr->attr; in vgic_set_common_attr() local
169 r = kvm_vgic_addr(dev->kvm, type, &addr, true); in vgic_set_common_attr()
227 unsigned long type = (unsigned long)attr->attr; in vgic_get_common_attr() local
229 r = kvm_vgic_addr(dev->kvm, type, &addr, false); in vgic_get_common_attr()
249 static int vgic_create(struct kvm_device *dev, u32 type) in vgic_create() argument
251 return kvm_vgic_create(dev->kvm, type); in vgic_create()
259 int kvm_register_vgic_device(unsigned long type) in kvm_register_vgic_device() argument
263 switch (type) { in kvm_register_vgic_device()
Dvgic-irqfd.c44 switch (ue->type) { in kvm_set_routing_entry()
110 if (e->type == KVM_IRQ_ROUTING_MSI && vgic_has_its(kvm) && level) { in kvm_arch_set_irq_inatomic()
134 entries[i].type = KVM_IRQ_ROUTING_IRQCHIP; in kvm_vgic_setup_default_irq_routing()
Dvgic.c721 if (kvm_vgic_global_state.type == VGIC_V2) in vgic_fold_lr_state()
733 if (kvm_vgic_global_state.type == VGIC_V2) in vgic_populate_lr()
741 if (kvm_vgic_global_state.type == VGIC_V2) in vgic_clear_lr()
749 if (kvm_vgic_global_state.type == VGIC_V2) in vgic_set_underflow()
920 if (kvm_vgic_global_state.type == VGIC_V2) in kvm_vgic_load()
931 if (kvm_vgic_global_state.type == VGIC_V2) in kvm_vgic_put()
942 if (kvm_vgic_global_state.type == VGIC_V2) in kvm_vgic_vmcr_sync()
Dvgic-mmio.c654 if (kvm_vgic_global_state.type == VGIC_V2) in vgic_set_vmcr()
662 if (kvm_vgic_global_state.type == VGIC_V2) in vgic_get_vmcr()
892 enum vgic_type type) in vgic_register_dist_iodev() argument
898 switch (type) { in vgic_register_dist_iodev()
Dvgic-mmio-v2.c358 if (kvm_vgic_global_state.type == VGIC_V2) { in vgic_mmio_read_apr()
384 if (kvm_vgic_global_state.type == VGIC_V2) { in vgic_mmio_write_apr()
Dvgic-its.c900 u64 indirect_ptr, type = GITS_BASER_TYPE(baser); in vgic_its_check_id() local
907 switch (type) { in vgic_its_check_id()
1876 static int vgic_its_create(struct kvm_device *dev, u32 type) in vgic_its_create() argument
1880 if (type != KVM_DEV_TYPE_ARM_VGIC_ITS) in vgic_its_create()
2695 unsigned long type = (unsigned long)attr->attr; in vgic_its_set_attr() local
2698 if (type != KVM_VGIC_ITS_ADDR_TYPE) in vgic_its_set_attr()
2734 unsigned long type = (unsigned long)attr->attr; in vgic_its_get_attr() local
2736 if (type != KVM_VGIC_ITS_ADDR_TYPE) in vgic_its_get_attr()
Dvgic.h246 int kvm_register_vgic_device(unsigned long type);
Dvgic-v2.c412 kvm_vgic_global_state.type = VGIC_V2; in vgic_v2_probe()
Dvgic-v3.c645 kvm_vgic_global_state.type = VGIC_V3; in vgic_v3_probe()
/virt/kvm/
Dirqchip.c142 if (ei->type != KVM_IRQ_ROUTING_IRQCHIP || in setup_routing_entry()
143 ue->type != KVM_IRQ_ROUTING_IRQCHIP || in setup_routing_entry()
148 e->type = ue->type; in setup_routing_entry()
152 if (e->type == KVM_IRQ_ROUTING_IRQCHIP) in setup_routing_entry()
203 switch (ue->type) { in kvm_set_irq_routing()
Dkvm_main.c156 static void kvm_uevent_notify_change(unsigned int type, struct kvm *kvm);
679 static struct kvm *kvm_create_vm(unsigned long type) in kvm_create_vm() argument
722 r = kvm_arch_init_vm(kvm, type); in kvm_create_vm()
3125 int kvm_register_device_ops(struct kvm_device_ops *ops, u32 type) in kvm_register_device_ops() argument
3127 if (type >= ARRAY_SIZE(kvm_device_ops_table)) in kvm_register_device_ops()
3130 if (kvm_device_ops_table[type] != NULL) in kvm_register_device_ops()
3133 kvm_device_ops_table[type] = ops; in kvm_register_device_ops()
3137 void kvm_unregister_device_ops(u32 type) in kvm_unregister_device_ops() argument
3139 if (kvm_device_ops_table[type] != NULL) in kvm_unregister_device_ops()
3140 kvm_device_ops_table[type] = NULL; in kvm_unregister_device_ops()
[all …]
Dvfio.c385 static int kvm_vfio_create(struct kvm_device *dev, u32 type);
395 static int kvm_vfio_create(struct kvm_device *dev, u32 type) in kvm_vfio_create() argument
Deventfd.c257 irqfd->irq_entry.type = 0; in irqfd_update()
547 irqfd->irq_entry.type = 0; in kvm_irqfd_deassign()