/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | vgic_init.c | 28 int gic_fd; member 81 v.gic_fd = kvm_create_device(v.vm, gic_dev_type); in vm_gic_create_with_vcpus() 92 v.gic_fd = kvm_create_device(v.vm, gic_dev_type); in vm_gic_create_barebones() 100 close(v->gic_fd); in vm_gic_destroy() 155 kvm_has_device_attr(v->gic_fd, KVM_DEV_ARM_VGIC_GRP_ADDR, dist.attr); in subtest_dist_rdist() 157 kvm_has_device_attr(v->gic_fd, KVM_DEV_ARM_VGIC_GRP_ADDR, rdist.attr); in subtest_dist_rdist() 160 ret = __kvm_has_device_attr(v->gic_fd, KVM_DEV_ARM_VGIC_GRP_ADDR, -1); in subtest_dist_rdist() 165 ret = __kvm_device_attr_set(v->gic_fd, KVM_DEV_ARM_VGIC_GRP_ADDR, in subtest_dist_rdist() 170 ret = __kvm_device_attr_set(v->gic_fd, KVM_DEV_ARM_VGIC_GRP_ADDR, in subtest_dist_rdist() 176 ret = __kvm_device_attr_set(v->gic_fd, KVM_DEV_ARM_VGIC_GRP_ADDR, in subtest_dist_rdist() [all …]
|
H A D | vgic_irq.c | 528 void kvm_irq_set_level_info_check(int gic_fd, uint32_t intid, int level, in kvm_irq_set_level_info_check() argument 532 kvm_irq_set_level_info(gic_fd, intid, level); in kvm_irq_set_level_info_check() 534 int ret = _kvm_irq_set_level_info(gic_fd, intid, level); in kvm_irq_set_level_info_check() 582 static void kvm_irq_write_ispendr_check(int gic_fd, uint32_t intid, in kvm_irq_write_ispendr_check() argument 594 kvm_irq_write_ispendr(gic_fd, intid, vcpu); in kvm_irq_write_ispendr_check() 654 static void run_guest_cmd(struct kvm_vcpu *vcpu, int gic_fd, in run_guest_cmd() argument 691 kvm_irq_set_level_info_check(gic_fd, i, 1, in run_guest_cmd() 701 kvm_irq_write_ispendr_check(gic_fd, i, vcpu, in run_guest_cmd() 706 kvm_irq_write_isactiver(gic_fd, i, vcpu); in run_guest_cmd() 734 int gic_fd; in test_vgic() local [all …]
|
H A D | arch_timer.c | 179 static int gic_fd; variable 207 gic_fd = vgic_v3_setup(vm, nr_vcpus, 64); in test_vm_create() 208 __TEST_REQUIRE(gic_fd >= 0, "Failed to create vgic-v3"); in test_vm_create() 218 close(gic_fd); in test_vm_cleanup()
|
H A D | vgic_lpi_stress.c | 30 static int gic_fd, its_fd; variable 217 gic_fd = vgic_v3_setup(vm, test_data.nr_cpus, 64); in setup_gic() 218 __TEST_REQUIRE(gic_fd >= 0, "Failed to create GICv3"); in setup_gic() 358 close(gic_fd); in destroy_vm()
|
H A D | vpmu_counter_access.c | 31 int gic_fd; member 438 vpmu_vm.gic_fd = vgic_v3_setup(vpmu_vm.vm, 1, 64); in create_vpmu_vm() 439 __TEST_REQUIRE(vpmu_vm.gic_fd >= 0, in create_vpmu_vm() 457 close(vpmu_vm.gic_fd); in destroy_vpmu_vm()
|
/linux/tools/testing/selftests/kvm/lib/aarch64/ |
H A D | vgic.c | 35 int gic_fd; in vgic_v3_setup() local 53 gic_fd = __kvm_create_device(vm, KVM_DEV_TYPE_ARM_VGIC_V3); in vgic_v3_setup() 54 if (gic_fd < 0) in vgic_v3_setup() 55 return gic_fd; in vgic_v3_setup() 57 kvm_device_attr_set(gic_fd, KVM_DEV_ARM_VGIC_GRP_NR_IRQS, 0, &nr_irqs); in vgic_v3_setup() 59 kvm_device_attr_set(gic_fd, KVM_DEV_ARM_VGIC_GRP_CTRL, in vgic_v3_setup() 63 kvm_device_attr_set(gic_fd, KVM_DEV_ARM_VGIC_GRP_ADDR, in vgic_v3_setup() 70 kvm_device_attr_set(gic_fd, KVM_DEV_ARM_VGIC_GRP_ADDR, in vgic_v3_setup() 76 kvm_device_attr_set(gic_fd, KVM_DEV_ARM_VGIC_GRP_CTRL, in vgic_v3_setup() 79 return gic_fd; in vgic_v3_setup() [all …]
|
/linux/tools/testing/selftests/kvm/include/aarch64/ |
H A D | vgic.h | 23 void kvm_irq_set_level_info(int gic_fd, uint32_t intid, int level); 24 int _kvm_irq_set_level_info(int gic_fd, uint32_t intid, int level); 30 void kvm_irq_write_ispendr(int gic_fd, uint32_t intid, struct kvm_vcpu *vcpu); 31 void kvm_irq_write_isactiver(int gic_fd, uint32_t intid, struct kvm_vcpu *vcpu);
|
/linux/tools/testing/selftests/kvm/ |
H A D | dirty_log_perf_test.c | 26 static int gic_fd; variable 34 gic_fd = vgic_v3_setup(vm, nr_vcpus, 64); in arch_setup_vm() 39 if (gic_fd > 0) in arch_cleanup_vm() 40 close(gic_fd); in arch_cleanup_vm()
|