/qemu/system/ |
H A D | memory_mapping.c | 25 static void memory_mapping_list_add_mapping_sorted(MemoryMappingList *list, in memory_mapping_list_add_mapping_sorted() argument 30 QTAILQ_FOREACH(p, &list->head, next) { in memory_mapping_list_add_mapping_sorted() 36 QTAILQ_INSERT_TAIL(&list->head, mapping, next); in memory_mapping_list_add_mapping_sorted() 39 static void create_new_memory_mapping(MemoryMappingList *list, in create_new_memory_mapping() argument 50 list->last_mapping = memory_mapping; in create_new_memory_mapping() 51 list->num++; in create_new_memory_mapping() 52 memory_mapping_list_add_mapping_sorted(list, memory_mapping); in create_new_memory_mapping() 107 void memory_mapping_list_add_merge_sorted(MemoryMappingList *list, in memory_mapping_list_add_merge_sorted() argument 114 if (QTAILQ_EMPTY(&list->head)) { in memory_mapping_list_add_merge_sorted() 115 create_new_memory_mapping(list, phys_addr, virt_addr, length); in memory_mapping_list_add_merge_sorted() [all …]
|
H A D | bootdevice.c | 59 error_setg(errp, "no function defined to set boot device list for" in qemu_boot_set() 252 char *list = NULL; in get_boot_devices_list() local 263 list[total-1] = '\n'; in get_boot_devices_list() 266 list = g_realloc(list, total + len); in get_boot_devices_list() 267 memcpy(&list[total], bootpath, len); in get_boot_devices_list() 276 list[total-1] = '\n'; in get_boot_devices_list() 277 list = g_realloc(list, total + 5); in get_boot_devices_list() 278 memcpy(&list[total], "HALT", 5); in get_boot_devices_list() 281 return list; in get_boot_devices_list() 307 /* check whether bootindex is present in fw_boot_order list */ in device_set_bootindex() [all …]
|
/qemu/util/ |
H A D | notify.c | 19 void notifier_list_init(NotifierList *list) in notifier_list_init() argument 21 QLIST_INIT(&list->notifiers); in notifier_list_init() 24 void notifier_list_add(NotifierList *list, Notifier *notifier) in notifier_list_add() argument 26 QLIST_INSERT_HEAD(&list->notifiers, notifier, node); in notifier_list_add() 34 void notifier_list_notify(NotifierList *list, void *data) in notifier_list_notify() argument 38 QLIST_FOREACH_SAFE(notifier, &list->notifiers, node, next) { in notifier_list_notify() 43 bool notifier_list_empty(NotifierList *list) in notifier_list_empty() argument 45 return QLIST_EMPTY(&list->notifiers); in notifier_list_empty() 48 void notifier_with_return_list_init(NotifierWithReturnList *list) in notifier_with_return_list_init() argument 50 QLIST_INIT(&list->notifiers); in notifier_with_return_list_init() [all …]
|
H A D | qemu-option.c | 127 const QemuOptDesc *desc = find_desc_by_name(opts->list->desc, name); in find_default_by_name() 173 * Print the list of options available in the given list. If 174 * @print_caption is true, a caption (including the list name, if it 179 void qemu_opts_print_help(QemuOptsList *list, bool print_caption) in qemu_opts_print_help() argument 185 assert(list); in qemu_opts_print_help() 186 desc = list->desc; in qemu_opts_print_help() 203 if (list->name) { in qemu_opts_print_help() 204 printf("%s options:\n", list->name); in qemu_opts_print_help() 209 if (list->name) { in qemu_opts_print_help() 210 printf("There are no options for %s.\n", list->name); in qemu_opts_print_help() [all …]
|
H A D | reserved-region.c | 24 GList *resv_region_list_insert(GList *list, ReservedRegion *reg) in resv_region_list_insert() argument 31 for (l = list; l ; ) { in resv_region_list_insert() 35 /* Skip all list elements strictly less than range to add */ in resv_region_list_insert() 39 return g_list_insert_before(list, l, reg); in resv_region_list_insert() 45 list = g_list_delete_link(list, l); in resv_region_list_insert() 49 l = list; in resv_region_list_insert() 57 return g_list_insert_before(list, l, reg); in resv_region_list_insert() 75 list = g_list_insert_before(list, l, new_reg); in resv_region_list_insert() 76 return g_list_insert_before(list, l, reg); in resv_region_list_insert() 81 return g_list_insert_before(list, l, reg); in resv_region_list_insert() [all …]
|
H A D | nvdimm-utils.c | 7 GSList **list = opaque; in nvdimm_device_list() local 10 *list = g_slist_append(*list, DEVICE(obj)); in nvdimm_device_list() 18 * inquire NVDIMM devices and link them into the list which is 21 * Note: it is the caller's responsibility to free the list to avoid 26 GSList *list = NULL; in nvdimm_get_device_list() local 28 object_child_foreach(qdev_get_machine(), nvdimm_device_list, &list); in nvdimm_get_device_list() 29 return list; in nvdimm_get_device_list()
|
H A D | range.c | 37 /* Insert @data into @list of ranges; caller no longer owns @data */ 38 GList *range_list_insert(GList *list, Range *data) in range_list_insert() argument 44 /* Skip all list elements strictly less than data */ in range_list_insert() 45 for (l = list; l && range_compare(l->data, data) < 0; l = l->next) { in range_list_insert() 49 /* Rest of the list (if any) is strictly greater than @data */ in range_list_insert() 50 return g_list_insert_before(list, l, data); in range_list_insert() 53 /* Current list element overlaps @data, merge the two */ in range_list_insert() 57 /* Merge any subsequent list elements that now also overlap */ in range_list_insert() 63 new_l = g_list_delete_link(list, l->next); in range_list_insert() 64 assert(new_l == list); in range_list_insert() [all …]
|
H A D | qemu-config.c | 44 QemuOptsList *list; in qemu_find_opts_singleton() local 47 list = qemu_find_opts(group); in qemu_find_opts_singleton() 48 assert(list); in qemu_find_opts_singleton() 49 opts = qemu_opts_find(list, NULL); in qemu_find_opts_singleton() 51 opts = qemu_opts_create(list, NULL, 0, &error_abort); in qemu_find_opts_singleton() 61 void qemu_add_drive_opts(QemuOptsList *list) in qemu_add_drive_opts() argument 66 entries--; /* keep list NULL terminated */ in qemu_add_drive_opts() 69 drive_config_groups[i] = list; in qemu_add_drive_opts() 77 void qemu_add_opts(QemuOptsList *list) in qemu_add_opts() argument 82 entries--; /* keep list NULL terminated */ in qemu_add_opts() [all …]
|
/qemu/target/i386/ |
H A D | arch_memory_mapping.c | 20 static void walk_pte(MemoryMappingList *list, AddressSpace *as, in walk_pte() argument 44 memory_mapping_list_add_merge_sorted(list, start_paddr, in walk_pte() 50 static void walk_pte2(MemoryMappingList *list, AddressSpace *as, in walk_pte2() argument 74 memory_mapping_list_add_merge_sorted(list, start_paddr, in walk_pte2() 82 static void walk_pde(MemoryMappingList *list, AddressSpace *as, in walk_pde() argument 108 memory_mapping_list_add_merge_sorted(list, start_paddr, in walk_pde() 114 walk_pte(list, as, pte_start_addr, a20_mask, line_addr); in walk_pde() 119 static void walk_pde2(MemoryMappingList *list, AddressSpace *as, in walk_pde2() argument 150 memory_mapping_list_add_merge_sorted(list, start_paddr, in walk_pde2() 156 walk_pte2(list, as, pte_start_addr, a20_mask, line_addr); in walk_pde2() [all …]
|
/qemu/chardev/ |
H A D | char-hmp-cmds.c | 148 ChardevBackendInfoList *list, *start; in chardev_add_completion() local 156 start = list = qmp_query_chardev_backends(NULL); in chardev_add_completion() 157 while (list) { in chardev_add_completion() 158 const char *chr_name = list->value->name; in chardev_add_completion() 163 list = list->next; in chardev_add_completion() 171 ChardevInfoList *list, *start; in chardev_remove_completion() local 179 start = list = qmp_query_chardev(NULL); in chardev_remove_completion() 180 while (list) { in chardev_remove_completion() 181 ChardevInfo *chr = list->value; in chardev_remove_completion() 186 list = list->next; in chardev_remove_completion() [all …]
|
/qemu/qapi/ |
H A D | opts-visitor.c | 25 LM_NONE, /* not traversing a list of repeated options */ 30 * Generating the next list link will consume the most 34 * Parsing a value into the list link will examine the 43 * Generating the next list link will consume the most 49 * Parsing a value into the list link will store the 58 * No more QemuOpt instance in the list. 79 /* The list currently being traversed with opts_start_list() / 80 * opts_next_list(). The list must have a struct element type in the 85 /* When parsing a list of repeating options as integers, values of the form 109 destroy_list(gpointer list) in destroy_list() argument [all …]
|
H A D | string-input-visitor.c | 23 /* no list parsing active / no list expected */ 47 /* List parsing state */ 52 void *list; member 63 static bool start_list(Visitor *v, const char *name, GenericList **list, in start_list() argument 69 siv->list = list; in start_list() 73 if (list) { in start_list() 74 *list = NULL; in start_list() 78 if (list) { in start_list() 79 *list = g_malloc0(size); in start_list() 114 error_setg(errp, "Fewer list elements expected"); in check_list() [all …]
|
/qemu/include/system/ |
H A D | memory_mapping.h | 58 * memory mapping's list. The region's virtual address starts with virt_addr, 59 * and is contiguous. The list is sorted by phys_addr. 61 void memory_mapping_list_add_merge_sorted(MemoryMappingList *list, 66 void memory_mapping_list_free(MemoryMappingList *list); 68 void memory_mapping_list_init(MemoryMappingList *list); 70 void guest_phys_blocks_free(GuestPhysBlockList *list); 71 void guest_phys_blocks_init(GuestPhysBlockList *list); 72 void guest_phys_blocks_append(GuestPhysBlockList *list); 74 bool qemu_get_guest_memory_mapping(MemoryMappingList *list, 79 void qemu_get_guest_simple_memory_mapping(MemoryMappingList *list, [all …]
|
/qemu/include/qapi/ |
H A D | util.h | 34 * For any GenericList @list, insert @element at the front. 39 #define QAPI_LIST_PREPEND(list, element) do { \ argument 40 typeof(list) _tmp = g_malloc(sizeof(*(list))); \ 42 _tmp->next = (list); \ 43 (list) = _tmp; \ 48 * list element), insert @element at the back and update the tail. 60 * For any GenericList @list, return its length. 62 #define QAPI_LIST_LENGTH(list) \ argument 65 typeof_strip_qual(list) _tail; \ 66 for (_tail = list; _tail != NULL; _tail = _tail->next) { \
|
/qemu/include/qemu/ |
H A D | timer.h | 139 * Determines whether a clock's default timer list 143 * the timer list. The return value may be outdated by the time it is acted 146 * Returns: true if the clock's default timer list 155 * Determines whether a clock's default timer list 158 * Returns: true if the clock's default timer list has 198 * list linked to the clock, or qemu_notify() if none. 221 * Run all the timers associated with the default timer list 231 * Run all the timers associated with the default timer list 274 * @timer_list: the timer list to free 282 * @timer_list: the timer list to operate on [all …]
|
H A D | option.h | 69 bool merge_lists; /* Merge multiple uses of option into a single list? */ 82 * list of the valid values for a command line option (as defined 119 QemuOpts *qemu_opts_find(QemuOptsList *list, const char *id); 120 QemuOpts *qemu_opts_create(QemuOptsList *list, const char *id, 122 void qemu_opts_reset(QemuOptsList *list); 130 QemuOpts *qemu_opts_parse_noisily(QemuOptsList *list, const char *params, 132 QemuOpts *qemu_opts_parse(QemuOptsList *list, const char *params, 134 QemuOpts *qemu_opts_from_qdict(QemuOptsList *list, const QDict *qdict, 137 QemuOptsList *list, bool del); 142 int qemu_opts_foreach(QemuOptsList *list, qemu_opts_loopfunc func, [all …]
|
H A D | notify.h | 35 void notifier_list_init(NotifierList *list); 37 void notifier_list_add(NotifierList *list, Notifier *notifier); 41 void notifier_list_notify(NotifierList *list, void *data); 43 bool notifier_list_empty(NotifierList *list); 68 void notifier_with_return_list_init(NotifierWithReturnList *list); 70 void notifier_with_return_list_add(NotifierWithReturnList *list, 75 int notifier_with_return_list_notify(NotifierWithReturnList *list,
|
/qemu/monitor/ |
H A D | qmp-cmds-control.c | 38 * Accept QMP capabilities in @list for @mon. 42 static bool qmp_caps_accept(MonitorQMP *mon, QMPCapabilityList *list, in qmp_caps_accept() argument 50 for (; list; list = list->next) { in qmp_caps_accept() 51 if (!mon->capab_offered[list->value]) { in qmp_caps_accept() 53 unavailable = g_string_new(QMPCapability_str(list->value)); in qmp_caps_accept() 56 QMPCapability_str(list->value)); in qmp_caps_accept() 59 capab[list->value] = true; in qmp_caps_accept() 111 CommandInfoList **list = opaque; in query_commands_cb() local 119 QAPI_LIST_PREPEND(*list, info); in query_commands_cb() 124 CommandInfoList *list = NULL; in qmp_query_commands() local [all …]
|
/qemu/tests/unit/ |
H A D | test-qemu-opts.c | 43 { /* end of list */ } 73 { /* end of list */ } 83 { /* end of list */ } 96 { /* end of list */ } 110 QemuOptsList *list; in test_find_unknown_opts() local 114 list = qemu_find_opts_err("unknown", &err); in test_find_unknown_opts() 115 g_assert(list == NULL); in test_find_unknown_opts() 121 QemuOptsList *list; in test_qemu_find_opts() local 124 list = qemu_find_opts("opts_list_01"); in test_qemu_find_opts() 125 g_assert(list != NULL); in test_qemu_find_opts() [all …]
|
/qemu/docs/interop/ |
H A D | qemu-ga.rst | 33 If an allowed RPCs list is defined in the configuration, then all 34 RPCs will be blocked by default, except for the allowed list. 36 If a blocked RPCs list is defined in the configuration, then all 37 RPCs will be allowed by default, except for the blocked list. 40 then all RPCs will be blocked by default, then the allowed list will 41 be applied, followed by the blocked list. 103 .. option:: -b, --block-rpcs=LIST 105 Comma-separated list of RPCs to disable (no spaces, use ``--block-rpcs=help`` 106 to list available RPCs). 108 .. option:: -a, --allow-rpcs=LIST [all …]
|
/qemu/qom/ |
H A D | qom-hmp-cmds.c | 23 ObjectPropertyInfoList *list; in hmp_qom_list() local 31 list = qmp_qom_list(path, &err); in hmp_qom_list() 33 ObjectPropertyInfoList *start = list; in hmp_qom_list() 34 while (list != NULL) { in hmp_qom_list() 35 ObjectPropertyInfo *value = list->value; in hmp_qom_list() 39 list = list->next; in hmp_qom_list() 176 GSList *list, *elt; in object_add_completion() local 185 list = elt = object_class_get_list(TYPE_USER_CREATABLE, false); in object_add_completion() 195 g_slist_free(list); in object_add_completion() 200 ObjectPropertyInfoList *list, *start; in object_del_completion() local [all …]
|
/qemu/hw/virtio/ |
H A D | iothread-vq-mapping.c | 14 iothread_vq_mapping_validate(IOThreadVirtQueueMappingList *list, uint16_t in iothread_vq_mapping_validate() argument 21 for (IOThreadVirtQueueMappingList *node = list; node; node = node->next) { in iothread_vq_mapping_validate() 37 if (node != list) { in iothread_vq_mapping_validate() 38 if (!!node->value->vqs != !!list->value->vqs) { in iothread_vq_mapping_validate() 61 if (list->value->vqs) { in iothread_vq_mapping_validate() 76 IOThreadVirtQueueMappingList *list, in iothread_vq_mapping_apply() argument 85 if (!iothread_vq_mapping_validate(list, num_queues, errp)) { in iothread_vq_mapping_apply() 89 for (node = list; node; node = node->next) { in iothread_vq_mapping_apply() 93 for (node = list; node; node = node->next) { in iothread_vq_mapping_apply() 122 void iothread_vq_mapping_cleanup(IOThreadVirtQueueMappingList *list) in iothread_vq_mapping_cleanup() argument [all …]
|
H A D | virtio-hmp-cmds.c | 64 strList *list = features->dev_features; in hmp_virtio_dump_features() local 65 if (list) { in hmp_virtio_dump_features() 66 while (list) { in hmp_virtio_dump_features() 67 monitor_printf(mon, "\t%s", list->value); in hmp_virtio_dump_features() 68 list = list->next; in hmp_virtio_dump_features() 69 if (list != NULL) { in hmp_virtio_dump_features() 85 VirtioInfoList *list = qmp_x_query_virtio(&err); in hmp_virtio_query() local 93 if (list == NULL) { in hmp_virtio_query() 98 node = list; in hmp_virtio_query() 104 qapi_free_VirtioInfoList(list); in hmp_virtio_query() [all …]
|
/qemu/hw/display/ |
H A D | virtio-gpu-udmabuf.c | 32 struct udmabuf_create_list *list; in virtio_gpu_create_udmabuf() local 42 list = g_malloc0(sizeof(struct udmabuf_create_list) + in virtio_gpu_create_udmabuf() 51 g_free(list); in virtio_gpu_create_udmabuf() 55 list->list[i].memfd = rb->fd; in virtio_gpu_create_udmabuf() 56 list->list[i].offset = offset; in virtio_gpu_create_udmabuf() 57 list->list[i].size = res->iov[i].iov_len; in virtio_gpu_create_udmabuf() 60 list->count = res->iov_cnt; in virtio_gpu_create_udmabuf() 61 list->flags = UDMABUF_FLAGS_CLOEXEC; in virtio_gpu_create_udmabuf() 63 res->dmabuf_fd = ioctl(udmabuf, UDMABUF_CREATE_LIST, list); in virtio_gpu_create_udmabuf() 68 g_free(list); in virtio_gpu_create_udmabuf()
|
/qemu/scripts/ |
H A D | compare-machine-types.py | 34 from typing import Optional, List, Dict, Generator, Tuple, Union, Any, Set 84 def set_implementations(self, implementations: List['Driver']) -> None: 92 def set_implementations(self, implementations: List[Driver]) -> None: 108 self.cached: Dict[str, List[Dict[str, Any]]] = {} 112 self.cached[driver] = self.vm.cmd('device-list-properties', 144 self.cached: Dict[str, List[Dict[str, Any]]] = {} 148 self.cached[driver] = self.vm.cmd('qom-list-properties', 177 qom_all_types = vm.cmd('qom-list-types', abstract=True) 188 imps = vm.cmd('qom-list-types', implements=drv.name) 204 def get_implementations(self, driver: str) -> List[str]: [all …]
|