/qemu/tests/qtest/ |
H A D | numa-test.c | 97 QDict *cpu, *props; in test_query_cpus() local 105 props = qdict_get_qdict(cpu, "props"); in test_query_cpus() 107 node = qdict_get_int(props, "node-id"); in test_query_cpus() 139 QDict *cpu, *props; in pc_numa_cpu() local 144 props = qdict_get_qdict(cpu, "props"); in pc_numa_cpu() 147 node = qdict_get_int(props, "node-id"); in pc_numa_cpu() 192 QDict *cpu, *props; in spapr_numa_cpu() local 197 props = qdict_get_qdict(cpu, "props"); in spapr_numa_cpu() 236 QDict *cpu, *props; in aarch64_numa_cpu() local 241 props = qdict_get_qdict(cpu, "props"); in aarch64_numa_cpu() [all …]
|
H A D | sdhci-test.c | 98 check_specs_version(s, s->props.version); in test_registers() 99 check_capab_capareg(s, s->props.capab.reg); in test_registers() 101 check_capab_v3(s, s->props.version); in test_registers() 102 check_capab_sdma(s, s->props.capab.sdma); in test_registers() 103 check_capab_baseclock(s, s->props.baseclock); in test_registers()
|
H A D | arm-cpu-features.c | 121 QDict *props; in resp_get_feature() local 125 props = resp_get_props(resp); in resp_get_feature() 126 g_assert(qdict_get(props, feature)); in resp_get_feature() 127 return qdict_get_bool(props, feature); in resp_get_feature() 223 QDict *props; in resp_get_sve_vls() local 231 props = resp_get_props(resp); in resp_get_sve_vls() 233 for (e = qdict_first(props); e; e = qdict_next(props, e)) { in resp_get_sve_vls() 244 if (qdict_get_bool(props, e->key)) { in resp_get_sve_vls()
|
/qemu/target/i386/ |
H A D | cpu-sysemu.c | 39 static const char *props[] = { in x86_cpu_static_props() local 57 for (i = 0; props[i]; i++) { in x86_cpu_static_props() 58 qdict_put_null(d, props[i]); in x86_cpu_static_props() 81 qdict_put_obj(props, prop, value); in x86_cpu_expand_prop() 139 qdict = qobject_to(QDict, props); in object_apply_props() 168 if (props) { in x86_cpu_from_model() 197 QDict *props = NULL; in qmp_query_cpu_model_expansion() local 205 props = qdict_new(); in qmp_query_cpu_model_expansion() 207 ret->model->props = QOBJECT(props); in qmp_query_cpu_model_expansion() 213 x86_cpu_to_dict(xc, props); in qmp_query_cpu_model_expansion() [all …]
|
/qemu/hw/core/ |
H A D | machine.c | 819 if (props->has_die_id && !slot->props.has_die_id) { in machine_set_cpu_numa_node() 825 if (props->has_thread_id && props->thread_id != slot->props.thread_id) { in machine_set_cpu_numa_node() 829 if (props->has_core_id && props->core_id != slot->props.core_id) { in machine_set_cpu_numa_node() 834 props->module_id != slot->props.module_id) { in machine_set_cpu_numa_node() 839 props->cluster_id != slot->props.cluster_id) { in machine_set_cpu_numa_node() 843 if (props->has_die_id && props->die_id != slot->props.die_id) { in machine_set_cpu_numa_node() 847 if (props->has_socket_id && props->socket_id != slot->props.socket_id) { in machine_set_cpu_numa_node() 855 slot->props.node_id != props->node_id) { in machine_set_cpu_numa_node() 863 slot->props.node_id = props->node_id; in machine_set_cpu_numa_node() 864 slot->props.has_node_id = props->has_node_id; in machine_set_cpu_numa_node() [all …]
|
H A D | machine-qmp-cmds.c | 50 CpuInstanceProperties *props; in qmp_query_cpus_fast() local 51 props = g_malloc0(sizeof(*props)); in qmp_query_cpus_fast() 52 *props = mc->cpu_index_to_instance_props(ms, cpu->cpu_index); in qmp_query_cpus_fast() 53 value->props = props; in qmp_query_cpus_fast() 238 if (cpu->value->props && cpu->value->props->has_node_id && in qmp_x_query_numa() 239 cpu->value->props->node_id == i) { in qmp_x_query_numa()
|
H A D | qdev-properties.c | 143 uint32_t mask = qdev_get_prop_mask(props); in bit_prop_set() 197 uint64_t mask = qdev_get_prop_mask64(props); in bit64_prop_set() 754 if (!props) { in qdev_prop_walk() 757 while (props->name) { in qdev_prop_walk() 758 if (strcmp(props->name, name) == 0) { in qdev_prop_walk() 759 return props; in qdev_prop_walk() 761 props++; in qdev_prop_walk() 877 GPtrArray *props = global_props(); in qdev_find_global_prop() local 881 for (i = 0; i < props->len; i++) { in qdev_find_global_prop() 882 p = g_ptr_array_index(props, i); in qdev_find_global_prop() [all …]
|
/qemu/tests/unit/ |
H A D | test-qdev-global-props.c | 108 static GlobalProperty props[] = { in test_static_globalprop_subprocess() local 113 register_global_properties(props); in test_static_globalprop_subprocess() 220 static GlobalProperty props[] = { in test_dynamic_globalprop_subprocess() local 231 register_global_properties(props); in test_dynamic_globalprop_subprocess() 240 g_assert(props[0].used); in test_dynamic_globalprop_subprocess() 241 g_assert(props[1].used); in test_dynamic_globalprop_subprocess() 242 g_assert(!props[2].used); in test_dynamic_globalprop_subprocess() 243 g_assert(!props[3].used); in test_dynamic_globalprop_subprocess() 244 g_assert(!props[4].used); in test_dynamic_globalprop_subprocess() 245 g_assert(!props[5].used); in test_dynamic_globalprop_subprocess() [all …]
|
/qemu/tests/qtest/libqos/ |
H A D | ahci.c | 549 if (cmd->props->atapi && (cmd->xbytes == 0 || cmd->props->dma)) { in ahci_port_check_pio_sanity() 815 g_assert(props); in ahci_io() 840 AHCICommandProp *props = cmd->props; in command_header_init() local 879 if (cmd->props->lba28 || cmd->props->lba48) { in command_table_init() 908 g_assert(!(props->dma && props->pio) || props->atapi); in ahci_command_create() 909 g_assert(!(props->lba28 && props->lba48)); in ahci_command_create() 910 g_assert(!(props->read && props->write)); in ahci_command_create() 911 g_assert(!props->size || props->data); in ahci_command_create() 912 g_assert(!props->ncq || props->lba48); in ahci_command_create() 915 cmd->props = g_memdup2(props, sizeof(AHCICommandProp)); in ahci_command_create() [all …]
|
H A D | sdhci.c | 30 s->props.version = version; in set_qsdhci_fields() 31 s->props.baseclock = baseclock; in set_qsdhci_fields() 32 s->props.capab.sdma = sdma; in set_qsdhci_fields() 33 s->props.capab.reg = reg; in set_qsdhci_fields() 73 memcpy(&sdhci->sdhci.props, common, sizeof(QSDHCIProperties)); in qos_init_sdhci_mm()
|
/qemu/tests/avocado/ |
H A D | virtio_check_params.py | 45 def make_pattern(props): argument 46 pattern_items = [r'{0} = \w+'.format(prop) for prop in props] 52 props = None 69 props = dict() 72 props[p[0]] = p[1] 73 return query_ok, props, error 86 query_ok, props, error = self.query_virtqueue(vm, dev_type_name) 94 for prop_name, prop_val in props.items():
|
/qemu/hw/net/ |
H A D | e1000x_common.c | 298 e1000x_txd_props *props) in e1000x_read_tx_ctx_descr() argument 302 props->ipcss = d->lower_setup.ip_fields.ipcss; in e1000x_read_tx_ctx_descr() 303 props->ipcso = d->lower_setup.ip_fields.ipcso; in e1000x_read_tx_ctx_descr() 305 props->tucss = d->upper_setup.tcp_fields.tucss; in e1000x_read_tx_ctx_descr() 306 props->tucso = d->upper_setup.tcp_fields.tucso; in e1000x_read_tx_ctx_descr() 308 props->paylen = op & 0xfffff; in e1000x_read_tx_ctx_descr() 309 props->hdr_len = d->tcp_seg_setup.fields.hdr_len; in e1000x_read_tx_ctx_descr() 310 props->mss = le16_to_cpu(d->tcp_seg_setup.fields.mss); in e1000x_read_tx_ctx_descr() 311 props->ip = (op & E1000_TXD_CMD_IP) ? 1 : 0; in e1000x_read_tx_ctx_descr() 312 props->tcp = (op & E1000_TXD_CMD_TCP) ? 1 : 0; in e1000x_read_tx_ctx_descr() [all …]
|
H A D | e1000e.c | 569 VMSTATE_UINT8(props.ipcss, struct e1000e_tx), 570 VMSTATE_UINT8(props.ipcso, struct e1000e_tx), 571 VMSTATE_UINT16(props.ipcse, struct e1000e_tx), 572 VMSTATE_UINT8(props.tucss, struct e1000e_tx), 573 VMSTATE_UINT8(props.tucso, struct e1000e_tx), 574 VMSTATE_UINT16(props.tucse, struct e1000e_tx), 575 VMSTATE_UINT8(props.hdr_len, struct e1000e_tx), 576 VMSTATE_UINT16(props.mss, struct e1000e_tx), 578 VMSTATE_INT8(props.ip, struct e1000e_tx), 579 VMSTATE_INT8(props.tcp, struct e1000e_tx), [all …]
|
/qemu/hw/gpio/ |
H A D | aspeed_gpio.c | 629 const GPIOSetProperties *props; in aspeed_gpio_write_index_mode() local 641 props = &agc->props[set_idx]; in aspeed_gpio_write_index_mode() 653 reg_value &= props->output; in aspeed_gpio_write_index_mode() 675 reg_value = (reg_value | ~props->input) & props->output; in aspeed_gpio_write_index_mode() 796 props = &agc->props[reg->set_idx]; in aspeed_gpio_write() 800 data &= props->output; in aspeed_gpio_write() 818 data = (data | ~props->input) & props->output; in aspeed_gpio_write() 1027 const GPIOSetProperties *props = &agc->props[i]; in aspeed_gpio_realize() local 1028 uint32_t skip = ~(props->input | props->output); in aspeed_gpio_realize() 1049 const GPIOSetProperties *props = &agc->props[i]; in aspeed_gpio_init() local [all …]
|
/qemu/hw/block/ |
H A D | xen-block.c | 82 XenBlockVdev *vdev = &blockdev->props.vdev; in xen_block_find_free_vdev() 155 XenBlockVdev *vdev = &blockdev->props.vdev; in xen_block_get_name() 168 XenBlockVdev *vdev = &blockdev->props.vdev; in xen_block_disconnect() 179 XenBlockVdev *vdev = &blockdev->props.vdev; in xen_block_connect() 180 BlockConf *conf = &blockdev->props.conf; in xen_block_connect() 273 XenBlockVdev *vdev = &blockdev->props.vdev; in xen_block_unrealize() 295 XenBlockVdev *vdev = &blockdev->props.vdev; in xen_block_set_size() 296 BlockConf *conf = &blockdev->props.conf; in xen_block_set_size() 350 BlockConf *conf = &blockdev->props.conf; in xen_block_realize() 711 BlockConf *conf = &blockdev->props.conf; in xen_disk_realize() [all …]
|
/qemu/hw/riscv/ |
H A D | numa.c | 47 if (ms->possible_cpus->cpus[i].props.node_id != socket_id) { in riscv_socket_first_hartid() 67 if (ms->possible_cpus->cpus[i].props.node_id != socket_id) { in riscv_socket_last_hartid() 122 if (ms->possible_cpus->cpus[i].props.node_id != socket_id) { in riscv_socket_check_hartids() 203 return possible_cpus->cpus[cpu_index].props; in riscv_numa_cpu_index_to_props() 242 ms->possible_cpus->cpus[n].props.has_core_id = true; in riscv_numa_possible_cpu_arch_ids() 243 ms->possible_cpus->cpus[n].props.core_id = n; in riscv_numa_possible_cpu_arch_ids()
|
/qemu/target/riscv/ |
H A D | riscv-qmp-cmds.c | 130 static void riscv_cpuobj_validate_qdict_in(Object *obj, QObject *props, in riscv_cpuobj_validate_qdict_in() argument 139 visitor = qobject_input_visitor_new(props); in riscv_cpuobj_validate_qdict_in() 144 qdict_in = qobject_to(QDict, props); in riscv_cpuobj_validate_qdict_in() 200 if (model->props) { in qmp_query_cpu_model_expansion() 201 riscv_cpuobj_validate_qdict_in(obj, model->props, "model.props", in qmp_query_cpu_model_expansion() 236 expansion_info->model->props = QOBJECT(qdict_out); in qmp_query_cpu_model_expansion()
|
/qemu/hw/i386/ |
H A D | x86.c | 77 return possible_cpus->cpus[cpu_index].props; in x86_cpu_index_to_props() 125 ms->possible_cpus->cpus[i].props.has_socket_id = true; in x86_possible_cpu_arch_ids() 126 ms->possible_cpus->cpus[i].props.socket_id = topo_ids.pkg_id; in x86_possible_cpu_arch_ids() 128 ms->possible_cpus->cpus[i].props.has_die_id = true; in x86_possible_cpu_arch_ids() 129 ms->possible_cpus->cpus[i].props.die_id = topo_ids.die_id; in x86_possible_cpu_arch_ids() 131 ms->possible_cpus->cpus[i].props.has_core_id = true; in x86_possible_cpu_arch_ids() 132 ms->possible_cpus->cpus[i].props.core_id = topo_ids.core_id; in x86_possible_cpu_arch_ids() 133 ms->possible_cpus->cpus[i].props.has_thread_id = true; in x86_possible_cpu_arch_ids() 134 ms->possible_cpus->cpus[i].props.thread_id = topo_ids.smt_id; in x86_possible_cpu_arch_ids()
|
/qemu/qom/ |
H A D | object_interfaces.c | 144 QDict *props; in user_creatable_add_qapi() local 152 props = qobject_to(QDict, qobj); in user_creatable_add_qapi() 153 qdict_del(props, "qom-type"); in user_creatable_add_qapi() 154 qdict_del(props, "id"); in user_creatable_add_qapi() 156 v = qobject_input_visitor_new(QOBJECT(props)); in user_creatable_add_qapi() 158 options->id, props, v, errp); in user_creatable_add_qapi()
|
/qemu/hw/s390x/ |
H A D | cpu-topology.c | 294 CpuInstanceProperties *props; in s390_update_cpu_props() local 296 props = &ms->possible_cpus->cpus[cpu->env.core_id].props; in s390_update_cpu_props() 298 props->socket_id = cpu->env.socket_id; in s390_update_cpu_props() 299 props->book_id = cpu->env.book_id; in s390_update_cpu_props() 300 props->drawer_id = cpu->env.drawer_id; in s390_update_cpu_props()
|
H A D | s390-virtio-ccw.c | 554 return possible_cpus->cpus[cpu_index].props; in s390_cpu_index_to_props() 571 CpuInstanceProperties *props = &ms->possible_cpus->cpus[i].props; in s390_possible_cpu_arch_ids() local 577 props->has_core_id = true; in s390_possible_cpu_arch_ids() 578 props->core_id = i; in s390_possible_cpu_arch_ids() 579 props->has_socket_id = true; in s390_possible_cpu_arch_ids() 580 props->socket_id = s390_std_socket(i, &ms->smp); in s390_possible_cpu_arch_ids() 581 props->has_book_id = true; in s390_possible_cpu_arch_ids() 582 props->book_id = s390_std_book(i, &ms->smp); in s390_possible_cpu_arch_ids() 583 props->has_drawer_id = true; in s390_possible_cpu_arch_ids() 584 props->drawer_id = s390_std_drawer(i, &ms->smp); in s390_possible_cpu_arch_ids()
|
/qemu/target/loongarch/ |
H A D | loongarch-qmp-cmds.c | 64 if (model->props) { in qmp_query_cpu_model_expansion() 65 visitor = qobject_input_visitor_new(model->props); in qmp_query_cpu_model_expansion() 110 expansion_info->model->props = QOBJECT(qdict_out); in qmp_query_cpu_model_expansion()
|
/qemu/target/arm/ |
H A D | arm-qmp-cmds.c | 155 if (model->props) { in qmp_query_cpu_model_expansion() 159 visitor = qobject_input_visitor_new(model->props); in qmp_query_cpu_model_expansion() 166 qdict_in = qobject_to(QDict, model->props); in qmp_query_cpu_model_expansion() 215 expansion_info->model->props = QOBJECT(qdict_out); in qmp_query_cpu_model_expansion()
|
/qemu/docs/system/ |
H A D | cpu-hotplug.rst | 38 "props": { 48 "props": { 96 "props": { 108 "props": {
|
/qemu/docs/devel/ |
H A D | s390-cpu-topology.rst | 35 "props": { 50 "props": { 65 "props": { 80 "props": {
|