Home
last modified time | relevance | path

Searched +full:sub +full:- +full:nodes (Results 1 – 25 of 28) sorted by relevance

12

/qemu/docs/system/i386/
H A Dsgx.rst5 --------
16 -----------
36 require -maxmem as EPC is not treated as {cold,hot}plugged memory.
43 The following QEMU snippet creates two EPC sections, with 64M pre-allocated
46 -object memory-backend-epc,id=mem1,size=64M,prealloc=on \
47 -object memory-backend-epc,id=mem2,size=28M \
48 -M sgx-epc.0.memdev=mem1,sgx-epc.1.memdev=mem2
79 in any of QEMU's built-in CPU configuration. To expose SGX (and SGX Launch
80 Control) to a guest, you must either use ``-cpu host`` to pass-through the
81 host CPU model, or explicitly enable SGX when using a built-in CPU model,
[all …]
/qemu/docs/sphinx/
H A Dqapidoc_legacy.py1 # coding=utf-8
9 # See the COPYING file in the top-level directory.
12 qapidoc is a Sphinx extension that implements the qapi-doc directive
17 It implements one new rST directive, "qapi-doc::".
18 Each qapi-doc:: directive takes one argument, which is the
25 https://www.sphinx-doc.org/en/master/development/index.html
31 from docutils import nodes
38 def dedent(text: str) -> str:
52 """A QAPI schema visitor which generates docutils/Sphinx nodes
54 This class builds up a tree of docutils/Sphinx nodes corresponding
[all …]
H A Dqapidoc.py1 # coding=utf-8
5 # Copyright (c) 2024-2025 Red Hat
9 # See the COPYING file in the top-level directory.
12 qapidoc is a Sphinx extension that implements the qapi-doc directive
17 It implements one new rST directive, "qapi-doc::".
18 Each qapi-doc:: directive takes one argument, which is the
25 https://www.sphinx-doc.org/en/master/development/index.html
40 from docutils import nodes
65 from sphinx.util.nodes import nested_parse_with_titles
88 # pylint: disable=too-many-public-methods
[all …]
/qemu/tests/qemu-iotests/tests/
H A Dmigrate-bitmaps-test6 # Copyright (c) 2016-2017 Virtuozzo International GmbH. All rights reserved.
41 result = vm.qmp('x-debug-block-dirty-bitmap-sha256',
55 qemu_img('create', '-f', iotests.imgfmt, disk_a, size)
56 qemu_img('create', '-f', iotests.imgfmt, disk_b, size)
70 vm.cmd('block-dirty-bitmap-add', params)
73 result = vm.qmp('x-debug-block-dirty-bitmap-sha256',
91 mig_caps.append({'capability': 'dirty-bitmaps', 'state': True})
93 self.vm_a.cmd('migrate-set-capabilities',
107 result = self.vm_a.qmp('query-status')
126 log = re.sub(r'^(wrote .* bytes at offset .*\n'
[all …]
/qemu/tests/qemu-iotests/
H A Diotests.py1 # Common utilities and Python wrappers for qemu-iotests
56 qemu_img_args = [os.environ.get('QEMU_IMG_PROG', 'qemu-img')]
60 qemu_io_args = [os.environ.get('QEMU_IO_PROG', 'qemu-io')]
64 qemu_io_args_no_fmt = [os.environ.get('QEMU_IO_PROG', 'qemu-io')]
69 qemu_nbd_prog = os.environ.get('QEMU_NBD_PROG', 'qemu-nbd')
77 qsd_prog = os.environ.get('QSD_PROG', 'qemu-storage-daemon')
105 valgrind_logfile = "--log-file=" + test_dir
111 qemu_valgrind = ['valgrind', valgrind_logfile, '--error-exitcode=99']
115 luks_default_key_secret_opt = 'key-secret=keysec0'
122 logger_name: str, level: int = logging.CRITICAL) -> Iterator[None]:
[all …]
H A D2834 # Test for copy-before-write filter permission conflict
34 copy-before-write filter so it can copy all data to the target before it is
35 changed. copy-before-write filter is appended above source node, to achieve
37 side parents of source sub-tree with write permission is unsupported (we'd have
38 append several copy-before-write filter like nodes to handle such parents). The
40 not allowed (blockdev-backup command should fail).
60 copy-before-write filter wants to unshare write permission on its source child.
61 Write unsharing will be propagated to the "source->base" link and will conflict
77 vm.qmp_log('blockdev-add', **{
78 'node-name': 'target',
[all …]
H A D04130 target_backing_img = os.path.join(iotests.test_dir, 'target-backing.img')
44 qmp_cmd = 'drive-mirror'
49 qemu_img('create', '-f', iotests.imgfmt,
50 '-o', 'backing_file=%s' % backing_img, '-F', 'raw', test_img)
51 self.vm = iotests.VM().add_drive(test_img, "node-name=top,backing.node-name=base")
72 result = self.vm.qmp('query-block')
85 result = self.vm.qmp('query-block')
95 result = self.vm.qmp('query-block')
109 result = self.vm.qmp('query-block-jobs')
113 result = self.vm.qmp('query-block-jobs')
[all …]
H A D2454 # Test cases for the QMP 'blockdev-reopen' command
6 # Copyright (C) 2018-2019 Igalia, S.L.
40 'node-name': 'hd%d' % idx,
42 'node-name': 'hd%d-file' % idx,
49 qemu_img('create', '-f', iotests.imgfmt, hd_path[0], '3M')
50 qemu_img('create', '-f', iotests.imgfmt, '-b', hd_path[0],
51 '-F', iotests.imgfmt, hd_path[1])
52 qemu_img('create', '-f', iotests.imgfmt, hd_path[2], '3M')
53 qemu_io('-f', iotests.imgfmt, '-c', 'write -P 0xa0 0 1M', hd_path[0])
54 qemu_io('-f', iotests.imgfmt, '-c', 'write -P 0xa1 1M 1M', hd_path[1])
[all …]
/qemu/hw/acpi/
H A Dhmat.c30 #include "hw/acpi/aml-build.h"
35 * 5.2.27.3 Memory Proximity Domain Attributes Structure: Table 5-145
74 * Structure: Table 5-146
99 assert(!(hmat_lb->hierarchy >> 4)); in build_hmat_lb()
100 build_append_int_noprefix(table_data, hmat_lb->hierarchy, 1); in build_hmat_lb()
102 build_append_int_noprefix(table_data, hmat_lb->data_type, 1); in build_hmat_lb()
113 if (hmat_lb->data_type <= HMAT_LB_DATA_WRITE_LATENCY) { in build_hmat_lb()
115 base = hmat_lb->base * 1000; in build_hmat_lb()
118 base = hmat_lb->base / MiB; in build_hmat_lb()
136 for (i = 0; i < hmat_lb->list->len; i++) { in build_hmat_lb()
[all …]
/qemu/block/
H A Dcommit.c11 * See the COPYING.LIB file in the top-level directory.
18 #include "block/block-common.h"
25 #include "system/block-backend.h"
55 bdrv_unfreeze_backing_chain(s->commit_top_bs, s->base_bs); in commit_prepare()
56 s->chain_frozen = false; in commit_prepare()
61 blk_unref(s->base); in commit_prepare()
62 s->base = NULL; in commit_prepare()
66 return bdrv_drop_intermediate(s->commit_top_bs, s->base_bs, in commit_prepare()
67 s->backing_file_str, in commit_prepare()
68 s->backing_mask_protocol); in commit_prepare()
[all …]
H A Dnbd.c36 #include "qemu/main-loop.h"
38 #include "qapi/qapi-visit-sockets.h"
40 #include "qapi/clone-visitor.h"
52 #define COOKIE_TO_INDEX(cookie) ((cookie) - 1)
115 BDRVNBDState *s = (BDRVNBDState *)bs->opaque; in nbd_clear_bdrvstate()
117 nbd_client_connection_release(s->conn); in nbd_clear_bdrvstate()
118 s->conn = NULL; in nbd_clear_bdrvstate()
120 yank_unregister_instance(BLOCKDEV_YANK_INSTANCE(bs->node_name)); in nbd_clear_bdrvstate()
123 assert(!s->reconnect_delay_timer); in nbd_clear_bdrvstate()
124 assert(!s->open_timer); in nbd_clear_bdrvstate()
[all …]
H A Dio.c27 #include "system/block-backend.h"
28 #include "block/aio-wait.h"
33 #include "block/dirty-bitmap.h"
34 #include "block/write-threshold.h"
38 #include "qemu/error-report.h"
39 #include "qemu/main-loop.h"
43 /* Maximum bounce buffer for copy-on-read and write zeroes, in bytes */
62 QLIST_FOREACH_SAFE(c, &bs->parents, next_parent, next) { in bdrv_parent_drained_begin()
74 assert(c->quiesced_parent); in bdrv_parent_drained_end_single()
75 c->quiesced_parent = false; in bdrv_parent_drained_end_single()
[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
37 * The two halves of a Xen block driver utilize nodes within the XenStore to
39 * section enumerates these nodes which reside in the respective front and
42 * All data in the XenStore is stored as strings. Nodes specifying numeric
[all …]
H A Dkbdif.h1 /* SPDX-License-Identifier: MIT */
3 * kbdif.h -- Xen virtual keyboard/mouse
17 * The two halves of a para-virtual driver utilize nodes within
19 * This section enumerates these nodes which reside in the respective front and
22 * All data in XenStore is stored as strings. Nodes specifying numeric
28 * Backend XenBus Nodes
31 *---------------------------- Features supported ----------------------------
37 * feature-disable-keyboard
43 * feature-disable-pointer
49 * feature-abs-pointer
[all …]
/qemu/pc-bios/
HDu-boot.e500 ... --------------------- ...
HDopenbios-sparc32 ... line-size icache-nlines icache-associativity ecache-line-size ecache-nlines ecache-associativity ncaches
/qemu/python/qemu/qmp/
H A Dqmp_shell.py2 # Copyright (C) 2009-2022 Red Hat Inc.
9 # later. See the COPYING file in the top-level directory.
13 Low-level QEMU shell on top of QMP.
15 usage: qmp-shell [-h] [-H] [-N] [-v] [-p] qmp_server
21 -h, --help show this help message and exit
22 -H, --hmp Use HMP interface
23 -N, --skip-negotiation
24 Skip negotiate (for qemu-ga)
25 -v, --verbose Verbose (echo commands sent and received)
26 -p, --pretty Pretty-print JSON
[all …]
/qemu/util/
H A Dkeyval.c10 * See the COPYING file in the top-level directory.
16 * key-vals = [ key-val { ',' key-val } [ ',' ] ]
17 * key-val = key '=' val | help
18 * key = key-fragment { '.' key-fragment }
19 * key-fragment = qapi-name | index
20 * qapi-name = '__' / [a-z0-9.-]+ / '_' / [A-Za-z][A-Za-z0-9_-]* /
21 * index = / [0-9]+ /
27 * key-vals specifies a JSON object, i.e. a tree whose root is an
28 * object, inner nodes other than the root are objects or arrays,
31 * Each key-val = key-fragment '.' ... '=' val specifies a path from
[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 -------------
67 syntax in an EBNF-like notation:
69 * Production rules look like ``non-terminal = expression``
85 * ALL-CAPS words other than ``STRING`` are non-terminals
90 A QAPI schema consists of a series of top-level expressions::
[all …]
/qemu/qapi/
H A Dblock-core.json1 # -*- Mode: Python -*-
20 # @vm-state-size: size of the VM state
22 # @date-sec: UTC date of the snapshot in seconds
24 # @date-nsec: fractional part in nano seconds to be used with date-sec
26 # @vm-clock-sec: VM clock relative to boot in seconds
28 # @vm-clock-nsec: fractional part in nano seconds to be used with
29 # vm-clock-sec
32 # record/replay is enabled. Used for "time-traveling" to match
34 # counter may be obtained through @query-replay command
40 'data': { 'id': 'str', 'name': 'str', 'vm-state-size': 'int',
[all …]
/qemu/
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"
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"
36 " dea-key-wrap=on|off controls support for DEA key wrapping (default=on)\n"
[all …]
/qemu/docs/interop/
H A Dbitmaps.rst12 Dirty Bitmaps are in-memory objects that track writes to block devices. They
16 This document explains the conceptual mechanisms, as well as up-to-date,
27 --------
67 -----------------------
83 ------------------
85 Bitmap objects need a method to reference them in the API. All API-created and
86 managed bitmaps have a human-readable name chosen by the user at creation
89 - A bitmap's name is unique to the node, but bitmaps attached to different
90 nodes can share the same name. Therefore, all bitmaps are addressed via
93 - The name of a user-created bitmap cannot be empty ("").
[all …]
/qemu/include/qom/
H A Dobject.h10 * See the COPYING file in the top-level directory.
17 #include "qapi/qapi-builtin-types.h"
147 * always begins at byte 0 of that structure, as long as any sub-object places
228 * - create the typedefs for the object and class structs
229 * - register the type for use with g_autoptr
230 * - provide three standard type cast functions
319 * - declare prototypes for _finalize, _class_init and _init methods
320 * - declare the TypeInfo struct instance
321 * - provide the constructor to register the type
324 * and _init methods need to be written. Any of these can be zero-line
[all …]
/qemu/hw/i386/
H A Dacpi-build.c3 * Copyright (C) 2008-2010 Kevin O'Connor <kevin@koconnor.net>
26 #include "acpi-build.h"
27 #include "acpi-common.h"
29 #include "qemu/error-report.h"
35 #include "hw/acpi/acpi-defs.h"
39 #include "hw/acpi/bios-linker-loader.h"
52 #include "hw/mem/memory-device.h"
56 #include "hw/hyperv/vmbus-bridge.h"
64 #include "hw/pci-host/i440fx.h"
65 #include "hw/pci-host/q35.h"
[all …]
/qemu/target/i386/
H A Dcpu.c23 #include "qemu/qemu-print.h"
24 #include "qemu/hw-version.h"
26 #include "tcg/helper-tcg.h"
27 #include "exec/translation-block.h"
29 #include "hvf/hvf-i386.h"
33 #include "qemu/error-report.h"
34 #include "qapi/qapi-visit-machine.h"
35 #include "standard-headers/asm-x86/kvm_para.h"
36 #include "hw/qdev-properties.h"
40 #include "confidential-guest.h"
[all …]

12