/qemu/subprojects/libvhost-user/ |
H A D | libvhost-user.h | 10 * This work is licensed under the terms of the GNU GPL, version 2 or 11 * later. See the COPYING file in the top-level directory. 34 * vhost in the kernel usually supports 509 mem slots. 509 used to be the 198 uint32_t size; /* the following payload size */ 249 /* called by VHOST_USER_GET_FEATURES to get the features bitmask */ 253 /* get the protocol feature bitmask from the underlying vhost 256 /* enable protocol features in the underlying vhost implementation. */ 264 * If the queue is processed in order, in which case it will be 269 /* get the config space of the device */ 271 /* set the config space of the device */ [all …]
|
/qemu/block/ |
H A D | vhdx-log.c | 9 * This is based on the "VHDX Format Specification v1.00", published 8/25/2012 13 * This file covers the functionality of the metadata log writing, parsing, and 16 * This work is licensed under the terms of the GNU LGPL, version 2 or later. 17 * See the COPYING.LIB file in the top-level directory. 45 /* The log located on the disk is circular buffer containing 48 * It is assumed for the read/write functions below that the 50 * the buffer is full. Given the validation methods used for each 56 /* Allow peeking at the hdr entry at the beginning of the current 57 * read index, without advancing the read index */ 76 * and b) the log length is a multiple of 1MB. So, there in vhdx_log_peek_hdr() [all …]
|
H A D | dmg.h | 8 * of this software and associated documentation files (the "Software"), to deal 9 * in the Software without restriction, including without limitation the rights 11 * copies of the Software, and to permit persons to whom the Software is 12 * furnished to do so, subject to the following conditions: 14 * The above copyright notice and this permission notice shall be included in 15 * all copies or substantial portions of the Software. 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN [all …]
|
/qemu/include/qapi/ |
H A D | error.h | 11 * This work is licensed under the terms of the GNU LGPL, version 2. See 12 * the COPYING.LIB file in the top-level directory. 21 * parameter. It should be the last parameter, except for functions 24 * - You may pass NULL to not receive the error, &error_abort to abort 26 * variable containing NULL to receive the error. 28 * - Separation of concerns: the function is responsible for detecting 29 * errors and failing cleanly; handling the error is its caller's 30 * job. Since the value of @errp is about handling the error, the 33 * - The function may pass @errp to functions it calls to pass on 37 * - On success, the function should not touch *errp. On failure, it [all …]
|
/qemu/tcg/tci/ |
H A D | tcg-target.h | 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights 10 * copies of the Software, and to permit persons to whom the Software is 11 * furnished to do so, subject to the following conditions: 13 * The above copyright notice and this permission notice shall be included in 14 * all copies or substantial portions of the Software. 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN [all …]
|
/qemu/include/qemu/ |
H A D | coroutine_int.h | 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights 10 * copies of the Software, and to permit persons to whom the Software is 11 * furnished to do so, subject to the following conditions: 13 * The above copyright notice and this permission notice shall be included in 14 * all copies or substantial portions of the Software. 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN [all …]
|
H A D | lockcnt.h | 28 * @lockcnt: the lockcnt to initialize 37 * @lockcnt: the lockcnt to destruct 45 * @lockcnt: the lockcnt to operate on 47 * If the lockcnt's count is zero, wait for critical sections 48 * to finish and increment lockcnt's count to 1. If the count 51 * Because this function can wait on the mutex, it must not be 52 * called while the lockcnt's mutex is held by the current thread. 53 * For the same reason, qemu_lockcnt_inc can also contribute to 67 * @lockcnt: the lockcnt to operate on 74 * @lockcnt: the lockcnt to operate on [all …]
|
H A D | sockets.h | 1 /* headers to use the BSD sockets */ 21 * @type: specifies the socket type. 22 * @protocol: specifies a particular protocol to be used with the socket 23 * @sv: an array to store the pair of socket created 25 * Creates an unnamed pair of connected sockets in the specified domain, 26 * of the specified type, and using the optionally specified protocol. 27 * And automatically set the close-on-exec flags on the returned sockets 37 * Return the number of bytes transferred over the socket. 41 * Any of the possibilities with non-blocking socket's is bad: 43 * - busy wait adding (errno == EAGAIN) to the loop [all …]
|
/qemu/include/hw/riscv/ |
H A D | boot_opensbi.h | 5 * Based on include/sbi/{fw_dynamic.h,sbi_scratch.h} from the OpenSBI project. 46 * It is possible that the previous booting stage uses same link 47 * address as the FW_DYNAMIC firmware. In this case, the relocation 48 * lottery mechanism can potentially overwrite the previous booting 49 * stage while other HARTs are still running in the previous booting 51 * the previous booting stage can specify last HART that will jump 52 * to the FW_DYNAMIC firmware as the preferred boot HART. 54 * To avoid specifying a preferred boot HART, the previous booting 55 * stage can set it to -1UL which will force the FW_DYNAMIC firmware 56 * to use the relocation lottery mechanism. [all …]
|
/qemu/docs/system/devices/ |
H A D | ivshmem.rst | 4 On Linux hosts, a shared memory device is available. The basic syntax 18 If desired, interrupts can be sent between guest VMs accessing the same 20 server and using a chardev socket to connect to it. The code for the 22 syntax when using the shared memory server is: 26 # First start the ivshmem server once and for all 33 When using the server, the guest will be assigned a VM ID (>=0) that 34 allows guests using the same server to communicate via interrupts. 41 With device property ``master=on``, the guest will copy the shared 42 memory on migration to the destination host. With ``master=off``, the 43 guest will not be able to migrate with the device attached. In the [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | common.qemu | 6 # Each instance can choose, at launch, to use either the QMP or the 9 # All instances are cleaned up via _cleanup_qemu, including killing the 15 # it under the terms of the GNU General Public License as published by 16 # the Free Software Foundation; either version 2 of the License, or 19 # This program is distributed in the hope that it will be useful, 20 # but WITHOUT ANY WARRANTY; without even the implied warranty of 21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24 # You should have received a copy of the GNU General Public License 44 # Override QEMU_COMM_TIMEOUT for a timeout different than the 47 # $1: The handle to use [all …]
|
/qemu/common-user/host/ppc64/ |
H A D | safe-syscall.inc.S | 3 * to handle signals occurring at the same time as system calls. 9 * This work is licensed under the terms of the GNU GPL, version 2 or later. 10 * See the COPYING file in the top-level directory. 20 /* This is the entry point for making a system call. The calling 21 * convention here is that of a C varargs function with the 22 * first argument an 'int *' to the signal_pending flag, the 23 * second one the system call number (as a 'long'), and all further 42 * and return the result in r3 43 * and the syscall instruction needs 46 * and returns the result in r3 [all …]
|
/qemu/common-user/host/ppc/ |
H A D | safe-syscall.inc.S | 3 * to handle signals occurring at the same time as system calls. 8 * This work is licensed under the terms of the GNU GPL, version 2 or later. 9 * See the COPYING file in the top-level directory. 13 * Standardize on the _CALL_FOO symbols used by GCC: 43 * This is the entry point for making a system call. The calling 44 * convention here is that of a C varargs function with the 45 * first argument an 'int *' to the signal_pending flag, the 46 * second one the system call number (as a 'long'), and all further 60 * and return the result in r3 61 * and the syscall instruction needs [all …]
|
/qemu/docs/system/ |
H A D | images.rst | 15 You can create a disk image with the command:: 19 where myimage.img is the disk image filename and mysize is its size in 20 kilobytes. You can add an ``M`` suffix to give the size in megabytes and 23 See the ``qemu-img`` invocation documentation for more information. 30 If you use the option ``-snapshot``, all disk images are considered as 32 created in ``/tmp``. You can however force the write back to the raw 33 disk images by using the ``commit`` monitor command (or C-a s in the 41 VM snapshots are snapshots of the complete virtual machine including CPU 42 state, RAM, device state and the content of all the writable disks. In 44 writable block device using the ``qcow2`` disk image format. Normally [all …]
|
/qemu/docs/system/s390x/ |
H A D | css.rst | 1 The virtual channel subsystem 9 All channel devices support the ``devno`` property, which takes a parameter 10 in the form ``<cssid>.<ssid>.<device number>``. 12 The default channel subsystem image id (``<cssid>``) is ``0xfe``. Devices in 15 if the guest OS does not enable MCSS-E (which is true for all supported guest 18 Supported values for the subchannel set id (``<ssid>``) range from ``0-3``. 19 Devices with a ssid that is not ``0`` will not be visible if the guest OS 24 The device number can range from ``0-0xffff``. 26 If the ``devno`` property is not specified for a device, QEMU will choose the 27 next free device number in subchannel set 0, skipping to the next subchannel [all …]
|
/qemu/include/system/ |
H A D | os-posix.h | 8 * of this software and associated documentation files (the "Software"), to deal 9 * in the Software without restriction, including without limitation the rights 11 * copies of the Software, and to permit persons to whom the Software is 12 * furnished to do so, subject to the following conditions: 14 * The above copyright notice and this permission notice shall be included in 15 * all copies or substantial portions of the Software. 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN [all …]
|
H A D | os-wasm.h | 10 * of this software and associated documentation files (the "Software"), to deal 11 * in the Software without restriction, including without limitation the rights 13 * copies of the Software, and to permit persons to whom the Software is 14 * furnished to do so, subject to the following conditions: 16 * The above copyright notice and this permission notice shall be included in 17 * all copies or substantial portions of the Software. 19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN [all …]
|
H A D | ramblock.h | 9 * This work is licensed under the terms of the GNU GPL, version 2 or 10 * later. See the COPYING file in the top-level directory. 16 * The functions declared here will be removed soon. 40 /* Protected by the BQL. */ 42 /* RCU-enabled, writes protected by the ramlist lock */ 57 /* bitmap of pages present in the migration file */ 60 * offset in the file pages belonging to this ramblock are saved, 70 * bitmap to track already cleared dirty bitmap. When the bit is 71 * set, it means the corresponding memory chunk needs a log-clear. 72 * Set this up to non-NULL to enable the capability to postpone [all …]
|
/qemu/tests/qtest/ |
H A D | cmsdk-apb-watchdog-test.c | 2 * QTest testcase for the CMSDK APB watchdog device 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or 11 * This program is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 94 /* Step to just past the 500th tick */ in test_watchdog() 99 /* Just past the 1000th tick: timer should have fired */ in test_watchdog() 108 /* Writing any value to WDOGINTCLR clears the interrupt and reloads */ in test_watchdog() 120 * This test can only be executed in the stellaris board since it relies on a [all …]
|
/qemu/hw/timer/ |
H A D | sse-counter.c | 8 * it under the terms of the GNU General Public License version 2 or 13 * This is a model of the "System counter" which is documented in 14 * the Arm SSE-123 Example Subsystem Technical Reference Manual: 17 * The system counter is a non-stop 64-bit up-counter. It provides 18 * this count value to other devices like the SSE system timer, 20 * from a clock. Internally to the counter the count is actually 23 * The hardware has the optional feature that it supports dynamic 25 * one is used is selected via a CLKSEL input signal. Since the 27 * the HWCLKSW=0 configuration. 41 /* Registers in the control frame */ [all …]
|
/qemu/common-user/host/s390x/ |
H A D | safe-syscall.inc.S | 3 * to handle signals occurring at the same time as system calls. 9 * This work is licensed under the terms of the GNU GPL, version 2 or later. 10 * See the COPYING file in the top-level directory. 18 /* This is the entry point for making a system call. The calling 19 * convention here is that of a C varargs function with the 20 * first argument an 'int *' to the signal_pending flag, the 21 * second one the system call number (as a 'long'), and all further 45 * The syscall calling convention isn't the same as the C one: 49 * and return the result in r2 50 * and the syscall instruction needs [all …]
|
/qemu/scripts/coverity-scan/ |
H A D | run-coverity-scan | 6 # This work is licensed under the terms of the GNU GPL version 2, 8 # See the COPYING file in the top-level directory. 14 # run the (closed-source) coverity build tools, so don't 19 # build. (This is necessary so that the filenames that the Coverity 20 # Scan server sees are relative paths that match up with the component 22 # The host machine should have as many of QEMU's dependencies 25 # To do an upload you need to be a maintainer in the Coverity online 26 # service, and you will need to know the "Coverity token", which is a 27 # secret 8 digit hex string. You can find that from the web UI in the 32 # --dry-run : run the tools, but don't actually do the upload [all …]
|
/qemu/tests/uefi-test-tools/UefiTestToolsPkg/BiosTablesTest/ |
H A D | BiosTablesTest.c | 2 Populate the BIOS_TABLES_TEST structure. 6 This program and the accompanying materials are licensed and made available 7 under the terms and conditions of the BSD License that accompanies this 8 distribution. The full text of the license may be found at 11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT 25 Wait for a keypress with a message that the application is about to exit. 72 // Assuming the application was launched by the boot manager as a boot in BiosTablesTestMain() 73 // loader, exiting with error will cause the boot manager to proceed with in BiosTablesTestMain() 74 // the remaining boot options. If there are no other boot options, the boot in BiosTablesTestMain() 75 // manager menu will be pulled up. Give the user a chance to read the error in BiosTablesTestMain() [all …]
|
/qemu/docs/interop/ |
H A D | qemu-ga.rst | 14 The QEMU Guest Agent is a daemon intended to be run within virtual 15 machines. It allows the hypervisor host to perform various operations 16 in the guest, such as: 18 - get information from the guest 19 - set the guest's system time 21 - sync and freeze the filesystems 22 - suspend the guest 29 configuration options on the command line. For the same key, the last 30 option wins, but the lists accumulate (see below for configuration 33 If an allowed RPCs list is defined in the configuration, then all [all …]
|
H A D | vhost-user.json | 9 # This work is licensed under the terms of the GNU GPL, version 2 or 10 # later. See the COPYING file in the top-level directory. 19 # List the various vhost user backend types. 65 # @read-only: The --read-only command line option is supported. 66 # @blk-file: The --blk-file command line option is supported. 96 # @evdev-path: The --evdev-path command line option is supported. 97 # @no-grab: The --no-grab command line option is supported. 127 # @render-node: The --render-node command line option is supported. 128 # @virgl: The --virgl command line option is supported. 158 # @type: The vhost user backend type. [all …]
|