Searched refs:nr_vcpus (Results 1 – 9 of 9) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/ |
D | demand_paging_test.c | 264 vm = create_vm(mode, nr_vcpus, guest_percpu_mem_size); in run_test() 273 vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads)); in run_test() 276 add_vcpus(vm, nr_vcpus, guest_percpu_mem_size); in run_test() 280 malloc(nr_vcpus * sizeof(*uffd_handler_threads)); in run_test() 283 uffd_args = malloc(nr_vcpus * sizeof(*uffd_args)); in run_test() 286 pipefds = malloc(sizeof(int) * nr_vcpus * 2); in run_test() 289 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test() 325 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test() 333 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test() 346 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test() [all …]
|
D | dirty_log_perf_test.c | 114 vm = create_vm(mode, nr_vcpus, guest_percpu_mem_size); in run_test() 118 guest_num_pages = (nr_vcpus * guest_percpu_mem_size) >> vm_get_page_shift(vm); in run_test() 129 vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads)); in run_test() 132 add_vcpus(vm, nr_vcpus, guest_percpu_mem_size); in run_test() 141 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test() 173 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) { in run_test() 208 for (vcpu_id = 0; vcpu_id < nr_vcpus; vcpu_id++) in run_test() 348 nr_vcpus = atoi(optarg); in main() 349 TEST_ASSERT(nr_vcpus > 0, in main() 351 TEST_ASSERT(nr_vcpus <= MAX_VCPUS, in main()
|
/kernel/linux/linux-5.10/drivers/virt/nitro_enclaves/ |
D | ne_pci_dev.h | 243 u64 nr_vcpus; member 268 u64 nr_vcpus; member
|
D | ne_misc_dev.h | 76 unsigned int nr_vcpus; member
|
D | ne_misc_dev.c | 720 ne_enclave->nr_vcpus++; in ne_add_vcpu_ioctl() 1041 if (!ne_enclave->nr_vcpus) { in ne_start_enclave_ioctl()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/ |
D | vgic-v4.c | 219 int i, nr_vcpus, ret; in vgic_v4_init() local 227 nr_vcpus = atomic_read(&kvm->online_vcpus); in vgic_v4_init() 229 dist->its_vm.vpes = kcalloc(nr_vcpus, sizeof(*dist->its_vm.vpes), in vgic_v4_init() 234 dist->its_vm.nr_vpes = nr_vcpus; in vgic_v4_init()
|
D | vgic-mmio-v2.c | 112 int nr_vcpus = atomic_read(&source_vcpu->kvm->online_vcpus); in vgic_mmio_write_sgir() local 124 targets = (1U << nr_vcpus) - 1; /* all, ... */ in vgic_mmio_write_sgir()
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/include/ |
D | perf_test_util.h | 41 static int nr_vcpus = 1; variable
|
/kernel/linux/linux-5.10/arch/s390/kvm/ |
D | vsie.c | 1311 int nr_vcpus; in get_vsie_page() local 1326 nr_vcpus = atomic_read(&kvm->online_vcpus); in get_vsie_page() 1329 if (kvm->arch.vsie.page_count < nr_vcpus) { in get_vsie_page() 1346 kvm->arch.vsie.next %= nr_vcpus; in get_vsie_page()
|