/qemu/include/hw/xen/interface/ |
H A D | arch-arm.h | 1 /* SPDX-License-Identifier: MIT */ 3 * arch-arm.h 21 * 32- or 64-bit), the second argument in x1/r1, the third in x2/r2, 26 * is an inter-procedure-call scratch register (e.g. for use in linker 40 * EABI) and Procedure Call Standard for the ARM 64-bit Architecture 41 * (AAPCS64). Where there is a conflict the 64-bit standard should be 42 * used regardless of guest type. Structures which are passed as 47 * which is mapped as Normal Inner Write-Back Outer Write-Back Inner-Shareable. 49 * - hypercall arguments passed via a pointer to guest memory. 50 * - memory shared via the grant table mechanism (including PV I/O [all …]
|
/qemu/scripts/ |
H A D | kernel-doc | 2 # SPDX-License-Identifier: GPL-2.0-only 10 ## Copyright (C) 2005-2012 Randy Dunlap ## 19 # 18/01/2001 - Cleanups 22 # -- huggie@earth.li 24 # 27/06/2001 - Allowed whitespace after initial "/**" and 26 # -- Christian Kreibich <ck@whoop.org> 29 # - add perldoc documentation 30 # - Look more closely at some of the scarier bits :) 32 # 26/05/2001 - Support for separate source and object trees. 36 # 23/09/2001 - Added support for typedefs, structs, enums and unions [all …]
|
H A D | get_maintainer.pl | 9 # perl scripts/get_maintainer.pl [OPTIONS] -f <file> 36 my $email_git_since = "1-year-ago"; 37 my $email_hg_since = "-365"; 68 push(@signature_tags, "Signed-off-by:"); 69 push(@signature_tags, "Reviewed-by:"); 70 push(@signature_tags, "Acked-by:"); 74 # rfc822 email address - preloaded methods go here. 76 my $rfc822_char = '[\\000-\\377]'; 78 # VCS command support: class-like functions and strings 84 "available" => '(which("git") ne "") && (-e ".git")', [all …]
|
H A D | checkpatch.pl | 5 # (c) 2008-2010 Andy Whitcroft <apw@canonical.com> 42 sub help { 49 $P [OPTION]... [GIT-REV-LIST] 54 -q, --quiet quiet 55 --no-tree run without a qemu tree 56 --no-signoff do not check for 'Signed-off-by' line 57 --patch treat FILE as patchfile 58 --branch treat args as GIT revision list 59 --emacs emacs compile window format 60 --terse one line per report [all …]
|
H A D | disas-objdump.pl | 8 # Default to the system objdump if a cross-compiler edition not given. 16 'host-objdump=s' => \$hobjdump, 17 'target-objdump=s' => \$tobjdump, 18 'h|host-machine=s' => \$hmachine, 19 't|target-machine=s' => \$tmachine); 22 die "No host or target machine type" if !$hmachine && !$tmachine; 29 # Pre-construct the command-lines for executing the dump. 30 sub mkobjcommand ($$) { 34 return "$cmd -m $mach --disassemble-all -b binary"; 40 # Zero-initialize current dumping state. [all …]
|
H A D | block-coroutine-wrapper.py | 8 Usage: block-coroutine-wrapper.py generated-file.c FILE.[ch]... 32 copyright = re.sub('^.*Copyright', 'Copyright', __doc__, flags=re.DOTALL) 33 copyright = re.sub('^(?=.)', ' * ', copyright.strip(), flags=re.MULTILINE) 34 copyright = re.sub('^$', ' *', copyright, flags=re.MULTILINE) 37 * File is generated by scripts/block-coroutine-wrapper.py 44 #include "block/block-gen.h" 46 #include "block/dirty-bitmap.h" 52 r'(?P<type>.*[ *])' 53 r'(?P<name>[a-z][a-z0-9_]*)' 56 def __init__(self, param_decl: str) -> None: [all …]
|
/qemu/linux-headers/linux/ |
H A D | stddef.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 11 /* Not all C++ standards support type declarations inside an anonymous union */ 19 * __struct_group() - Create a mirrored named and anonyomous struct 21 * @TAG: The tag name for the named sub-struct (usually empty) 22 * @NAME: The identifier name of the mirrored sub-struct 28 * normally without sub-struct naming, and the latter can be used to 45 * __DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union 47 * @TYPE: The type of each flexible array element 54 #define __DECLARE_FLEX_ARRAY(TYPE, NAME) \ argument 57 TYPE NAME[]; \
|
/qemu/tests/qapi-schema/ |
H A D | qapi-schema-test.out | 11 module qapi-schema-test.json 25 object q_obj_Union-base 26 member type: EnumOne optional=False 28 base q_obj_Union-base 29 tag type 34 command user-def-cmd0 Empty2 -> Empty2 75 member a-b: bool optional=True 87 object q_obj_UserDefFlatUnion2-base 92 base q_obj_UserDefFlatUnion2-base 99 tag type [all …]
|
H A D | qapi-schema-test.json | 1 # *-*- Mode: Python -*-* 10 'member-name-exceptions': [ 13 # Commands allowed to return a non-dictionary: 14 'command-returns-exceptions': [ 15 'guest-get-time', 16 'guest-sync' ] } } 19 'data': { 'integer': {'type': 'int'}, 'boolean': 'bool', 'string': 'str' } } 35 'base': { 'type': 'EnumOne' }, 'discriminator': 'type', 38 { 'command': 'user-def-cmd0', 'data': 'Empty2', 'returns': 'Empty2' } 85 'data': { 'intb': 'int', '*a-b': 'bool' } } [all …]
|
H A D | struct-base-clash.err | 1 struct-base-clash.json: In struct 'Sub': 2 struct-base-clash.json:5: member 'name' collides with member 'name' of type 'Base'
|
H A D | struct-base-clash-deep.err | 1 struct-base-clash-deep.json: In struct 'Sub': 2 struct-base-clash-deep.json:10: member 'name' collides with member 'name' of type 'Base'
|
/qemu/rust/bits/src/ |
H A D | lib.rs | 1 // SPDX-License-Identifier: MIT or Apache-2.0 or GPL-2.0-or-later 5 /// Define a struct with a single field of type $type. Include public constants 15 /// [`Not`](std::ops::Not), [`Sub`](std::ops::Sub); [`Debug`](std::fmt::Debug), 18 /// [`UpperHex`](std::fmt::UpperHex); [`From`]`<type>`/[`Into`]`<type>` where 19 /// type is the type specified in the definition. 70 /// type `$type`. Supported operators are `!` (unary), `-`, `&`, `^`, `|`. 94 $struct_vis:vis struct $struct_name:ident($field_vis:vis $type:ty) { 103 $struct_vis struct $struct_name($field_vis $type); 110 const VALID__: $type = $( Self::$const.0 )|+ $(|$mask)?; 114 pub const fn empty() -> Self { [all …]
|
/qemu/migration/ |
H A D | vmstate.c | 4 * Copyright (c) 2009-2017 Red Hat Inc 10 * See the COPYING file in the top-level directory. 18 #include "qobject/json-writer.h" 19 #include "qemu-file.h" 21 #include "qemu/error-report.h" 37 if (field->field_exists) { in vmstate_field_exists() 39 result = field->field_exists(opaque, version_id); in vmstate_field_exists() 40 trace_vmstate_field_exists(vmsd->name, field->name, field->version_id, in vmstate_field_exists() 48 result = field->version_id <= version_id; in vmstate_field_exists() 65 assert(field->flags & VMS_ARRAY_OF_POINTER); in vmsd_create_fake_nullptr_field() [all …]
|
/qemu/pc-bios/optionrom/ |
H A D | multiboot.S | 48 sub $0x20, %ecx 49 sub $0x30, %esp 96 /* The multiboot entry size has offset -4, so leave some space */ 113 movl %ecx, %es:-4(%edi) 135 /* Skip if type != 1 */ 158 addl %es:-4(%di), %edi 162 sub $0x100000, %edx 175 /* the LJMP sets CS for us and gets us to 32-bit */ 216 /* 0x08: code segment (base=0, limit=0xfffff, type=32bit code exec/read, DPL=0, 4k) */ 219 /* 0x10: data segment (base=0, limit=0xfffff, type=32bit data read/write, DPL=0, 4k) */ [all …]
|
H A D | linuxboot.S | 53 /* SP = cmdline_addr-real_addr-16 */ 57 sub %eax, %ebx 58 sub $16, %ebx 91 /* Check if using kernel-specified initrd address */ 97 and $-4096, %eax // (apart from padding for page) 133 andl $-4096, %edi /* EDI = start of initrd */ 143 sub $16, %esp 146 movw $((3 * 8) - 1), -16(%bp) 151 movl %eax, -14(%bp) 154 data32 lgdt -16(%bp) [all …]
|
H A D | pvh.S | 71 sub $0x20, %ecx 72 sub $0x30, %esp 145 /* the LJMP sets CS for us and gets us to 32-bit */ 174 * (base=0, limit=0xfffff, type=32bit code exec/read, DPL=0, 4k) 180 * (base=0, limit=0xfffff, type=32bit data read/write, DPL=0, 4k) 186 * (base=0, limit=0x0ffff, type=16bit code exec/read/conf, DPL=0, 1b) 192 * (base=0, limit=0x0ffff, type=16bit data read/write, DPL=0, 1b) 197 .short (5 * 8) - 1
|
/qemu/storage-daemon/qapi/ |
H A D | qapi-schema.json | 1 # -*- Mode: Python -*- 11 # modules are only generated if an array of the respective type is already used 13 # the array type in the main schema, even if it is unused outside of the 22 # For locating a particular item, please see the `qapi-qsd-index`. 26 # .. qmp-example:: 28 # -> ... text sent by client (commands) ... 29 # <- ... text sent by server (command responses and events) ... 35 # :doc:`QEMU Machine Protocol Specification </interop/qmp-spec>` 42 # Documentation generated with qapi-gen.py is in source order, with 43 # included sub-schemas inserted at the first include directive [all …]
|
/qemu/scripts/qapi/ |
H A D | common.py | 5 # Copyright (c) 2013-2018 Red Hat Inc. 12 # See the COPYING file in the top-level directory. 30 def camel_to_upper(value: str) -> str: 36 ENUMName -> ENUM_NAME 37 EnumName1 -> ENUM_NAME1 38 ENUM_NAME -> ENUM_NAME 39 ENUM_NAME1 -> ENUM_NAME1 40 ENUM_Name2 -> ENUM_NAME2 41 ENUM24_Name -> ENUM24_NAME 54 if len(ret) > 2 and ret[-2].isalnum(): [all …]
|
/qemu/docs/devel/ |
H A D | multi-process.rst | 1 Multi-process QEMU 6 This is the design document for multi-process QEMU. It does not 31 ------------- 34 VM control point, where VMs can be created, migrated, re-configured, and 40 A multi-process QEMU 43 A multi-process QEMU involves separating QEMU services into separate 51 A QEMU control process would remain, but in multi-process mode, will 53 provide the user interface to hot-plug devices or live migrate the VM. 55 A first step in creating a multi-process QEMU is to separate IO services 62 ---------------------- [all …]
|
/qemu/linux-headers/asm-x86/ |
H A D | kvm.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 131 __u8 type; member 426 * double-fetch types of vulnerabilities. 462 /* vendor-independent attributes for system fd (group 0) */ 466 /* vendor-specific groups and attributes for system fd */ 513 * Define data region as 0 bytes to preserve backwards-compatability 575 __u16 type; member 583 #define KVM_XEN_INVALID_GFN ((__u64)-1) 588 __u32 type; /* EVTCHNSTAT_ipi / EVTCHNSTAT_interdomain */ member 630 __u16 type; member [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | iotests.py | 1 # Common utilities and Python wrappers for qemu-iotests 35 List, Optional, Sequence, TextIO, Tuple, Type, TypeVar) 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' [all …]
|
/qemu/include/hw/xen/interface/io/ |
H A D | netif.h | 1 /* SPDX-License-Identifier: MIT */ 5 * Unified network-device I/O interface for Xen guest OSes. 7 * Copyright (c) 2003-2004, Keir Fraser 35 * Notifications after enqueuing any type of message should be conditional on 38 * feature 'feature-rx-notify' via xenbus. Otherwise the backend will assume 43 * "feature-split-event-channels" is introduced to separate guest TX 49 * "event-channel-tx" and "event-channel-rx" respectively. If frontend 50 * doesn't want to use this feature, it just writes "event-channel" 56 * If supported, the backend will write the key "multi-queue-max-queues" to 60 * key "multi-queue-num-queues", set to the number they wish to use, which [all …]
|
/qemu/tcg/i386/ |
H A D | tcg-target.c.inc | 94 /* The Win64 ABI has xmm6-xmm15 as caller-saves, and we do not save 95 any of them. Therefore only allow xmm0-xmm5 to be allocated. */ 183 static bool patch_reloc(tcg_insn_unit *code_ptr, int type, 187 switch(type) { 189 value -= (uintptr_t)tcg_splitwx_to_rx(code_ptr); 198 value -= (uintptr_t)tcg_splitwx_to_rx(code_ptr); 212 TCGType type, TCGCond cond, int vece) 217 if (type == TCG_TYPE_I32) { 235 * TESTQ -> TESTL (uint32_t) 236 * TESTQ -> BT (is_power_of_2) [all …]
|
/qemu/include/hw/s390x/ |
H A D | css.h | 8 * your option) any later version. See the COPYING file in the top-level 19 #include "target/s390x/cpu-qom.h" 36 uint8_t type; member 44 uint16_t cu_type; /* control unit type */ 46 uint16_t dev_type; /* device type */ 90 #define CDS_F_FMT 0x10 /* CCW format-1 */ 121 /* channel-subsystem related things: */ 137 /* transport-provided data: */ 149 sch->curr_status.scsw.ctrl &= ~(SCSW_ACTL_DEVICE_ACTIVE | in sch_gen_unit_exception() 151 sch->curr_status.scsw.ctrl |= SCSW_STCTL_PRIMARY | in sch_gen_unit_exception() [all …]
|
/qemu/common-user/host/loongarch64/ |
H A D | safe-syscall.inc.S | 2 * safe-syscall.inc.S : host-specific assembly fragment 4 * This is intended to be included by common-user/safe-syscall.S 8 * Based on safe-syscall.inc.S code for RISC-V, 13 * See the COPYING file in the top-level directory. 19 .type safe_syscall_base, @function 20 .type safe_syscall_start, @function 21 .type safe_syscall_end, @function 72 /* If signal_pending is non-zero, don't do the call */ 78 li.w $t2, -4096 83 0: sub.d $a0, $zero, $a0 [all …]
|