Lines Matching +full:- +full:path
7 * See the COPYING file in the top-level directory.
12 #include "libqtest-single.h"
37 args = g_strdup_printf("-machine %s -cpu %s " in test_plug_with_device_add()
38 "-smp 1,sockets=%u,cores=%u,threads=%u,maxcpus=%u", in test_plug_with_device_add()
39 td->machine, td->cpu_model, in test_plug_with_device_add()
40 td->sockets, td->cores, td->threads, td->maxcpus); in test_plug_with_device_add()
43 resp = qtest_qmp(qts, "{ 'execute': 'query-hotpluggable-cpus'}"); in test_plug_with_device_add()
52 if (qdict_haskey(cpu, "qom-path")) { in test_plug_with_device_add()
60 qtest_qmp_device_add_qdict(qts, td->device_model, props); in test_plug_with_device_add()
76 g_free(pc->machine); in test_data_free()
77 g_free(pc->device_model); in test_data_free()
83 char *path; in add_pc_test_case() local
86 if (!g_str_has_prefix(mname, "pc-")) { in add_pc_test_case()
90 data->machine = g_strdup(mname); in add_pc_test_case()
91 data->cpu_model = "Haswell"; /* 1.3+ theoretically */ in add_pc_test_case()
92 data->device_model = g_strdup_printf("%s-%s-cpu", data->cpu_model, in add_pc_test_case()
94 data->sockets = 1; in add_pc_test_case()
95 data->cores = 3; in add_pc_test_case()
96 data->threads = 2; in add_pc_test_case()
97 data->maxcpus = data->sockets * data->cores * data->threads; in add_pc_test_case()
99 path = g_strdup_printf("cpu-plug/%s/device-add/%ux%ux%u&maxcpus=%u", in add_pc_test_case()
100 mname, data->sockets, data->cores, in add_pc_test_case()
101 data->threads, data->maxcpus); in add_pc_test_case()
102 qtest_add_data_func_full(path, data, test_plug_with_device_add, in add_pc_test_case()
104 g_free(path); in add_pc_test_case()
109 char *path; in add_pseries_test_case() local
112 if (!g_str_has_prefix(mname, "pseries-") || in add_pseries_test_case()
113 (g_str_has_prefix(mname, "pseries-2.") && atoi(&mname[10]) < 7)) { in add_pseries_test_case()
117 data->machine = g_strdup(mname); in add_pseries_test_case()
118 data->cpu_model = "power8_v2.0"; in add_pseries_test_case()
119 data->device_model = g_strdup("power8_v2.0-spapr-cpu-core"); in add_pseries_test_case()
120 data->sockets = 2; in add_pseries_test_case()
121 data->cores = 3; in add_pseries_test_case()
122 data->threads = 1; in add_pseries_test_case()
123 data->maxcpus = data->sockets * data->cores * data->threads; in add_pseries_test_case()
125 path = g_strdup_printf("cpu-plug/%s/device-add/%ux%ux%u&maxcpus=%u", in add_pseries_test_case()
126 mname, data->sockets, data->cores, in add_pseries_test_case()
127 data->threads, data->maxcpus); in add_pseries_test_case()
128 qtest_add_data_func_full(path, data, test_plug_with_device_add, in add_pseries_test_case()
130 g_free(path); in add_pseries_test_case()
135 char *path; in add_s390x_test_case() local
138 if (!g_str_has_prefix(mname, "s390-ccw-virtio-")) { in add_s390x_test_case()
143 data->machine = g_strdup(mname); in add_s390x_test_case()
144 data->cpu_model = "qemu"; in add_s390x_test_case()
145 data->device_model = g_strdup("qemu-s390x-cpu"); in add_s390x_test_case()
146 data->sockets = 1; in add_s390x_test_case()
147 data->cores = 3; in add_s390x_test_case()
148 data->threads = 1; in add_s390x_test_case()
149 data->maxcpus = data->sockets * data->cores * data->threads; in add_s390x_test_case()
151 path = g_strdup_printf("cpu-plug/%s/device-add/%ux%ux%u&maxcpus=%u", in add_s390x_test_case()
152 mname, data->sockets, data->cores, in add_s390x_test_case()
153 data->threads, data->maxcpus); in add_s390x_test_case()
154 qtest_add_data_func_full(path, data, test_plug_with_device_add, in add_s390x_test_case()
156 g_free(path); in add_s390x_test_case()
161 char *path; in add_loongarch_test_case() local
165 data->machine = g_strdup(mname); in add_loongarch_test_case()
166 data->cpu_model = "la464"; in add_loongarch_test_case()
167 data->device_model = g_strdup("la464-loongarch-cpu"); in add_loongarch_test_case()
168 data->sockets = 1; in add_loongarch_test_case()
169 data->cores = 3; in add_loongarch_test_case()
170 data->threads = 1; in add_loongarch_test_case()
171 data->maxcpus = data->sockets * data->cores * data->threads; in add_loongarch_test_case()
173 path = g_strdup_printf("cpu-plug/%s/device-add/%ux%ux%u&maxcpus=%u", in add_loongarch_test_case()
174 mname, data->sockets, data->cores, in add_loongarch_test_case()
175 data->threads, data->maxcpus); in add_loongarch_test_case()
176 qtest_add_data_func_full(path, data, test_plug_with_device_add, in add_loongarch_test_case()
178 g_free(path); in add_loongarch_test_case()