/qemu/scripts/ |
H A D | meson-buildoptions.sh | 1 # This file is generated by meson-buildoptions.py, do not edit! 3 printf "%s\n" ' --audio-drv-list=CHOICES Set audio driver list [default] (choices: alsa/co' 6 printf "%s\n" ' --bindir=VALUE Executable directory [bin]' 7 printf "%s\n" ' --block-drv-ro-whitelist=VALUE' 8 printf "%s\n" ' set block driver read-only whitelist (by default' 9 printf "%s\n" ' affects only QEMU, not tools like qemu-img)' 10 printf "%s\n" ' --block-drv-rw-whitelist=VALUE' 11 printf "%s\n" ' set block driver read-write whitelist (by default' 12 printf "%s\n" ' affects only QEMU, not tools like qemu-img)' 13 printf "%s\n" ' --datadir=VALUE Data file directory [share]' [all …]
|
/qemu/docs/interop/ |
H A D | vhost-user-gpu.rst | 2 Vhost-user-gpu Protocol 7 version 2 or later. See the COPYING file in the top-level 15 The vhost-user-gpu protocol is aiming at sharing the rendering result 16 of a virtio-gpu, done from a vhost-user back-end process to a vhost-user 17 front-end process (such as QEMU). It bears a resemblance to a display 19 back-end as the client, but in a very limited way. Typically, it will 29 Requests are sent by the *back-end*, and the optional replies by the 30 *front-end*. 38 A vhost-user-gpu message (request and reply) consists of 3 header 41 +---------+-------+------+---------+ [all …]
|
H A D | vhost-user.rst | 4 Vhost-user Protocol 11 version 2 or later. See the COPYING file in the top-level 20 control the vhost implementation in the Linux kernel. It implements 21 the control plane needed to establish virtqueue sharing with a user 26 The protocol defines 2 sides of the communication, *front-end* and 27 *back-end*. The *front-end* is the application that shares its virtqueues, in 28 our case QEMU. The *back-end* is the consumer of the virtqueues. 30 In the current implementation QEMU is the *front-end*, and the *back-end* 32 software Ethernet switch running in user space, such as Snabbswitch, 33 or a block device back-end processing read & write to a virtual [all …]
|
/qemu/hw/virtio/ |
H A D | vhost-user-base.c | 2 * Base vhost-user-base implementation. This can be used to derive a 3 * more fully specified vhost-user backend either generically (see 4 * vhost-user-device) or via a specific stub for a device which 10 * SPDX-License-Identifier: GPL-2.0-or-later 15 #include "hw/qdev-properties.h" 16 #include "hw/virtio/virtio-bus.h" 17 #include "hw/virtio/vhost-user-base.h" 18 #include "qemu/error-report.h" 27 if (!k->set_guest_notifiers) { in vub_start() 32 ret = vhost_dev_enable_notifiers(&vub->vhost_dev, vdev); in vub_start() [all …]
|
H A D | vhost-user.c | 2 * vhost-user 7 * See the COPYING file in the top-level directory. 13 #include "hw/virtio/virtio-dmabuf.h" 14 #include "hw/virtio/vhost.h" 15 #include "hw/virtio/virtio-crypto.h" 16 #include "hw/virtio/vhost-user.h" 17 #include "hw/virtio/vhost-backend.h" 19 #include "hw/virtio/virtio-net.h" 20 #include "chardev/char-fe.h" 21 #include "io/channel-socket.h" [all …]
|
H A D | virtio.c | 10 * the COPYING file in the top-level directory. 16 #include "qapi/qapi-commands-virtio.h" 18 #include "qemu/defer-call.h" 19 #include "qemu/error-report.h" 21 #include "qemu/main-loop.h" 27 #include "hw/virtio/vhost.h" 28 #include "migration/qemu-file-types.h" 30 #include "hw/virtio/virtio-bus.h" 31 #include "hw/qdev-properties.h" 32 #include "hw/virtio/virtio-access.h" [all …]
|
/qemu/qapi/ |
H A D | virtio.json | 1 # -*- Mode: Python -*- 25 # @x-query-virtio: 37 # .. qmp-example:: 39 # -> { "execute": "x-query-virtio" } 40 # <- { "return": [ 42 # "name": "virtio-input", 43 # "path": "/machine/peripheral-anon/device[4]/virtio-backend" 46 # "name": "virtio-crypto", 47 # "path": "/machine/peripheral/crypto0/virtio-backend" 50 # "name": "virtio-scsi", [all …]
|
H A D | net.json | 1 # -*- Mode: Python -*- 21 # - If @name is not a valid network device, DeviceNotFound 29 # .. qmp-example:: 31 # -> { "execute": "set_link", 33 # <- { "return": {} } 47 # - If @type is not a valid network backend, DeviceNotFound 49 # .. qmp-example:: 51 # -> { "execute": "netdev_add", 52 # "arguments": { "type": "user", "id": "netdev1", 54 # <- { "return": {} } [all …]
|
H A D | qom.json | 1 # -*- Mode: Python -*- 5 # See the COPYING file in the top-level directory. 8 { 'include': 'block-core.json' } 38 # @default-value: the default value, if any (since 5.0) 46 '*default-value': 'any' } } 49 # @qom-list: 54 # @path: the path within the object model. See @qom-get for a 62 # .. qmp-example:: 64 # -> { "execute": "qom-list", 66 # <- { "return": [ { "name": "type", "type": "string" }, [all …]
|
H A D | block-core.json | 1 # -*- Mode: Python -*- 18 # @name: user chosen name 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 [all …]
|
/qemu/include/hw/virtio/ |
H A D | vhost.h | 4 #include "hw/virtio/vhost-backend.h" 13 /* Generic structures common for any vhost based device. */ 66 /* Vhost device config space changed callback 74 * struct vhost_dev - common vhost_dev structure 89 /* the first virtqueue which would be used by this vhost dev */ 91 /* one past the last vq index for the virtio device (not vhost) */ 93 /* if non-zero, minimum required value for max_queues */ 96 * vhost feature handling requires matching the feature set 101 * @acked_features: final negotiated features with front-end driver 114 * @protocol_features: is the vhost-user only feature set by [all …]
|
H A D | virtio.h | 10 * the COPYING file in the top-level directory. 18 #include "hw/qdev-core.h" 22 #include "standard-headers/linux/virtio_config.h" 23 #include "standard-headers/linux/virtio_ring.h" 29 * between the driver frontend and the device. This bit is re-used for 30 * vhost-user to advertise VHOST_USER_F_PROTOCOL_FEATURES between QEMU 31 * and a vhost-user backend. 85 #define VIRTIO_CONFIG_IRQ_IDX -1 87 #define TYPE_VIRTIO_DEVICE "virtio-device" 102 * struct VirtIODevice - common VirtIO structure [all …]
|
/qemu/ |
H A D | meson_options.txt | 1 # These options do not correspond to a --enable/--disable-* option 3 # scripts/meson-buildoptions.py's SKIP_OPTIONS constant too. 9 option('qemu_firmwarepath', type : 'array', value : ['share/qemu-firmware'], 12 description: 'use specified string as sub-version of the package') 25 …description: 'set block driver read-write whitelist (by default affects only QEMU, not tools like … 27 …description: 'set block driver read-only whitelist (by default affects only QEMU, not tools like q… 28 option('interp_prefix', type : 'string', value : '/usr/gnemul/qemu-%M', 33 description: 'fuzzing engine library for OSS-Fuzz') 40 # Everything else can be set via --enable/--disable-* option 42 # here make sure to run "make update-buildoptions". [all …]
|
H A D | qemu-options.hx | 14 "-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 …]
|
H A D | meson.build | 15 meson.add_postconf_script(find_program('scripts/symlink-install-tree.py')) 28 config_host = keyval.load(meson.current_build_dir() / 'config-host.mak') 35 tmpdir = meson.current_build_dir() / 'meson-private/temp' 66 have_linux_user = have_linux_user or target.endswith('linux-user') 67 have_bsd_user = have_bsd_user or target.endswith('bsd-user') 68 have_system = have_system or target.endswith('-softmmu') 113 …dgen.version() + ' is unsupported. You can install a new version with "cargo install bindgen-cli"') 120 message('To use Rust you can install a new version with "cargo install bindgen-cli"') 128 '--rustc-version', rustc.version(), 129 '--workspace', meson.project_source_root() / 'rust'] [all …]
|
H A D | hmp-commands.hx | 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)", 188 ``eject [-f]`` *device* [all …]
|
/qemu/tests/qtest/ |
H A D | vhost-user-test.c | 2 * QTest testcase for the vhost-user 7 * See the COPYING file in the top-level directory. 13 #include "libqtest-single.h" 16 #include "qemu/config-file.h" 20 #include "chardev/char-fe.h" 25 #include "libqos/pci-pc.h" 26 #include "libqos/virtio-pci.h" 28 #include "libqos/malloc-pc.h" 30 #include "hw/virtio/virtio-net.h" 32 #include "standard-headers/linux/vhost_types.h" [all …]
|
/qemu/hw/core/ |
H A D | machine.c | 10 * See the COPYING file in the top-level directory. 19 #include "qemu/error-report.h" 21 #include "qapi/qapi-visit-machine.h" 22 #include "qapi/qapi-commands-machine.h" 34 #include "system/confidential-guest-support.h" 35 #include "hw/virtio/virtio-pci.h" 36 #include "hw/virtio/virtio-net.h" 37 #include "hw/virtio/virtio-iommu.h" 41 { "scsi-hd", "dpofua", "off" }, 46 { "arm-cpu", "backcompat-pauth-default-use-qarma5", "true"}, [all …]
|
/qemu/net/ |
H A D | slirp.c | 4 * Copyright (c) 2003-2008 Fabrice Bellard 39 #include "qemu/error-report.h" 42 #include "chardev/char-fe.h" 50 #include "migration/qemu-file-types.h" 59 return -1; in get_str_sep() 60 len = p1 - p; in get_str_sep() 63 if (len > buf_size - 1) in get_str_sep() 64 len = buf_size - 1; in get_str_sep() 123 if (net_peer_needs_padding(&s->nc)) { in net_slirp_send_packet() 130 return qemu_send_packet(&s->nc, pkt, pkt_len); in net_slirp_send_packet() [all …]
|
/qemu/docs/system/ |
H A D | introduction.rst | 7 --------------------------- 14 .. list-table:: Supported Accelerators 15 :header-rows: 1 17 * - Accelerator 18 - Host OS 19 - Host Architectures 20 * - KVM 21 - Linux 22 - Arm (64 bit only), MIPS, PPC, RISC-V, s390x, x86 23 * - Xen [all …]
|
/qemu/util/ |
H A D | qemu-coroutine.c | 11 * See the COPYING.LIB file in the top-level directory. 20 #include "qemu/coroutine-tls.h" 40 * .-----------------------------------. 42 * `-----------------------------------' 44 * .-------------------. 45 * | Batch 1 | Batch 2 | per-thread local_pool (maximum 2 batches) 46 * `-------------------' 74 QSLIST_INIT(&batch->list); in coroutine_pool_batch_new() 75 batch->size = 0; in coroutine_pool_batch_new() 84 QSLIST_FOREACH_SAFE(co, &batch->list, pool_next, tmp) { in coroutine_pool_batch_delete() [all …]
|
/qemu/contrib/vhost-user-gpu/ |
H A D | virgl.c | 2 * Virtio vhost-user GPU Device 4 * Copyright Red Hat, Inc. 2013-2018 9 * Marc-André Lureau <marcandre.lureau@redhat.com> 12 * See the COPYING file in the top-level directory. 125 /* Not yet(?) defined in standard-headers, remove when possible */ 182 cmd->error = VIRTIO_GPU_RESP_ERR_INVALID_PARAMETER; in virgl_cmd_get_capset() 187 resp->hdr.type = VIRTIO_GPU_RESP_OK_CAPSET; in virgl_cmd_get_capset() 190 (void *)resp->capset_data); in virgl_cmd_get_capset() 191 vg_ctrl_response(g, cmd, &resp->hdr, sizeof(*resp) + max_size); in virgl_cmd_get_capset() 206 s = iov_to_buf(cmd->elem.out_sg, cmd->elem.out_num, in virgl_cmd_submit_3d() [all …]
|
/qemu/hw/net/ |
H A D | virtio-net.c | 10 * the COPYING file in the top-level directory. 18 #include "qemu/main-loop.h" 24 #include "qemu/error-report.h" 28 #include "qemu/config-file.h" 30 #include "hw/virtio/virtio-net.h" 33 #include "hw/virtio/virtio-bus.h" 35 #include "qapi/qapi-events-net.h" 36 #include "hw/qdev-properties.h" 37 #include "qapi/qapi-types-migration.h" 38 #include "qapi/qapi-events-migration.h" [all …]
|
/qemu/hw/ppc/ |
H A D | spapr.c | 4 * Copyright (c) 2004-2007 Fabrice Bellard 7 * Copyright (c) 2010-2024, IBM Corporation.. 9 * SPDX-License-Identifier: GPL-2.0-or-later 33 #include "qemu/guest-random.h" 35 #include "qapi/qapi-events-machine.h" 36 #include "qapi/qapi-events-qdev.h" 46 #include "hw/fw-path-provider.h" 54 #include "migration/qemu-file-types.h" 58 #include "mmu-hash64.h" 59 #include "mmu-book3s-v3.h" [all …]
|