/qemu/tests/qtest/ |
H A D | arm-cpu-features.c | 9 * See the COPYING file in the top-level directory. 18 * We expect the SVE max-vq to be 16. Also it must be <= 64 23 #define MACHINE "-machine virt,gic-version=max -accel tcg " 24 #define MACHINE_KVM "-machine virt,gic-version=max -accel kvm " 25 #define QUERY_HEAD "{ 'execute': 'query-cpu-model-expansion', " \ 191 resp = qtest_qmp(qts, "{ 'execute': 'query-cpu-model-expansion', " in assert_type_full() 207 resp = qtest_qmp(qts, "{ 'execute': 'query-cpu-model-expansion', " in assert_bad_props() 234 if (strlen(e->key) > 3 && !strncmp(e->key, "sve", 3) && in resp_get_sve_vls() 235 g_ascii_isdigit(e->key[3])) { in resp_get_sve_vls() 239 bits = g_ascii_strtoll(&e->key[3], &endptr, 10); in resp_get_sve_vls() [all …]
|
/qemu/docs/system/arm/ |
H A D | aspeed.rst | 1 …-evb``, ``ast2600-evb``, ``ast2700-evb``, ``bletchley-bmc``, ``fuji-bmc``, ``fby35-bmc``, ``fp5280… 6 Aspeed SoC : the AST2400 integrating an ARM926EJ-S CPU (400MHz), the 8 with dual cores ARM Cortex-A7 CPUs (1.2GHz). 15 - ``palmetto-bmc`` OpenPOWER Palmetto POWER8 BMC 16 - ``quanta-q71l-bmc`` OpenBMC Quanta BMC 17 - ``supermicrox11-bmc`` Supermicro X11 BMC (ARM926EJ-S) 18 - ``supermicrox11spi-bmc`` Supermicro X11 SPI BMC (ARM1176) 22 - ``ast2500-evb`` Aspeed AST2500 Evaluation board 23 - ``romulus-bmc`` OpenPOWER Romulus POWER9 BMC 24 - ``witherspoon-bmc`` OpenPOWER Witherspoon POWER9 BMC [all …]
|
/qemu/docs/system/devices/ |
H A D | keyboard.rst | 4 ---------------- 12 With the escc.chnA-sunkbd-layout driver property it is possible to select 15 -global escc.chnA-sunkbd-layout=de 17 Depending on type of keyboard, the keyboard can have 6 or 5 dip-switches to 24 -global escc.chnA-sunkbd-layout=0x2b 26 -global escc.chnA-sunkbd-layout=43 28 -global escc.chnA-sunkbd-layout=sv 30 The above 3 examples all select a swedish keyboard layout. Table 3-15 at 31 https://docs.oracle.com/cd/E19683-01/806-6642/new-43/index.html explains which 35 .. list-table:: Language selection values for escc.chnA-sunkbd-layout [all …]
|
/qemu/target/arm/tcg/ |
H A D | vfp.decode | 30 # VFP registers have an odd encoding with a four-bit field 31 # and a one-bit field which are assembled in different orders 36 # support D16-D31" (which should UNDEF). 57 # VMOV scalar to general-purpose register; note that this does 59 VMOV_to_gp ---- 1110 u:1 1. 1 .... rt:4 1011 ... 1 0000 \ 61 VMOV_to_gp ---- 1110 u:1 0. 1 .... rt:4 1011 ..1 1 0000 \ 63 VMOV_to_gp ---- 1110 0 0 index:1 1 .... rt:4 1011 .00 1 0000 \ 66 VMOV_from_gp ---- 1110 0 1. 0 .... rt:4 1011 ... 1 0000 \ 68 VMOV_from_gp ---- 1110 0 0. 0 .... rt:4 1011 ..1 1 0000 \ 70 VMOV_from_gp ---- 1110 0 0 index:1 0 .... rt:4 1011 .00 1 0000 \ [all …]
|
/qemu/docs/devel/ |
H A D | multiple-iothreads.rst | 5 Copyright (c) 2014-2017 Red Hat Inc. 8 the COPYING file in the top-level directory. 15 --------------------------------- 16 QEMU is an event-driven program that can do several things at once using an 21 The default event loop is called the main loop (see ``main-loop.c``). It is 23 ``-object iothread,id=my-iothread``. 30 ------------------------------ 39 QEMU's code historically was not thread-safe. 45 The experimental ``virtio-blk`` data-plane implementation has been benchmarked and 49 .. _how-to-program: [all …]
|
/qemu/docs/specs/ |
H A D | ppc-spapr-hotplug.rst | 7 "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 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`. 37 of ``ibm,drc-indexes``: 39 ``ibm,drc-names`` 40 ----------------- 42 First 4-bytes: big-endian (BE) encoded integer denoting the number of entries. 44 Each entry: a NULL-terminated ``<name>`` string encoded as a byte array. [all …]
|
/qemu/docs/system/i386/ |
H A D | hyperv.rst | 1 Hyper-V Enlightenments 6 ----------- 11 It may, however, be hard-to-impossible to add support for these interfaces to 14 KVM on x86 implements Hyper-V Enlightenments for Windows guests. These features 15 make Windows and Hyper-V guests think they're running on top of a Hyper-V 16 compatible hypervisor and use Hyper-V specific features. 20 ----- 22 No Hyper-V enlightenments are enabled by default by either KVM or QEMU. In 25 .. parsed-literal:: 27 |qemu_system| --enable-kvm --cpu host,hv_relaxed,hv_vpindex,hv_time, ... [all …]
|
/qemu/hw/usb/ |
H A D | host-libusb.c | 51 #include "qemu/error-report.h" 52 #include "qemu/main-loop.h" 58 #include "hw/qdev-properties.h" 61 /* ------------------------------------------------------------------------ */ 63 #define TYPE_USB_HOST_DEVICE "usb-host" 164 /* ------------------------------------------------------------------------ */ 170 /* ------------------------------------------------------------------------ */ 218 [-LIBUSB_ERROR_IO] = "IO", 219 [-LIBUSB_ERROR_INVALID_PARAM] = "INVALID_PARAM", 220 [-LIBUSB_ERROR_ACCESS] = "ACCESS", [all …]
|
H A D | dev-mtp.c | 14 #include "qemu/error-report.h" 25 #include "hw/qdev-properties.h" 32 /* ----------------------------------------------------------------------- */ 124 /* ----------------------------------------------------------------------- */ 232 uint8_t filename[0]; /* UTF-16 encoded */ 239 #define TYPE_USB_MTP "usb-mtp" 246 #define FLAG_SET(_mtp, _flag) ((_mtp)->flags & (1 << (_flag))) 248 /* ----------------------------------------------------------------------- */ 378 /* ----------------------------------------------------------------------- */ 389 o->watchid = -1; in usb_mtp_object_alloc() [all …]
|
/qemu/python/qemu/qmp/ |
H A D | util.py | 28 # -------------------------- 30 # -------------------------- 33 async def flush(writer: asyncio.StreamWriter) -> None: 38 the "high-water mark". This function ensures we flush the entire 39 buffer -- by setting the high water mark to 0 and then calling 43 transport = cast( # type: ignore[redundant-cast] 56 def upper_half(func: T) -> T: 58 Do-nothing decorator that annotates a method as an "upper-half" method. 60 These methods must not call bottom-half functions directly, but can 66 def bottom_half(func: T) -> T: [all …]
|
/qemu/hw/xen/ |
H A D | xen_devconfig.c | 2 #include "hw/xen/xen-legacy-backend.h" 7 /* ------------------------------------------------------------- */ 34 xenstore_write_int(fe, "backend-id", 0); in xen_config_dev_all() 38 xenstore_write_str(be, "domain", qemu_name ? qemu_name : "no-name"); in xen_config_dev_all() 41 xenstore_write_int(be, "frontend-id", xen_domid); in xen_config_dev_all() 47 /* ------------------------------------------------------------- */
|
/qemu/target/xtensa/core-dsp3400/ |
H A D | core-matmap.h | 2 * xtensa/config/core-matmap.h -- Memory access and translation mapping 10 * information contained in the core-isa.h header file. 19 * XCHAL_ICACHE_SIZE (presence of I-cache) 20 * XCHAL_DCACHE_SIZE (presence of D-cache) 25 /* Copyright (c) 1999-2010 Tensilica Inc. 49 /*---------------------------------------------------------------------- 51 ----------------------------------------------------------------------*/ 54 /* Cache Attribute encodings -- lists of access modes for each cache attribute: */ 112 #define XCHAL_CA_WRITETHRU 1 /* cache enabled (write-through) mode */ 113 #define XCHAL_CA_WRITEBACK 4 /* cache enabled (write-back) mode */ [all …]
|
/qemu/hw/audio/ |
H A D | fmopl.c | 3 ** File: fmopl.c -- software implementation of FM sound generator 41 /* -------------------- for debug --------------------- */ 49 /* -------------------- preliminary define section --------------------- */ 54 #define DELTAT_MIXING_LEVEL (1) /* DELTA-T ADPCM MIXING LEVEL */ 59 #define FREQ_RATE (1<<(FREQ_BITS-20)) 63 #define OPL_OUTSB (TL_BITS+3-16) /* OPL output final shift 16bit */ 65 #define OPL_MINOUT (-0x8000<<OPL_OUTSB) 67 /* -------------------- quality selection --------------------- */ 91 #define VIB_SHIFT (32-9) 93 #define AMS_SHIFT (32-9) [all …]
|
H A D | intel-hda.c | 22 #include "hw/qdev-properties.h" 28 #include "qemu/error-report.h" 30 #include "intel-hda.h" 32 #include "intel-hda-defs.h" 37 /* --------------------------------------------------------------------- */ 41 DEFINE_PROP_UINT32("cad", HDACodecDevice, cad, -1), 55 bus->response = response; in hda_codec_bus_init() 56 bus->xfer = xfer; in hda_codec_bus_init() 61 HDACodecBus *bus = HDA_BUS(qdev->parent_bus); in hda_codec_dev_realize() 65 if (dev->cad == -1) { in hda_codec_dev_realize() [all …]
|
/qemu/docs/system/ppc/ |
H A D | powernv.rst | 4 PowerNV (as Non-Virtualized) is the "bare metal" platform using the 16 ----------------- 24 * Simple OCC is an on-chip micro-controller used for power management tasks. 30 --------------- 44 -------- 49 GitHub <https://github.com/open-power>`_. 52 `OpenPOWER <https://github.com/open-power/op-build/releases/>`__ site. 58 --------------------------- 60 KVM acceleration in Linux Power hosts is provided by the kvm-hv and 61 kvm-pr modules. kvm-hv is adherent to PAPR and it's not compliant with [all …]
|
/qemu/tests/docker/dockerfiles/ |
H A D | centos9.docker | 1 # THIS FILE WAS AUTO-GENERATED 3 # $ lcitool dockerfile --layers all centos-stream-9 qemu 5 # https://gitlab.com/libvirt/libvirt-ci 9 RUN dnf distro-sync -y && \ 10 dnf install 'dnf-command(config-manager)' -y && \ 11 dnf config-manager --set-enabled -y crb && \ 12 dnf install -y epel-release && \ 13 dnf install -y epel-next-release && \ 14 dnf install -y \ 15 SDL2-devel \ [all …]
|
H A D | opensuse-leap.docker | 1 # THIS FILE WAS AUTO-GENERATED 3 # $ lcitool dockerfile --layers all opensuse-leap-15 qemu 5 # https://gitlab.com/libvirt/libvirt-ci 9 RUN zypper update -y && \ 10 …zypper addrepo -fc https://download.opensuse.org/update/leap/15.6/backports/openSUSE:Backports:SLE… 11 zypper install -y \ 12 Mesa-devel \ 13 alsa-lib-devel \ 17 brlapi-devel \ 19 ca-certificates \ [all …]
|
H A D | fedora.docker | 1 # THIS FILE WAS AUTO-GENERATED 3 # $ lcitool dockerfile --layers all fedora-40 qemu 5 # https://gitlab.com/libvirt/libvirt-ci 9 RUN dnf install -y nosync && \ 11 if test -d /usr/lib64\n\ 19 nosync dnf update -y && \ 20 nosync dnf install -y \ 21 SDL2-devel \ 22 SDL2_image-devel \ 23 alsa-lib-devel \ [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 186.out | 6 Testing: -device floppy 7 QEMU X.Y.Z monitor - type 'help' for more information 9 /machine/peripheral-anon/device[1]: [not inserted] 10 Attached to: /machine/peripheral-anon/device[N] 14 Testing: -device floppy,id=qdev_id 15 QEMU X.Y.Z monitor - type 'help' for more information 22 Testing: -device ide-cd 23 QEMU X.Y.Z monitor - type 'help' for more information 25 /machine/peripheral-anon/device[1]: [not inserted] 26 Attached to: /machine/peripheral-anon/device[N] [all …]
|
H A D | 233 | 6 # Copyright (C) 2018-2019 Red Hat, Inc. 35 test -f "$TEST_DIR/server.log" && cat "$TEST_DIR/server.log" 36 rm -f "$TEST_DIR/server.log" 50 # If porting to non-Linux, consider using socat instead of ss in common.nbd 70 $QEMU_IO -c 'w -P 0x11 1m 1m' "$TEST_IMG" 2>&1 | _filter_qemu_io 74 nbd_server_start_tcp_socket -f $IMGFMT "$TEST_IMG" 2> "$TEST_DIR/server.log" 76 obj=tls-creds-x509,dir=${tls_dir}/client1,endpoint=client,id=tls0 77 $QEMU_IMG info --image-opts --object $obj \ 78 driver=nbd,host=$nbd_tcp_addr,port=$nbd_tcp_port,tls-creds=tls0 \ 80 $QEMU_NBD_PROG -L -b $nbd_tcp_addr -p $nbd_tcp_port --object $obj \ [all …]
|
/qemu/docs/ |
H A D | conf.py | 1 # -*- coding: utf-8 -*- 4 # sphinx-quickstart on Thu Jan 31 16:40:14 2019. 8 # for each of QEMU's manuals: in this case sphinx-build is run multiple 11 # the manuals into a single document: in this case sphinx-build is 12 # run once, on the top-level docs directory. 16 # to ship the 'devel' manual to end-users). 17 # Third-party sites such as readthedocs.org will take option (2). 34 # The per-manual conf.py will set qemu_docdir for a single-manual build; 35 # otherwise set it here if this is an entire-manual-set build. 52 # -- General configuration ------------------------------------------------ [all …]
|
/qemu/hw/display/ |
H A D | xenfb.c | 4 * Copyright IBM, Corp. 2005-2006 5 * Copyright Red Hat, Inc. 2006-2008 33 #include "hw/xen/xen-legacy-backend.h" 45 /* -------------------------------------------------------------------- */ 87 /* -------------------------------------------------------------------- */ 94 if (xenstore_read_fe_uint64(&c->xendev, "page-ref", &val) == -1) in common_bind() 95 return -1; in common_bind() 99 if (xenstore_read_fe_int(&c->xendev, "event-channel", &c->xendev.remote_port) == -1) in common_bind() 100 return -1; in common_bind() 102 c->page = qemu_xen_foreignmem_map(c->xendev.dom, NULL, in common_bind() [all …]
|
/qemu/docs/interop/ |
H A D | qmp-spec.rst | 2 Copyright (C) 2009-2016 Red Hat, Inc. 5 later. See the COPYING file in the top-level directory. 12 The QEMU Machine Protocol (QMP) is a JSON-based 14 machine-level. It is also in use by the QEMU Guest Agent (QGA), which 18 be found in the :doc:`qemu-qmp-ref` and the :doc:`qemu-ga-ref`. 32 json-DATA-STRUCTURE-NAME 34 Where DATA-STRUCTURE-NAME is any valid JSON data structure, as defined 37 The server expects its input to be encoded in UTF-8, and sends its 40 For convenience, json-object members mentioned in this document will 43 hand, use of json-array elements presumes that preserving order is [all …]
|
/qemu/include/libdecnumber/ |
H A D | decNumber.h | 29 02110-1301, USA. */ 31 /* ------------------------------------------------------------------ */ 33 /* ------------------------------------------------------------------ */ 78 #define DECNUMUNITS ((DECNUMDIGITS+DECDPUN-1)/DECDPUN) 84 /* range: -1999999997 through 999999999 */ 104 /* characters. The worst cases (non-exponential and exponential */ 105 /* formats) are -0.00000{9...}# and -9.{9...}E+999999999# */ 109 /* ---------------------------------------------------------------- */ 111 /* ---------------------------------------------------------------- */ 193 #define decNumberIsFinite(dn) (((dn)->bits&DECSPECIAL)==0) [all …]
|
H A D | decContext.h | 29 02110-1301, USA. */ 31 /* ------------------------------------------------------------------ */ 33 /* ------------------------------------------------------------------ */ 37 /* status -- [any bits may be cleared, but not set, by user] */ 38 /* round -- must be one of the enumerated rounding modes */ 44 /* clamp -- must be either 0 or 1 */ 45 /* digits -- must be in the range 1 through 999999999 */ 46 /* emax -- must be in the range 0 through 999999999 */ 47 /* emin -- must be in the range 0 through -999999999 */ 48 /* extended -- must be either 0 or 1 [present only if DECSUBSET] */ [all …]
|