/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 | 31 # ie. we want ltmain.sh -> 'build' instead of 'code'. 36 order build,interface,tests,code,documentation,devel-doc,blobs 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++ 50 filetype code \.h$ # C or C++ header [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/pc-bios/ |
H A D | meson.build | 4 'edk2-aarch64-code.fd', 5 'edk2-arm-code.fd', 7 'edk2-riscv-code.fd', 9 'edk2-i386-code.fd', 10 'edk2-i386-secure-code.fd', 12 'edk2-x86_64-code.fd', 13 'edk2-x86_64-secure-code.fd', 14 'edk2-loongarch64-code.fd',
|
/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() 241 static void sclp_execute(SCLPDevice *sclp, SCCB *sccb, uint32_t code) in sclp_execute() argument 247 switch (code & SCLP_CMD_CODE_MASK) { in sclp_execute() 262 efc->command_handler(ef, sccb, code); in sclp_execute() 272 int sclp_service_call_protected(S390CPU *cpu, uint64_t sccb, uint32_t code) in sclp_service_call_protected() argument 286 if (!sclp_command_code_valid(code)) { in sclp_service_call_protected() 291 sclp_c->execute(sclp, work_sccb, code); in sclp_service_call_protected() [all …]
|
/qemu/tests/qtest/ |
H A D | boot-serial-test.c | 243 const uint8_t *code = NULL; in test_machine() local 252 code = test->kernel; in test_machine() 255 code = test->bios; in test_machine() 259 if (code) { in test_machine() 265 wlen = write(code_fd, code, test->codesize); in test_machine() 277 codeparam, code ? codetmp : "", test->machine, in test_machine() 279 if (code) { in test_machine()
|
/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/docs/devel/ |
H A D | uefi-vars.rst | 19 approach taken by physical hardware. Only privileged code running in 22 Communication with the firmware code running in SMM mode works by 24 mode via SMI. The SMM code processes the request, stores the reply in 30 Instead of running the privileged code inside the guest we can run it 46 complex code for SMM emulation from the linux kernel 51 attack surface of the host, and we are adding some code duplication 57 .. code:: 65 .. code::
|
H A D | multi-thread-tcg.rst | 41 In the general case of running translated code there should be no 53 Even when there is no code being generated there are a number of 61 As TB linking only occurs when blocks are in the same page this code 63 most common reason to exit the generated code. 71 are only taken when code generation is required or TranslationBlocks 80 We need to protect the entire code generation cycle including any post 81 generation patching of the translated code. This also implies a shared 82 translation buffer which contains code running on all cores. Any 84 mutex for code generation. This also includes times when we need flush 85 code or entries from any shared lookups/caches. Structures held on a [all …]
|
H A D | control-flow-integrity.rst | 9 new and existing code in QEMU 19 function pointer declared in the source code. 22 the signature of every function and every function pointer used in the code. 57 Incompatible code with CFI 61 compile-time knowledge of the code. This means that, while generally supported 62 for most code, some specific use pattern can break CFI compatibility, and 65 * Just-in-time compiled code: since such code is created at runtime, the jump 66 to the buffer containing JIT code will fail. 82 5. Directly calling signal handlers from the QEMU source code, since the 97 * TCG creates binary blobs at runtime, with the transformed code. [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 131 instruction cache invalidation is signaled by the application when code 135 not already read-only) every time translated code is generated for a 137 a SEGV signal. QEMU then invalidates all the translated code in the page 141 Correct translated code invalidation is done efficiently by maintaining [all …]
|
H A D | style.rst | 35 * Tab indents push your code to the right, making your screen seriously 62 .. code-block:: c 77 .. code-block:: c 131 Likewise, in device emulation code the common DeviceState is usually 174 .. code-block:: c 191 .. code-block:: c 210 .. code-block:: c 217 #ifdef or #ifndef block: if the code looks nicer, such declarations can 228 .. code-block:: c 250 .. code-block:: c [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 | 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
|
H A D | rust.rst | 16 Building the Rust in QEMU code 19 The Rust in QEMU code is included in the emulators via Meson. Meson 21 together with the C code. This is completely automatic when you run 63 code. Note however that you cannot *build* or run tests via ``cargo``, because 64 they need support C code from QEMU that Cargo does not know about. Tests can 69 Building Rust code with ``--enable-modules`` is not supported yet. 106 Writing Rust code in QEMU 111 * ``qemu_api`` for bindings to C code and useful functionality 114 writing C code 142 unsafe code; it might have soundness or type-safety issues [all …]
|
/qemu/scripts/qapi/ |
H A D | common.py | 162 def cgen(code: str, **kwds: object) -> str: 168 raw = code % kwds 175 def mcgen(code: str, **kwds: object) -> str: 176 if code[0] == '\n': 177 code = code[1:] 178 return cgen(code, **kwds)
|
/qemu/bsd-user/aarch64/ |
H A D | target_arch_cpu.h | 50 uint64_t code, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8; in target_cpu_loop() local 62 code = env->xregs[8]; in target_cpu_loop() 63 if (code == TARGET_FREEBSD_NR_syscall || in target_cpu_loop() 64 code == TARGET_FREEBSD_NR___syscall) { in target_cpu_loop() 65 code = env->xregs[0]; in target_cpu_loop() 84 ret = do_freebsd_syscall(env, code, arg1, arg2, arg3, in target_cpu_loop()
|
/qemu/hw/audio/ |
H A D | virtio-snd.c | 177 cmd->resp.code = cpu_to_le32(VIRTIO_SND_S_BAD_MSG); in virtio_snd_handle_pcm_info() 193 cmd->resp.code = cpu_to_le32(VIRTIO_SND_S_BAD_MSG); in virtio_snd_handle_pcm_info() 204 cmd->resp.code = cpu_to_le32(VIRTIO_SND_S_BAD_MSG); in virtio_snd_handle_pcm_info() 222 cmd->resp.code = cpu_to_le32(VIRTIO_SND_S_OK); in virtio_snd_handle_pcm_info() 306 cmd->resp.code = cpu_to_le32(VIRTIO_SND_S_BAD_MSG); in virtio_snd_handle_pcm_set_params() 311 cmd->resp.code = virtio_snd_set_pcm_params(s, stream_id, &req); in virtio_snd_handle_pcm_set_params() 480 static const char *print_code(uint32_t code) in print_code() argument 486 switch (code) { in print_code() 520 cmd->resp.code = msg_sz == sizeof(stream_id) in virtio_snd_handle_pcm_prepare() 549 cmd->resp.code = cpu_to_le32(VIRTIO_SND_S_BAD_MSG); in virtio_snd_handle_pcm_start_stop() [all …]
|
/qemu/bsd-user/riscv/ |
H A D | target_arch_cpu.h | 46 int32_t signo, code; in target_cpu_loop() local 109 code = TARGET_ILL_ILLOPC; in target_cpu_loop() 113 code = TARGET_TRAP_BRKPT; in target_cpu_loop() 117 code = TARGET_TRAP_BRKPT; in target_cpu_loop() 127 force_sig_fault(signo, code, env->pc); in target_cpu_loop()
|
/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 192 .. code-block:: bash 198 .. 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()
|