/qemu/tests/tcg/s390x/ |
H A D | branch-relative-long.c | 20 const char *code; member 26 .code = brasl_r0, 30 .code = brcl_0xf, 42 size_t test_length = 0x100000000 + (tests[i].code_end - tests[i].code); in main() 58 void (*code)(void) = (void *)(buf + 0x100000000); in main() local 60 memcpy(code, tests[i].code, tests[i].code_end - tests[i].code); in main() 61 code(); in main() 62 memset(code, 0, tests[i].code_end - tests[i].code); in main()
|
/qemu/contrib/gitdm/ |
H A D | filetypes.txt | 43 filetype code \.c$ # C 44 filetype code \.c.inc$ # C 45 filetype code \.C$ # C++ 46 filetype code \.cpp$ # C++ 47 filetype code \.c\+\+$ # C++ 48 filetype code \.cxx$ # C++ 49 filetype code \.cc$ # C++ 54 filetype code \.sh$ # Shell 55 filetype code \.pl$ # Perl 56 filetype code \.py$ # Python [all …]
|
/qemu/hw/m68k/ |
H A D | next-kbd.c | 71 static void queue_code(void *opaque, int code); 198 int key = code & KD_KEYMASK; in queue_code() 199 int release = code & 0x80; in queue_code() 202 if (code == 0xE0) { in queue_code() 206 if (code == 0x2A || code == 0x1D || code == 0x36) { in queue_code() 207 if (code == 0x2A) { in queue_code() 209 } else if (code == 0x36) { in queue_code() 212 } else if (code == 0x1D && !ext) { in queue_code() 214 } else if (code == 0x1D && ext) { in queue_code() 219 } else if (code == (0x2A | 0x80) || code == (0x1D | 0x80) || in queue_code() [all …]
|
/qemu/roms/ |
H A D | edk2-build.config | 31 # grub.efi uses EfiLoaderData for code 33 # shim.efi has broken MemAttr code 46 cpy1 = FV/OVMF_CODE.fd edk2-i386-code.fd 57 cpy1 = FV/OVMF_CODE.fd edk2-i386-secure-code.fd 69 cpy1 = FV/OVMF_CODE.fd edk2-x86_64-code.fd 79 cpy1 = FV/OVMF_CODE.fd edk2-x86_64-secure-code.fd 102 cpy1 = FV/QEMU_EFI.fd edk2-arm-code.fd 104 pad1 = edk2-arm-code.fd 64m 119 cpy1 = FV/QEMU_EFI.fd edk2-aarch64-code.fd 120 pad1 = edk2-aarch64-code.fd 64m [all …]
|
/qemu/tests/qtest/ |
H A D | boot-serial-test.c | 240 const uint8_t *code = NULL; in test_machine() local 249 code = test->kernel; in test_machine() 252 code = test->bios; in test_machine() 256 if (code) { in test_machine() 262 wlen = write(code_fd, code, test->codesize); in test_machine() 274 codeparam, code ? codetmp : "", test->machine, in test_machine() 276 if (code) { in test_machine()
|
/qemu/hw/s390x/ |
H A D | sclp.c | 36 static inline bool sclp_command_code_valid(uint32_t code) in sclp_command_code_valid() argument 38 switch (code & SCLP_CMD_CODE_MASK) { in sclp_command_code_valid() 53 uint32_t code) in sccb_verify_boundary() argument 58 switch (code & SCLP_CMD_CODE_MASK) { in sccb_verify_boundary() 248 switch (code & SCLP_CMD_CODE_MASK) { in sclp_execute() 263 efc->command_handler(ef, sccb, code); in sclp_execute() 287 if (!sclp_command_code_valid(code)) { in sclp_service_call_protected() 292 sclp_c->execute(sclp, work_sccb, code); in sclp_service_call_protected() 300 int sclp_service_call(S390CPU *cpu, uint64_t sccb, uint32_t code) in sclp_service_call() argument 336 if (!sclp_command_code_valid(code)) { in sclp_service_call() [all …]
|
H A D | s390-virtio-hcall.c | 20 void s390_register_virtio_hypercall(uint64_t code, s390_virtio_fn fn) in s390_register_virtio_hypercall() argument 22 assert(code < MAX_DIAG_SUBCODES); in s390_register_virtio_hypercall() 23 assert(!s390_diag500_table[code]); in s390_register_virtio_hypercall() 25 s390_diag500_table[code] = fn; in s390_register_virtio_hypercall()
|
/qemu/tests/qemu-iotests/tests/ |
H A D | qemu-img-close-errors.out | 7 qemu-img commit exit code: 0 8 qemu-img bitmap --add exit code: 0 12 qemu-img bitmap --merge exit code: 1 20 qemu-img commit exit code: 1 21 qemu-img bitmap --add exit code: 0 22 qemu-img bitmap --merge exit code: 0
|
/qemu/ |
H A D | qemu-keymap.c | 60 static void walk_map(struct xkb_keymap *map, xkb_keycode_t code, void *data) in walk_map() argument 74 evdev = code - 8; in walk_map() 78 kbase = xkb_state_key_get_one_sym(state, code); in walk_map() 93 kbase = xkb_state_key_get_one_sym(state, code); in walk_map() 97 knumlock = xkb_state_key_get_one_sym(state, code); in walk_map() 103 kshift = xkb_state_key_get_one_sym(state, code); in walk_map() 109 kaltgr = xkb_state_key_get_one_sym(state, code); in walk_map() 115 kaltgrshift = xkb_state_key_get_one_sym(state, code); in walk_map()
|
/qemu/scripts/qapi/ |
H A D | common.py | 156 def cgen(code: str, **kwds: object) -> str: 162 raw = code % kwds 169 def mcgen(code: str, **kwds: object) -> str: 170 if code[0] == '\n': 171 code = code[1:] 172 return cgen(code, **kwds)
|
/qemu/docs/devel/ |
H A D | multi-thread-tcg.rst | 40 In the general case of running translated code there should be no 52 Even when there is no code being generated there are a number of 60 As TB linking only occurs when blocks are in the same page this code 62 most common reason to exit the generated code. 70 are only taken when code generation is required or TranslationBlocks 81 translation buffer which contains code running on all cores. Any 88 DESIGN REQUIREMENT: Add locking around all code generation and TB 104 Currently the whole system shares a single code generation buffer 121 - code modification (self modify code, patching code) 130 to the C code. [all …]
|
H A D | control-flow-integrity.rst | 7 new and existing code in QEMU 17 function pointer declared in the source code. 20 the signature of every function and every function pointer used in the code. 55 Incompatible code with CFI 60 for most code, some specific use pattern can break CFI compatibility, and 63 * Just-in-time compiled code: since such code is created at runtime, the jump 64 to the buffer containing JIT code will fail. 80 5. Directly calling signal handlers from the QEMU source code, since the 95 * TCG creates binary blobs at runtime, with the transformed code. 96 * A TB is a blob of binary code, created at runtime and called with an [all …]
|
H A D | tcg.rst | 7 QEMU is a dynamic translator. When it first encounters a piece of code, 63 code address is returned, otherwise the address of the JIT epilogue is 71 The translation code usually implements branching by performing the 119 may change, causing the code at the destination address to change. 127 Self-modifying code and translated code invalidation 130 Self-modifying code is a special challenge in x86 emulation because no 135 not already read-only) every time translated code is generated for a 178 In order to avoid flushing the translated code each time the MMU 189 memory areas instead calls out to C code for device emulation. 193 Profiling JITted code [all …]
|
H A D | maintainers.rst | 29 patches that touch their area of code. 31 The file also describes the status of the area of code to give an idea 50 - Old obsolete code, should use something else. 54 the code comes with no warranty and the project makes no guarantees 63 is welcome to review code on the mailing list getting added to the 76 asked by others to keep an eye on an area of code. They have generally 77 demonstrated to the community, usually via contributions and code 84 series when a new sub-system is being added to the code base. This can
|
H A D | style.rst | 62 .. code-block:: c 77 .. code-block:: c 174 .. code-block:: c 191 .. code-block:: c 210 .. code-block:: c 228 .. code-block:: c 250 .. code-block:: c 279 .. code-block:: c 289 .. code-block:: c 449 SoftMMU TLB code. [all …]
|
H A D | secure-coding-practices.rst | 5 be aware of so that they can develop safe code and audit existing code 68 place when ``unit`` is dereferenced. The code must check that ``val`` is 0 or 74 moments. Device emulation code must not assume that the guest follows the 79 A related issue is that device emulation code must be prepared for unexpected 82 certain device registers. Device emulation code must handle the case where the 94 Live migration code must validate inputs when loading device state so an 101 Guests with multiple vCPUs may modify guest RAM while device emulation code is 102 running. Device emulation code must copy in descriptors and other guest RAM
|
/qemu/pc-bios/ |
H A D | meson.build | 4 'edk2-aarch64-code.fd', 5 'edk2-arm-code.fd', 7 'edk2-i386-code.fd', 8 'edk2-i386-secure-code.fd', 10 'edk2-x86_64-code.fd', 11 'edk2-x86_64-secure-code.fd',
|
/qemu/hw/audio/ |
H A D | virtio-snd.c | 247 cmd->resp.code = cpu_to_le32(VIRTIO_SND_S_OK); in virtio_snd_handle_pcm_info() 503 static const char *print_code(uint32_t code) in print_code() argument 509 switch (code) { in print_code() 543 cmd->resp.code = msg_sz == sizeof(stream_id) in virtio_snd_handle_pcm_prepare() 577 cmd->resp.code = cpu_to_le32(VIRTIO_SND_S_OK); in virtio_snd_handle_pcm_start_stop() 674 cmd->resp.code = cpu_to_le32(VIRTIO_SND_S_OK); in virtio_snd_handle_pcm_release() 686 uint32_t code; in process_cmd() local 703 code = le32_to_cpu(cmd->ctrl.code); in process_cmd() 705 trace_virtio_snd_handle_code(code, print_code(code)); in process_cmd() 707 switch (code) { in process_cmd() [all …]
|
/qemu/linux-user/ |
H A D | cpu_loop-common.h | 26 void target_exception_dump(CPUArchState *env, const char *fmt, int code); 27 #define EXCP_DUMP(env, fmt, code) \ argument 28 target_exception_dump(env, fmt, code)
|
/qemu/tcg/tci/ |
H A D | README | 7 TCG (Tiny Code Generator) is a code generator which translates 8 code fragments ("basic blocks") from target code (any of the 9 targets supported by QEMU) to a code representation which 12 QEMU can create native code for some hosts (arm, i386, ia64, ppc, ppc64, 15 By adding a code generator for a virtual machine and using an 23 Like each TCG host frontend, TCI implements the code generator in 41 additional code in configure which must be fixed when new native TCG 114 * Some TCG opcodes are either missing in the code generator and/or 116 possible to see where code must be added.
|
/qemu/docs/system/arm/ |
H A D | orangepi.rst | 73 .. code-block:: bash 85 .. code-block:: bash 93 .. code-block:: bash 103 .. code-block:: bash 109 .. code-block:: bash 138 .. code-block:: bash 146 .. code-block:: bash 157 .. code-block:: bash 167 .. code-block:: bash 178 .. code-block:: bash [all …]
|
H A D | xlnx-versal-virt.rst | 75 .. code-block:: bash 88 .. code-block:: bash 101 .. code-block:: bash 114 .. code-block:: bash 126 .. code-block:: bash 139 .. code-block:: bash 154 .. code-block:: bash 168 .. code-block:: bash 189 .. code-block:: bash 195 .. code-block:: bash [all …]
|
/qemu/hw/sparc/ |
H A D | leon3.c | 79 static uint32_t *gen_store_u32(uint32_t *code, hwaddr addr, uint32_t val) in gen_store_u32() argument 81 stl_p(code++, 0x82100000); /* mov %g0, %g1 */ in gen_store_u32() 82 stl_p(code++, 0x84100000); /* mov %g0, %g2 */ in gen_store_u32() 83 stl_p(code++, 0x03000000 + in gen_store_u32() 86 stl_p(code++, 0x82106000 + in gen_store_u32() 89 stl_p(code++, 0x05000000 + in gen_store_u32() 92 stl_p(code++, 0x8410a000 + in gen_store_u32() 95 stl_p(code++, 0xc4204000); /* st %g2, [ %g1 ] */ in gen_store_u32() 97 return code; in gen_store_u32()
|
/qemu/linux-user/mips/ |
H A D | cpu_loop.c | 42 static void do_tr_or_bp(CPUMIPSState *env, unsigned int code, bool trap) in do_tr_or_bp() argument 46 switch (code) { in do_tr_or_bp() 67 unsigned int code; in cpu_loop() local 194 code = env->error_code; in cpu_loop() 195 if (code >= (1 << 10)) { in cpu_loop() 196 code >>= 10; in cpu_loop() 198 do_tr_or_bp(env, code, false); in cpu_loop()
|
/qemu/ui/ |
H A D | input-linux.c | 136 event->code == KEY_SCROLLLOCK; in input_linux_should_skip() 150 if (event->code >= KEY_CNT) { in input_linux_handle_keyboard() 159 if (!il->keydown[event->code] && event->value) { in input_linux_handle_keyboard() 160 il->keydown[event->code] = true; in input_linux_handle_keyboard() 163 if (il->keydown[event->code] && !event->value) { in input_linux_handle_keyboard() 164 il->keydown[event->code] = false; in input_linux_handle_keyboard() 170 int qcode = qemu_input_linux_to_qcode(event->code); in input_linux_handle_keyboard() 207 switch (event->code) { in input_linux_handle_mouse() 233 switch (event->code) { in input_linux_handle_mouse() 246 switch (event->code) { in input_linux_handle_mouse()
|