Home
last modified time | relevance | path

Searched +full:string +full:- +full:array +full:- +full:property (Results 1 – 25 of 43) sorted by relevance

12

/qemu/include/system/
H A Ddevice_tree.h22 * /proc/device-tree directory and return the corresponding binary blob
30 * name and compat string
33 * @compat: compatibility string
36 * returns a newly allocated NULL-terminated array of node paths.
38 * array contains the path of each node and the last element equals to
40 * returned array contains a single element equal to NULL. If an error
51 * node-name, ie. node-name and node-name@unit-address
56 * returns a newly allocated NULL-terminated array of node paths.
58 * array contains the path of each node and the last element equals to
60 * returned array contains a single element equal to NULL. If an error
[all …]
/qemu/docs/specs/
H A Dppc-spapr-hotplug.rst7 "logical"/para-virtual resources like memory, CPUs, and "physical"
8 host-bridges, which are generally managed by the host/hypervisor and provided
14 Dynamic-reconfiguration Connectors
25 A set of four Open Firmware device tree array properties are used to describe
26 the name/index/power-domain/type of each DRC allocated to a guest at
33 for hot plugged resources described under :ref:`guest-host-interface`.
35 The array properties are described below. Each entry/element in an array
37 of ``ibm,drc-indexes``:
39 ``ibm,drc-names``
40 -----------------
[all …]
H A Dppc-spapr-numa.rst11 Associativity and ibm,associativity property
12 --------------------------------------------
18 The format of the ibm,associativity property varies with the value of
19 bit 0 of byte 5 of the ibm,architecture-vec-5 property. The format with
21 with the value of one, makes ibm,associativity property represent the
28 Mem M1 ---- Proc P1 |
29 ----------------- | Socket S1 ---|
32 Mem M2 ---- Proc P2 | |
33 ----------------- | Socket S2 ---|
36 The ibm,associativity property for the processors would be:
[all …]
/qemu/hw/core/
H A Dqdev-properties.c2 #include "hw/qdev-properties.h"
4 #include "qapi/qapi-types-misc.h"
7 #include "qemu/error-report.h"
11 #include "qdev-prop-internal.h"
12 #include "qom/qom-qobject.h"
17 if (dev->id) { in qdev_prop_set_after_realize()
18 error_setg(errp, "Attempt to set property '%s' on device '%s' " in qdev_prop_set_after_realize()
19 "(type '%s') after it was realized", name, dev->id, in qdev_prop_set_after_realize()
22 error_setg(errp, "Attempt to set property '%s' on anonymous device " in qdev_prop_set_after_realize()
28 /* returns: true if property is allowed to be set, false otherwise */
[all …]
H A Dsysbus-fdt.c30 #include "hw/core/sysbus-fdt.h"
31 #include "qemu/error-report.h"
34 #include "hw/platform-bus.h"
35 #include "hw/vfio/vfio-platform.h"
36 #include "hw/vfio/vfio-calxeda-xgmac.h"
37 #include "hw/vfio/vfio-amd-xgbe.h"
38 #include "hw/vfio/vfio-region.h"
40 #include "hw/uefi/var-service-api.h"
74 * copies properties listed in an array from host device tree to
75 * guest device tree. If a non optional property is not found, the
[all …]
/qemu/system/
H A Ddevice_tree.c21 #include "qemu/error-report.h"
25 #include "qemu/guest-random.h"
29 #include "qemu/config-file.h"
30 #include "qapi/qapi-commands-machine.h"
92 if (dt_size > INT_MAX / 2 - 10000) { in load_device_tree()
133 #define SYSFS_DT_BASEDIR "/proc/device-tree"
140 * leaves (property files).
168 if (!g_strcmp0(de->d_name, ".") in read_fstree()
169 || !g_strcmp0(de->d_name, "..")) { in read_fstree()
173 tmpnam = g_strdup_printf("%s/%s", dirname, de->d_name); in read_fstree()
[all …]
H A Dbootdevice.c29 #include "qemu/error-report.h"
31 #include "hw/qdev-core.h"
81 * a-b: floppy disk drives in validate_bootdevices()
82 * c-f: IDE disk drives in validate_bootdevices()
83 * g-m: machine implementation dependent drives in validate_bootdevices()
84 * n-p: network devices in validate_bootdevices()
93 if (bitmap & (1 << (*p - 'a'))) { in validate_bootdevices()
97 bitmap |= 1 << (*p - 'a'); in validate_bootdevices()
108 /* First boot: use the one-time config */ in restore_boot_order()
129 if (i->bootindex == bootindex) { in check_boot_index()
[all …]
/qemu/include/hw/
H A Dqdev-core.h22 * -----------
27 * 2) device realization via the #DeviceState.realized property
31 * information to the caller and must be re-entrant.
36 * As an interim step, the #DeviceState.realized property can also be
57 * ---------------
62 * DeviceListener can save the QOpts passed to it for re-using it
73 DEV_NVECTORS_UNSPECIFIED = -1,
101 * struct DeviceClass - The base class for all devices.
104 * property is changed to %true.
106 * property is changed to %false.
[all …]
H A Dboards.h9 #include "qapi/qapi-types-machine.h"
15 #define TYPE_MACHINE_SUFFIX "-machine"
17 /* Machine class name that needs to be used for class-name-based machine
66 * created (eg by the user on the command line with -device).
123 * @arch_id - architecture-dependent CPU ID of present or possible CPU
124 * @cpu - pointer to corresponding CPU object if it's present on NULL otherwise
125 * @type - QOM class name of possible @cpu object
126 * @props - CPU object properties, initialized by board
127 * #vcpus_count - number of threads provided by @cpu object
139 * @len - number of @CPUArchId items in @cpus array
[all …]
/qemu/tests/qtest/
H A Dlibqtest.h14 * See the COPYING file in the top-level directory.
169 * @fds: array of file descriptors
229 * @fds: array of file descriptors
260 * @fds: array of file descriptors
368 * Removes non-matching events from the buffer that was set by
381 * Send HMP command to QEMU via QMP's human-monitor-command.
394 * Send HMP command to QEMU via QMP's human-monitor-command.
416 * @string: QOM path of a device.
418 * Associate qtest irqs with the GPIO-in pins of the device
419 * whose path is specified by @string.
[all …]
H A Dtest-x86-cpuid-compat.c6 #include "libqtest-single.h"
15 resp = qmp("{'execute': 'query-cpus-fast', 'arguments': {}}"); in get_cpu0_qom_path()
20 path = g_strdup(qdict_get_str(cpu0, "qom-path")); in get_cpu0_qom_path()
27 QDict *resp = qmp("{ 'execute': 'qom-get'," in qom_get()
29 " 'property': %s } }", in qom_get()
48 const char *property; member
59 qtest_start(args->cmdline); in test_cpuid_prop()
61 value = qobject_to(QNum, qom_get(path, args->property)); in test_cpuid_prop()
63 g_assert_cmpint(val, ==, args->expected_value); in test_cpuid_prop()
72 const char *property, int64_t expected_value) in add_cpuid_test() argument
[all …]
/qemu/docs/devel/
H A Dqapi-code-gen.rst7 Copyright (C) 2012-2016 Red Hat, Inc.
10 later. See the COPYING file in the top-level directory.
17 QAPI is a native C API within QEMU which provides management-level
19 users/processes, this interface is made available by a JSON-based wire
43 There are several kinds of types: simple types (a number of built-in
50 -------------
56 string, and extend to the end of the line.
67 syntax in an EBNF-like notation:
69 * Production rules look like ``non-terminal = expression``
79 * String literals enclosed in ``'single quotes'`` are terminal, and match
[all …]
H A Dclocks.rst5 ----------------
28 +---------+ +----------------------+ +--------------+
30 | | | +-------+ +-------+ | | +-------+ |
31 | |>>-+-->>|Clock 2| |Clock 3|>>--->>|Clock 6| |
32 +---------+ | | | (in) | | (out) | | | | (in) | |
33 | | +-------+ +-------+ | | +-------+ |
34 | | +-------+ | +--------------+
36 | | | (out) | | +--------------+
37 | | +-------+ | | Device D |
38 | | +-------+ | | +-------+ |
[all …]
/qemu/include/qom/
H A Dobject.h10 * See the COPYING file in the top-level directory.
17 #include "qapi/qapi-builtin-types.h"
35 * @obj: the object that owns the property
36 * @v: the visitor that contains the property data
37 * @name: the name of the property
38 * @opaque: the object property opaque
41 * Called when trying to get/set a property.
51 * @obj: the object that owns the property
52 * @opaque: the opaque registered with the property
53 * @part: the name of the property
[all …]
/qemu/python/qemu/qmp/
H A Dmodels.py8 # pylint: disable=too-few-public-methods
32 def _check_key(self, key: str) -> None:
36 def _check_value(self, key: str, type_: type, typestr: str) -> None:
43 def _check_member(self, key: str, type_: type, typestr: str) -> None:
47 @property
48 def _name(self) -> str:
51 def __repr__(self) -> str:
57 Defined in qmp-spec.rst, section "Server Greeting".
66 self.QMP: QMPGreeting # pylint: disable=invalid-name
71 def _asdict(self) -> Dict[str, object]:
[all …]
/qemu/hw/virtio/
H A Dvirtio-nsm.c8 * top-level directory.
13 #include "qemu/guest-random.h"
18 #include "hw/virtio/virtio-nsm.h"
19 #include "hw/virtio/cbor-helpers.h"
20 #include "standard-headers/linux/virtio_ids.h"
72 * key = String("Error"),
73 * value = String(error_name)
104 len = cbor_serialize(root, response->iov_base, response->iov_len); in error_response()
110 response->iov_len = len; in error_response()
129 * key = String("GetRandom"),
[all …]
/qemu/hw/misc/
H A Dxlnx-versal-trng.c2 * Non-crypto strength model of the True Random Number Generator
5 * Copyright (c) 2017-2020 Xilinx Inc.
29 #include "hw/misc/xlnx-versal-trng.h"
33 #include "qemu/error-report.h"
34 #include "qemu/guest-random.h"
38 #include "hw/qdev-properties.h"
140 return s->hw_version < 0x0200; in trng_older_than_v2()
145 if (ARRAY_FIELD_EX32(s->regs, RESET, VAL)) { in trng_in_reset()
148 if (ARRAY_FIELD_EX32(s->regs, CTRL, PRNGSRST)) { in trng_in_reset()
157 return ARRAY_FIELD_EX32(s->regs, CTRL, TSTMODE); in trng_test_enabled()
[all …]
/qemu/hw/nvram/
H A Dfw_cfg.c30 #include "system/address-spaces.h"
33 #include "hw/qdev-properties.h"
35 #include "migration/qemu-file-types.h"
38 #include "qemu/error-report.h"
40 #include "qemu/config-file.h"
43 #include "hw/acpi/aml-build.h"
75 * Returns: The stringified name if the selector refers to a well-known
140 filename, err->message); in read_splashfile()
187 if (current_machine->boot_config.has_splash_time) { in fw_cfg_bootsplash()
188 int64_t bst_val = current_machine->boot_config.splash_time; in fw_cfg_bootsplash()
[all …]
/qemu/include/hw/xen/interface/io/
H A Dblkif.h1 /* SPDX-License-Identifier: MIT */
5 * Unified block-device I/O interface for Xen guest OSes.
7 * Copyright (c) 2003-2004, Keir Fraser
18 * Front->back notifications: When enqueuing a new request, sending a
20 * hold-off mechanism provided by the ring macros). Backends must set
23 * Back->front notifications: When enqueuing a new response, sending a
25 * hold-off mechanism provided by the ring macros). Frontends must set
45 * of a properly formated node string, without loss of information.
63 *------------------ Backend Device Identification (PRIVATE) ------------------
72 * Values: string
[all …]
/qemu/scripts/qapi/
H A Dschema.py1 # -*- coding: utf-8 -*-
5 # Copyright (c) 2015-2019 Red Hat Inc.
10 # Marc-André Lureau <marcandre.lureau@redhat.com>
13 # See the COPYING file in the top-level directory.
15 # pylint: disable=too-many-lines
53 ) -> None:
56 def _cgen(self) -> str:
59 def gen_if(self) -> str:
62 def gen_endif(self) -> str:
65 def docgen(self) -> str:
[all …]
/qemu/docs/about/
H A Dremoved-features.rst10 --------------------------------------
12 ``-hdachs`` (removed in 2.12)
15 The geometry defined by ``-hdachs c,h,s,t`` should now be specified via
16 ``-device ide-hd,drive=dr,cyls=c,heads=h,secs=s,bios-chs-trans=t``
17 (together with ``-drive if=none,id=dr,...``).
19 ``-net channel`` (removed in 2.12)
22 This option has been replaced by ``-net user,guestfwd=...``.
24 ``-net dump`` (removed in 2.12)
27 ``-net dump[,vlan=n][,file=filename][,len=maxlen]`` has been replaced by
28 ``-object filter-dump,id=id,netdev=dev[,file=filename][,maxlen=maxlen]``.
[all …]
/qemu/rust/hw/char/pl011/src/
H A Ddevice.rs3 // SPDX-License-Identifier: GPL-2.0-or-later
13 qdev::{Clock, ClockEvent, DeviceImpl, DeviceState, Property, ResetType, ResettablePhasesImpl},
44 fn index(&self, idx: hwaddr) -> &Self::Output { in index()
49 // FIFOs use 32-bit indices instead of usize, for compatibility with
57 const fn len(&self) -> u32 { in len()
63 fn index_mut(&mut self, idx: u32) -> &mut Self::Output { in index_mut()
71 fn index(&self, idx: u32) -> &Self::Output { in index()
131 // expand the padding_for_rust[] array in the C PL011State struct.
139 /// The byte string that identifies the device.
172 fn properties() -> &'static [Property] { in properties()
[all …]
/qemu/hw/block/
H A Dpflash_cfi01.c24 * - flash read
25 * - flash write
26 * - flash ID read
27 * - sector erase
28 * - CFI queries
42 #include "hw/qdev-properties.h"
43 #include "hw/qdev-properties-system.h"
44 #include "system/block-backend.h"
46 #include "qemu/error-report.h"
48 #include "qemu/host-utils.h"
[all …]
/qemu/
H A Dhmp-commands.hx3 HXCOMM This file defines the contents of an array of HMPCommand structs
27 .help = "commit changes to the disk images (if -snapshot is used) or backing files",
33 Commit changes to the disk images (if -snapshot is used) or backing files.
70 available during the preconfig state (i.e. when the --preconfig command
122 .args_type = "force:-f,device:B",
123 .params = "[-f] device",
124 .help = "stop an active background block operation (use -f"
181 .args_type = "force:-f,device:B",
182 .params = "[-f] device",
183 .help = "eject a removable medium (use -f to force it)",
[all …]
H A Dqemu-options.hx14 "-h or -help display this help and exit\n", QEMU_ARCH_ALL)
16 ``-h``
21 "-version display version information and exit\n", QEMU_ARCH_ALL)
23 ``-version``
28 "-machine [type=]name[,prop[=value][,...]]\n"
29 " selects emulated machine ('-machine help' for list)\n"
30 " property accel=accel1[:accel2[:...]] selects accelerator\n"
33 " dump-guest-core=on|off include guest memory in a core dump (default=on)\n"
34 " mem-merge=on|off controls memory merge support (default: on)\n"
35 " aes-key-wrap=on|off controls support for AES key wrapping (default=on)\n"
[all …]

12