Searched refs:reg_list (Results 1 – 2 of 2) sorted by relevance
/tools/testing/selftests/kvm/aarch64/ |
D | get-reg-list.c | 37 static struct kvm_reg_list *reg_list; variable 63 for ((i) = 0; (i) < reg_list->n; ++(i)) 67 if (!filter_reg(reg_list->reg[i])) 71 if (!find_reg(reg_list->reg, reg_list->n, blessed_reg[i])) 75 if (!find_reg(blessed_reg, blessed_n, reg_list->reg[i])) 321 tmp = calloc(1, sizeof(*tmp) + reg_list->n * sizeof(__u64)); in core_reg_fixup() 323 for (i = 0; i < reg_list->n; ++i) { in core_reg_fixup() 324 id = reg_list->reg[i]; in core_reg_fixup() 362 free(reg_list); in core_reg_fixup() 363 reg_list = tmp; in core_reg_fixup() [all …]
|
/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 1623 struct kvm_reg_list reg_list_n = { .n = 0 }, *reg_list; in vcpu_get_reg_list() local 1628 reg_list = calloc(1, sizeof(*reg_list) + reg_list_n.n * sizeof(__u64)); in vcpu_get_reg_list() 1629 reg_list->n = reg_list_n.n; in vcpu_get_reg_list() 1630 vcpu_ioctl(vm, vcpuid, KVM_GET_REG_LIST, reg_list); in vcpu_get_reg_list() 1631 return reg_list; in vcpu_get_reg_list()
|