/qemu/docs/devel/ |
H A D | multiple-iothreads.txt | 15 readable and then invokes a callback. 32 The main loop is also deeply associated with the BQL, which is a 62 * LEGACY timer_new_ms() - create a timer 63 * LEGACY qemu_bh_new() - create a BH 64 * LEGACY qemu_bh_new_guarded() - create a BH with a device re-entrancy guard 72 * aio_set_fd_handler() - monitor a file descriptor 74 * aio_timer_new() - create a timer 75 * aio_bh_new() - create a BH 76 * aio_bh_new_guarded() - create a BH with a device re-entrancy guard 129 get a notification whenever bdrv_try_change_aio_context() moves a [all …]
|
H A D | reset.rst | 9 This interface allows objects to be grouped (on a tree basis); so that the 28 object to reset and a reset type. 39 This is called for a reset which is being done to put the system into a 40 clean state prior to loading a snapshot. (This corresponds to a reset 45 must not reinitialize on a snapshot-load reset. 58 maintaining a count of in-progress resets; it is crucial to call 67 parameter. Still, it is a programming error to call a resettable function on a 124 many of them have started a reset. 127 Handling reset in a resettable object 275 Changing a resettable parent [all …]
|
H A D | qom.rst | 30 Creating a QOM class 36 :caption: Creating a minimal type 146 :caption: Overriding a virtual function 199 their classes and never carry any state. As a consequence, a pointer to 212 a class. It usually operates on the object instance by passing it as a 235 :caption: Overriding a virtual method 311 common parts in a standard format. 319 :caption: Declaring a simple type 356 :caption: Defining a simple type 396 :caption: Defining a type which needs a class struct [all …]
|
H A D | kconfig.rst | 7 QEMU is a very versatile emulator; it can be built for a variety of 10 a POWER and an x86 board can run the same code to emulate a PCI network 12 can run the same code to emulate a SCSI disk while using different 13 SCSI adapters. Arm, s390 and x86 boards can all present a virtio-blk 34 code to make a leaner binary. 53 defines a Makefile variable whose name starts with ``CONFIG_``. 56 falsehood is written ``n``. They are defined in a Kconfig 101 you from building such a configuration. 141 **subsystems**, of which **buses** are a special case 176 conditional on a device group. [all …]
|
H A D | block-coroutine-wrapper.rst | 8 non-coroutine context; for this we need to start a coroutine, run the 9 needed function from it and wait for the coroutine to finish in a 10 BDRV_POLL_WHILE() loop. To run a coroutine we need a function with one 11 void* argument. So for each coroutine_fn function which needs a 12 non-coroutine interface, we should define a structure to pack the 13 parameters, define a separate function to unpack the parameters and 14 call the original function and finally define a new interface function 16 parameters into a struct, create a coroutine, run it and wait in 18 so we have a script to generate them. 24 ``bdrv_co_foo(<some args>)`` and need a non-coroutine interface for it,
|
H A D | fuzzing.rst | 22 To build the fuzzers, install a recent version of clang: 91 Code coverage is a crucial metric for evaluating a fuzzer's performance. 92 libFuzzer's output provides a "cov: " column that provides a total number of 112 Adding a new fuzzer 137 Writing a fuzz target can be a lot of effort (especially if a device driver has 170 fuzzer to only a few ``MemoryRegions``. 189 - ``.args`` OR ``.argfunc``: A string or pointer to a function returning a 192 a dynamically created temp directory, or a free tcp/udp port. 198 either a new device-specific fuzzer or a new generic-fuzz config. 214 Here are the steps for building a reproducer for a crash found by the [all …]
|
/qemu/docs/system/ |
H A D | authz.rst | 6 When configuring a QEMU network backend with either TLS certificates or SASL 22 When configuring the QEMU backend as a network server with TLS, there 45 ``joebloggs``, while if using Kerberos/GSSAPI it can have a realm 62 known that only a single client is to be allowed access. 129 This is a variant on the previous driver that allows for a more dynamic 199 subsystem. The above config would require a config 200 file /etc/pam.d/qemu-vnc-tls. For a simple file 209 The external file would then contain a list of usernames. 210 If x509 cert was being used as the username, a suitable 234 will be given a unique ID that needs to be referenced. [all …]
|
H A D | device-emulation.rst | 6 QEMU supports the emulation of a large number of devices from 8 on a chip (SoCs). Configuration of these is often a source of 18 A device front end is how a device is presented to the guest. The type 26 A front end is often paired with a back end, which describes how the 32 Most devices will exist on a BUS of some sort. Depending on the 34 automatically created. In most cases the BUS a device is attached to 38 (``bus=ID``) a device is attached to along with its address 41 Some devices, for example a PCI SCSI host controller, will add an 62 example being stored in a qcow2 file or accessing a raw host disk 74 the underlying hardware. This can be as simple as exposing a single [all …]
|
H A D | device-url-syntax.rst.inc | 4 These are specified using a special URL syntax. 16 the command line or a configuration file. 18 Since version QEMU 2.4 it is possible to specify a iSCSI request 60 Syntax for specifying a NBD device using Unix Domain Sockets 131 Syntax using a single filename: 185 Example: boot from a remote Fedora 20 live ISO image 193 Example: boot from a remote Fedora 20 cloud image using a local 194 overlay for writes, copy-on-read, and a readahead of 64k 202 Example: boot from an image stored on a VMware vSphere server with a 203 self-signed certificate using a local overlay for writes, a readahead [all …]
|
/qemu/pc-bios/s390-ccw/ |
H A D | s390-ccw.h | 33 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) argument 36 #define MIN_NON_ZERO(a, b) ((a) == 0 ? (b) : \ argument 37 ((b) == 0 ? (a) : (MIN(a, b)))) 40 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) argument
|
/qemu/docs/system/s390x/ |
H A D | vfio-ap.rst | 52 AP usage domain inside a specific AP. An AP queue is identified by a tuple 227 The ``apmask`` is a 256-bit mask that identifies a set of AP adapter IDs 234 The ``aqmask`` is a 256-bit mask that identifies a set of AP queue indexes 321 VFIO mediated device framework. To configure an AP matrix for a guest, a 346 When a mediated AP matrix device is created, a sysfs directory named after 478 To provide a mediated matrix device for use by a guest, the following option 599 Hot plug a vfio-ap device into a running guest 627 Hot unplug a vfio-ap device from a running guest 630 A vfio-ap device can be unplugged from a running KVM guest if a vfio-ap device 903 to the default drivers pool of a queue that is still assigned to a mediated [all …]
|
/qemu/target/ppc/translate/ |
H A D | processor-ctrl-impl.c.inc | 24 static bool trans_MSGCLR(DisasContext *ctx, arg_X_rb *a) 38 gen_helper_book3s_msgclr(tcg_env, cpu_gpr[a->rb]); 40 gen_helper_msgclr(tcg_env, cpu_gpr[a->rb]); 48 static bool trans_MSGSND(DisasContext *ctx, arg_X_rb *a) 62 gen_helper_book3s_msgsnd(tcg_env, cpu_gpr[a->rb]); 64 gen_helper_msgsnd(cpu_gpr[a->rb]); 72 static bool trans_MSGCLRP(DisasContext *ctx, arg_X_rb *a) 78 gen_helper_book3s_msgclrp(tcg_env, cpu_gpr[a->rb]); 85 static bool trans_MSGSNDP(DisasContext *ctx, arg_X_rb *a) 91 gen_helper_book3s_msgsndp(tcg_env, cpu_gpr[a->rb]); [all …]
|
/qemu/hw/net/rocker/ |
H A D | rocker_of_dpa.c | 241 if (memcmp(key->eth.src.a, zero_mac.a, ETH_ALEN) || in of_dpa_flow_key_dump() 253 if (memcmp(key->eth.dst.a, zero_mac.a, ETH_ALEN) || in of_dpa_flow_key_dump() 614 if (!memcmp(flow->mask.eth.dst.a, ff_mac.a, in of_dpa_bridging_learn() 1214 if (memcmp(key->eth.dst.a, ipv4_mcast.a, sizeof(key->eth.dst.a)) == 0 && in of_dpa_cmd_add_term_mac() 1215 memcmp(mask->eth.dst.a, ipv4_mask.a, sizeof(mask->eth.dst.a)) == 0) { in of_dpa_cmd_add_term_mac() 1218 if (memcmp(key->eth.dst.a, ipv6_mcast.a, sizeof(key->eth.dst.a)) == 0 && in of_dpa_cmd_add_term_mac() 1219 memcmp(mask->eth.dst.a, ipv6_mask.a, sizeof(mask->eth.dst.a)) == 0) { in of_dpa_cmd_add_term_mac() 1315 memcpy(mask->eth.dst.a, ff_mac.a, sizeof(mask->eth.dst.a)); in of_dpa_cmd_add_bridging() 2349 if (memcmp(key->eth.src.a, zero_mac.a, ETH_ALEN) || in of_dpa_flow_fill() 2350 memcmp(mask->eth.src.a, zero_mac.a, ETH_ALEN)) { in of_dpa_flow_fill() [all …]
|
/qemu/qapi/ |
H A D | machine-target.json | 39 # @static: Expand to a static CPU model, a combination of a static 95 # The result of a CPU model baseline. 108 # The result of a CPU model comparison. 136 # run in a certain configuration or if a compatible CPU model has 174 # - if a model cannot be used 228 # - if a model cannot be used 246 # The result of a cpu model expansion. 263 # Expands a given CPU model, @model, (or a combination of CPU model + 388 # Returns: a list of CpuDefinitionInfo 419 # by changing a modifier attribute of a CPU. Absent values will not [all …]
|
/qemu/docs/interop/ |
H A D | bitmaps.rst | 32 bitmap is 64K, each '1' bit means that a 64K region as a whole may have 42 e.g. the size of a 64KiB granularity bitmap on a 2TiB image is: 126 modifying a bitmap, and happens when the bitmap is being used for a backup 339 - Disabling a bitmap may be useful for examining which sectors of a disk 394 a copy. 554 create a new incremental backup chain attached to a drive. 653 use a transaction to reset the bitmap while making a new full backup: 709 #. Create a full backup and sync it to a dirty bitmap using any method: 1197 will receive a ``BLOCK_JOB_COMPLETE`` event with a failure message, 1200 In the case of a job being cancelled, the user will receive a [all …]
|
/qemu/tests/tcg/openrisc/ |
H A D | test_lf_eqs.c | 5 int a, result; in main() local 8 a = 0x1; in main() 19 : "+r"(a) in main() 22 if (a != result) { in main() 36 : "+r"(a) in main() 39 if (a != result) { in main()
|
H A D | test_lf_les.c | 5 int a; in main() local 9 a = 0; in main() 19 : "+r"(a) in main() 22 if (a != result) { in main() 39 : "+r"(a) in main() 42 if (a != result) { in main()
|
H A D | test_lf_ges.c | 5 int a, result; in main() local 8 a = 0; in main() 18 : "+r"(a) in main() 21 if (a != result) { in main() 38 : "+r"(a) in main() 41 if (a != result) { in main()
|
H A D | test_lf_gts.c | 5 int a, result; in main() local 8 a = 0; in main() 18 : "+r"(a) in main() 21 if (a != result) { in main() 36 : "+r"(a) in main() 39 if (a != result) { in main()
|
H A D | test_lf_nes.c | 5 int a; in main() local 9 a = 0; in main() 19 : "+r"(a) in main() 22 if (a != result) { in main() 39 : "+r"(a) in main() 42 if (a != result) { in main()
|
/qemu/docs/system/i386/ |
H A D | amd-memory-encryption.rst | 4 Secure Encrypted Virtualization (SEV) is a feature found on AMD processors. 9 unencrypted version. Each encrypted VM is associated with a unique encryption 10 key; if its data is accessed by a different entity using a different key the 16 inside the AMD-SP provides commands to support a common VM lifecycle. This 23 hypervisor to perform functions on behalf of a guest, there is architectural 35 images and provide a measurement than can be used as an attestation of a 49 several flags that restricts what can be done on a running SEV guest. 83 for a SEV-ES guest, encrypted VMSAs. This measurement is a signature of the 98 To launch a SEV guest:: 104 To launch a SEV-ES guest:: [all …]
|
/qemu/target/arm/ |
H A D | vfp_helper.c | 563 int a, b, r; in recip_estimate() local 565 a = (input * 2) + 1; in recip_estimate() 566 b = (1 << 19) / a; in recip_estimate() 788 assert(128 <= a && a < 512); in do_recip_sqrt_estimate() 789 if (a < 256) { in do_recip_sqrt_estimate() 790 a = a * 2 + 1; in do_recip_sqrt_estimate() 792 a = (a >> 1) << 1; in do_recip_sqrt_estimate() 793 a = (a + 1) * 2; in do_recip_sqrt_estimate() 968 if ((a & 0x80000000) == 0) { in HELPER() 972 input = extract32(a, 23, 9); in HELPER() [all …]
|
/qemu/docs/specs/ |
H A D | ppc-spapr-hotplug.rst | 18 a Dynamic Resource Connector (DRC) is used to assign a particular dynamic 44 Each entry: a NULL-terminated ``<name>`` string encoded as a byte array. 48 consist of the type of the resource followed by a space and a numerical 54 for the device, concatenated by a hyphen. This provides a mapping of 55 resources to a physical location in a chassis for debugging purposes. For 107 Each entry: a NULL-terminated ``<type>`` string encoded as a byte array. 110 "CPU" for a CPU. 116 "28" for a PCI slot. 125 Each DRC is given a globally unique DRC index, and resources associated with a 263 with a particular DRC. [all …]
|
/qemu/include/fpu/ |
H A D | softfloat-macros.h | 133 z = a; in shift32RightJamming() 136 z = ( a>>count ) | ( ( a<<( ( - count ) & 31 ) ) != 0 ); in shift32RightJamming() 139 z = ( a != 0 ); in shift32RightJamming() 159 z = a; in shift64RightJamming() 162 z = ( a>>count ) | ( ( a<<( ( - count ) & 63 ) ) != 0 ); in shift64RightJamming() 165 z = ( a != 0 ); in shift64RightJamming() 507 mulu64(z1Ptr, z0Ptr, a, b); in mul64To128() 606 index = ( a>>27 ) & 15; in estimateSqrt32() 610 a >>= 1; in estimateSqrt32() 614 z = a / z + z; in estimateSqrt32() [all …]
|
/qemu/target/arm/tcg/ |
H A D | gengvec64.c | 162 tcg_gen_gvec_4(d, n, m, a, oprsz, maxsz, &op); in gen_gvec_eor3() 201 tcg_gen_add_i64(t, a, b); in gen_suqadd_bhs() 213 tcg_gen_sub_i64(t, max, a); in gen_suqadd_d() 217 tcg_gen_add_i64(res, a, t); in gen_suqadd_d() 231 tcg_gen_sub_vec(vece, u, max, a); in gen_suqadd_vec() 235 tcg_gen_add_vec(vece, t, u, a); in gen_suqadd_vec() 285 tcg_gen_add_i64(tmp, a, b); in gen_usqadd_bhs() 300 tcg_gen_add_i64(tmp, a, b); in gen_usqadd_d() 323 tcg_gen_usadd_vec(vece, u, a, b); in gen_usqadd_vec() 324 tcg_gen_ussub_vec(vece, t, a, t); in gen_usqadd_vec() [all …]
|