/qemu/hw/display/ |
H A D | omap_lcdc.c | 4 * Copyright (C) 2006-2007 Andrzej Zaborowski <balrog@zabor.org> 55 if (s->frame_done && (s->interrupts & 1)) { in omap_lcd_interrupts() 56 qemu_irq_raise(s->irq); in omap_lcd_interrupts() 60 if (s->palette_done && (s->interrupts & 2)) { in omap_lcd_interrupts() 61 qemu_irq_raise(s->irq); in omap_lcd_interrupts() 65 if (s->sync_error) { in omap_lcd_interrupts() 66 qemu_irq_raise(s->irq); in omap_lcd_interrupts() 70 qemu_irq_lower(s->irq); in omap_lcd_interrupts() 74 * 2-bit colour 108 width -= 4; in draw_line2_32() [all …]
|
H A D | qxl.c | 29 #include "qemu/main-loop.h" 31 #include "hw/qdev-properties.h" 41 uint32_t cons = (r)->cons & SPICE_RING_INDEX_MASK(r); \ 42 if (cons >= ARRAY_SIZE((r)->items)) { \ 44 "%u >= %zu", cons, ARRAY_SIZE((r)->items)); \ 47 ret = &(r)->items[cons].el; \ 52 #define ALIGN(a, b) (((a) + ((b) - 1)) & ~((b) - 1)) 129 trace_qxl_set_guest_bug(qxl->id); in qxl_set_guest_bug() 131 qxl->guest_bug = 1; in qxl_set_guest_bug() 132 if (qxl->guestdebug) { in qxl_set_guest_bug() [all …]
|
/qemu/hw/audio/ |
H A D | sb16.c | 4 * Copyright (c) 2003-2005 Vassili Karpov (malc) 30 #include "hw/qdev-properties.h" 33 #include "qemu/host-utils.h" 153 return -1; in irq_of_magic() 161 dsp->fmt_stereo ? "Stereo" : "Mono", 162 dsp->fmt_signed ? "Signed" : "Unsigned", 163 dsp->fmt_bits, 164 dsp->dma_auto ? "Auto" : "Single", 165 dsp->block_size, 166 dsp->freq, [all …]
|
/qemu/hw/block/dataplane/ |
H A D | xen-block.c | 17 * Contributions after 2012-01-13 are licensed under the terms of the 22 #include "qemu/defer-call.h" 23 #include "qemu/error-report.h" 24 #include "qemu/main-loop.h" 30 #include "system/block-backend.h" 32 #include "xen-block.h" 74 memset(&request->req, 0, sizeof(request->req)); in reset_request() 75 request->status = 0; in reset_request() 76 request->start = 0; in reset_request() 77 request->size = 0; in reset_request() [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 073 | 55 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 56 $QEMU_IO -c "write -P 0xa5 0 $size" "$TEST_IMG.base" | _filter_qemu_io 59 echo "== normal -> unallocated ==" 61 $QEMU_IO -c "write -P 0x11 0 0x10000" "$TEST_IMG" | _filter_qemu_io 62 $QEMU_IO -c "write -P 0x11 0x10000 0x10000" "$TEST_IMG.base" | _filter_qemu_io 64 $QEMU_IO -c "read -P 0x11 0 0x20000" "$TEST_IMG" | _filter_qemu_io 67 echo "== normal -> compressed ==" 69 $QEMU_IO -c "write -P 0x22 0x20000 0x10000" "$TEST_IMG" | _filter_qemu_io 70 $QEMU_IO -c "write -c -P 0x22 0x30000 0x10000" "$TEST_IMG" | _filter_qemu_io 72 $QEMU_IO -c "read -P 0x22 0x20000 0x20000" "$TEST_IMG" | _filter_qemu_io [all …]
|
H A D | common.filter | 4 # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved. 24 sed -Ee 's/[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}/yyyy-mm-dd hh:mm:ss/' 29 sed -E -e 's/[0-9. ]{5} [KMGT]iB/ SIZE/' \ 30 -e 's/[0-9. ]{5} B/ SIZE/' 35 sed -Ee 's/\#block[0-9]{3,}/NODE_NAME/' 40 gsed -e '/Attached to:/s/\device[[0-9]\+\]/device[N]/g' 46 sed -e "s#$TEST_DIR/#TEST_DIR/#g" \ 47 -e "s#$SOCK_DIR/#SOCK_DIR/#g" \ 48 -e "s#SOCK_DIR/fuse-#TEST_DIR/#g" 54 sed -e "s#$IMGFMT#IMGFMT#g" [all …]
|
H A D | common.tls | 25 rm -f "${tls_dir}"/*.pem 26 rm -f "${tls_dir}"/*/*.pem 27 rm -f "${tls_dir}"/*/*.psk 37 head -1 "${tls_dir}"/certtool.log 41 rm -f "${tls_dir}"/certtool.log 48 head -1 "${tls_dir}"/psktool.log 52 rm -f "${tls_dir}"/psktool.log 58 (certtool --help) >/dev/null 2>&1 || \ 61 mkdir -p "${tls_dir}" 66 -----BEGIN RSA PRIVATE KEY----- [all …]
|
/qemu/docs/system/ |
H A D | bootindex.rst | 4 QEMU can tell QEMU-aware guest firmware (like the x86 PC BIOS) 6 A simple way to set this order is to use the ``-boot order=`` option, 19 not support ``-boot order=``; on those machines you must always 23 a short-form option like ``-hda`` or ``-cdrom``, so to use 25 into long-form ``-drive`` and ``-device`` option pairs. 28 ------- 33 .. parsed-literal:: 35 |qemu_system| -drive file=disk1.img,if=none,id=disk1 \\ 36 -device ide-hd,drive=disk1,bootindex=4 \\ 37 -drive file=disk2.img,if=none,id=disk2 \\ [all …]
|
/qemu/docs/tools/ |
H A D | qemu-vmsr-helper.rst | 6 -------- 8 **qemu-vmsr-helper** [*OPTION*] 11 ----------- 23 :program:`qemu-vmsr-helper` is that external helper; it creates a listener 29 :program:`qemu-vmsr-helper`. 31 After connecting to the socket, :program:`qemu-vmsr-helper` can 35 :program:`qemu-vmsr-helper` can also use the systemd socket activation 40 ListenStream=/var/run/qemu-vmsr-helper.sock 43 ------- 45 .. program:: qemu-vmsr-helper [all …]
|
/qemu/docs/about/ |
H A D | build-platforms.rst | 1 .. _Supported-build-platforms: 25 support for those backports, unless the feature is auto-detectable in a 33 :ref:`setup-build-env` page. 36 ---------------------------- 40 .. list-table:: 41 :header-rows: 1 43 * - CPU Architecture 44 - Accelerators 45 * - Arm 46 - hvf (64 bit only), kvm (64 bit only), tcg, xen [all …]
|
/qemu/qapi/ |
H A D | meson.build | 2 'opts-visitor.c', 3 'qapi-clone-visitor.c', 4 'qapi-dealloc-visitor.c', 5 'qapi-forward-visitor.c', 6 'qapi-util.c', 7 'qapi-visit-core.c', 8 'qobject-input-visitor.c', 9 'qobject-output-visitor.c', 10 'string-input-visitor.c', 11 'string-output-visitor.c', [all …]
|
/qemu/tests/qemu-iotests/tests/ |
H A D | image-fleecing | 5 # point-in-time snapshot of a node that can be queried over NBD. 33 required_fmts=['copy-before-write'], 40 ('0xcd', '0x3ff0000', '64k')] # 64M - 64K 43 ('0xad', '0x00f8000', '64k'), # Partial-left (1M-32K) 44 ('0x1d', '0x2008000', '64k'), # Partial-right (32M+32K) 45 ('0xea', '0x3fe0000', '64k')] # Adjacent-left (64M - 128K) 47 zeroes = [('0', '0x00f8000', '32k'), # Left-end of partial-left (1M-32K) 48 ('0', '0x2010000', '32k'), # Right-end of partial-right (32M+64K) 51 remainder = [('0xd5', '0x108000', '32k'), # Right-end of partial-left [1] 52 ('0xdc', '32M', '32k'), # Left-end of partial-right [2] [all …]
|
/qemu/docs/devel/migration/ |
H A D | CPR.rst | 8 the cpr-reboot and cpr-transfer modes are available. 18 cpr-reboot mode 19 --------------- 23 resumes by running QEMU with the ``-incoming`` option. Because the 38 ``guest-suspend-ram`` command to the QEMU guest agent. The agent 39 must be pre-installed in the guest, and the guest must support 48 memory, such as ``memory-backend-file,share=on``, and that the 49 ``x-ignore-shared`` capability be set. This combination allows memory 54 * Set the migration mode parameter to ``cpr-reboot``. 55 * Set the ``x-ignore-shared`` capability if desired. [all …]
|
/qemu/hw/arm/ |
H A D | bcm2835_peripherals.c | 9 * See the COPYING file in the top-level directory. 23 /* Capabilities for SD controller: no DMA, high-speed, default clocks etc. */ 27 * According to Linux driver & DTS, dma channels 0--10 have separate IRQ, 28 * while channels 11--14 share one IRQ: 44 memory_region_add_subregion_overlap(&ps->peri_mr, ofs, in create_unimp() 45 sysbus_mmio_get_region(SYS_BUS_DEVICE(uds), 0), -1000); in create_unimp() 54 object_initialize_child(obj, "rng", &s->rng, TYPE_BCM2835_RNG); in bcm2835_peripherals_init() 57 object_initialize_child(obj, "thermal", &s->thermal, TYPE_BCM2835_THERMAL); in bcm2835_peripherals_init() 60 object_initialize_child(obj, "gpio", &s->gpio, TYPE_BCM2835_GPIO); in bcm2835_peripherals_init() 62 object_property_add_const_link(OBJECT(&s->gpio), "sdbus-sdhci", in bcm2835_peripherals_init() [all …]
|
/qemu/hw/virtio/ |
H A D | virtio-crypto.c | 11 * top-level directory. 16 #include "qemu/main-loop.h" 19 #include "qemu/error-report.h" 22 #include "hw/virtio/virtio-crypto.h" 23 #include "hw/qdev-properties.h" 24 #include "standard-headers/linux/virtio_ids.h" 25 #include "system/cryptodev-vhost.h" 39 switch (sreq->info.op_code) { in virtio_crypto_free_create_session_req() 41 g_free(sreq->info.u.sym_sess_info.cipher_key); in virtio_crypto_free_create_session_req() 42 g_free(sreq->info.u.sym_sess_info.auth_key); in virtio_crypto_free_create_session_req() [all …]
|
/qemu/ui/ |
H A D | spice-display.c | 19 #include "ui/qemu-spice.h" 20 #include "qemu/error-report.h" 23 #include "qemu/main-loop.h" 29 #include "ui/spice-display.h" 31 #include "standard-headers/drm/drm_fourcc.h" 37 return r->top == r->bottom || r->left == r->right; in qemu_spice_rect_is_empty() 51 dest->top = MIN(dest->top, r->top); in qemu_spice_rect_union() 52 dest->left = MIN(dest->left, r->left); in qemu_spice_rect_union() 53 dest->bottom = MAX(dest->bottom, r->bottom); in qemu_spice_rect_union() 54 dest->right = MAX(dest->right, r->right); in qemu_spice_rect_union() [all …]
|
/qemu/backends/ |
H A D | cryptodev-lkcf.c | 28 #include "qemu/main-loop.h" 30 #include "qemu/error-report.h" 34 #include "standard-headers/linux/virtio_crypto.h" 43 #define TYPE_CRYPTODEV_BACKEND_LKCF "cryptodev-backend-lkcf" 47 #define INVALID_KEY_ID -1 53 * Here the key is uploaded to the thread-keyring of worker thread, at least 54 * util linux-6.0: 55 * 1. process keyring seems to behave unexpectedly if main-thread does not 59 * 3. it can reduce the load of the main-loop because the key passed by the 116 eventfd_read(lkcf->eventfd, &nevent); in cryptodev_lkcf_handle_response() [all …]
|
/qemu/docs/system/s390x/ |
H A D | protvirt.rst | 12 ------------- 26 ----------------------------------- 32 -object s390-pv-guest,id=pv0 \ 33 -machine confidential-guest-support=pv0 48 ------------ 52 s390-ccw BIOS. I.e., the bootmap is interpreted, multiple components 61 the file passed via -kernel has the same memory layout as would result 65 options -initrd and -cmdline are ineffective. The preparation of a PVM 66 image is done via the ``genprotimg`` tool from the s390-tools
|
/qemu/hw/usb/ |
H A D | pcap.c | 7 * See the COPYING file in the top-level directory. 44 uint64_t id; /* 0: URB ID - from submission to callback */ 58 unsigned char setup[8]; /* Only for Control S-type */ 70 /* ------------------------------------------------------------------------ */ 77 switch (p->status) { in usbmon_status() 81 return -19; /* -ENODEV */ in usbmon_status() 83 return -121; /* -EREMOTEIO */ in usbmon_status() 91 epnum |= p->ep->nr; in usbmon_epnum() 92 epnum |= (p->pid == USB_TOKEN_IN) ? 0x80 : 0; in usbmon_epnum() 109 packet->ts_sec = tv.tv_sec; in do_usb_pcap_header() [all …]
|
/qemu/target/sparc/ |
H A D | win_helper.c | 4 * Copyright (c) 2003-2005 Fabrice Bellard 21 #include "qemu/main-loop.h" 23 #include "exec/helper-proto.h" 29 if (env->cwp == env->nwindows - 1) { in cpu_set_cwp() 30 memcpy(env->regbase, env->regbase + env->nwindows * 16, in cpu_set_cwp() 31 sizeof(env->gregs)); in cpu_set_cwp() 33 env->cwp = new_cwp; in cpu_set_cwp() 36 if (new_cwp == env->nwindows - 1) { in cpu_set_cwp() 37 memcpy(env->regbase + env->nwindows * 16, env->regbase, in cpu_set_cwp() 38 sizeof(env->gregs)); in cpu_set_cwp() [all …]
|
/qemu/hw/uefi/ |
H A D | var-service-vars.c | 2 * SPDX-License-Identifier: GPL-2.0-or-later 4 * uefi vars device - EfiSmmVariableProtocol implementation 7 #include "qemu/error-report.h" 11 #include "hw/uefi/var-service.h" 12 #include "hw/uefi/var-service-api.h" 13 #include "hw/uefi/var-service-edk2.h" 15 #include "trace/trace-hw_uefi.h" 27 .name = "uefi-time", 41 .name = "uefi-variable", 59 QTAILQ_FOREACH(var, &uv->variables, next) { in uefi_vars_find_variable() [all …]
|
/qemu/hw/core/ |
H A D | numa.c | 29 #include "exec/cpu-common.h" 31 #include "qemu/error-report.h" 33 #include "qapi/opts-visitor.h" 34 #include "qapi/qapi-visit-machine.h" 37 #include "hw/mem/pc-dimm.h" 39 #include "hw/mem/memory-device.h" 41 #include "qemu/config-file.h" 69 unsigned int max_cpus = ms->smp.max_cpus; in parse_numa_node() 70 NodeInfo *numa_info = ms->numa_state->nodes; in parse_numa_node() 72 if (node->has_nodeid) { in parse_numa_node() [all …]
|
/qemu/target/mips/tcg/system/ |
H A D | tlb_helper.c | 4 * Copyright (c) 2004-2005 Jocelyn Mayer 25 #include "exec/page-protection.h" 27 #include "accel/tcg/cpu-ldst.h" 29 #include "exec/helper-proto.h" 34 /* Discard entries from env->tlb[first] onwards. */ in r4k_mips_tlb_flush_extra() 35 while (env->tlb->tlb_in_use > first) { in r4k_mips_tlb_flush_extra() 36 r4k_invalidate_tlb(env, --env->tlb->tlb_in_use, 0); in r4k_mips_tlb_flush_extra() 53 uint64_t mask = env->CP0_PageMask >> (TARGET_PAGE_BITS + 1); in r4k_fill_tlb() 56 tlb = &env->tlb->mmu.r4k.tlb[idx]; in r4k_fill_tlb() 57 if (env->CP0_EntryHi & (1 << CP0EnHi_EHINV)) { in r4k_fill_tlb() [all …]
|
/qemu/tests/functional/ |
H A D | test_aarch64_rme_virt.py | 10 # SPDX-License-Identifier: GPL-2.0-or-later 22 'qemu-system-aarch64 -M virt,gic-version=3 ' 23 '-cpu host -enable-kvm -m 512M ' 24 '-M confidential-guest-support=rme0 ' 25 '-object rme-guest,id=rme0 ' 26 '-device virtio-net-pci,netdev=net0,romfile= ' 27 '-netdev user,id=net0 ' 28 '-kernel /mnt/out/bin/Image ' 29 '-initrd /mnt/out-br/images/rootfs.cpio ' 30 '-serial stdio') [all …]
|
/qemu/hw/vfio/ |
H A D | region.c | 10 * the COPYING file in the top-level directory. 12 * Based on qemu-kvm device-assignment: 18 * Copyright (C) 2008, IBM, Muli Ben-Yehuda (muli@il.ibm.com) 24 #include "hw/vfio/vfio-region.h" 25 #include "hw/vfio/vfio-device.h" 29 #include "qemu/error-report.h" 32 #include "vfio-helpers.h" 35 * IO Port/MMIO - Beware of the endians, VFIO is always little endian 41 VFIODevice *vbasedev = region->vbasedev; in vfio_region_write() 68 ret = vbasedev->io_ops->region_write(vbasedev, region->nr, in vfio_region_write() [all …]
|