/qemu/hw/display/ |
H A D | virtio-gpu-base.c | 24 virtio_gpu_base_reset(VirtIOGPUBase *g) in virtio_gpu_base_reset() argument 28 g->enable = 0; in virtio_gpu_base_reset() 30 for (i = 0; i < g->conf.max_outputs; i++) { in virtio_gpu_base_reset() 31 g->scanout[i].resource_id = 0; in virtio_gpu_base_reset() 32 g->scanout[i].width = 0; in virtio_gpu_base_reset() 33 g->scanout[i].height = 0; in virtio_gpu_base_reset() 34 g->scanout[i].x = 0; in virtio_gpu_base_reset() 35 g->scanout[i].y = 0; in virtio_gpu_base_reset() 36 g->scanout[i].ds = NULL; in virtio_gpu_base_reset() 41 virtio_gpu_base_fill_display_info(VirtIOGPUBase *g, in virtio_gpu_base_fill_display_info() argument [all …]
|
H A D | virtio-gpu-virgl.c | 33 virtio_gpu_virgl_find_resource(VirtIOGPU *g, uint32_t resource_id) in virtio_gpu_virgl_find_resource() argument 37 res = virtio_gpu_find_resource(g, resource_id); in virtio_gpu_virgl_find_resource() 56 struct VirtIOGPU *g; member 68 VirtIOGPU *g = opaque; in virtio_gpu_virgl_resume_cmdq_bh() local 70 virtio_gpu_process_cmdq(g); in virtio_gpu_virgl_resume_cmdq_bh() 83 b = VIRTIO_GPU_BASE(vmr->g); in virtio_gpu_virgl_hostmem_region_free() 91 gl = VIRTIO_GPU_GL(vmr->g); in virtio_gpu_virgl_hostmem_region_free() 96 virtio_gpu_virgl_map_resource_blob(VirtIOGPU *g, in virtio_gpu_virgl_map_resource_blob() argument 101 VirtIOGPUBase *b = VIRTIO_GPU_BASE(g); in virtio_gpu_virgl_map_resource_blob() 120 vmr->g = g; in virtio_gpu_virgl_map_resource_blob() [all …]
|
H A D | vhost-user-gpu.c | 120 static void vhost_user_gpu_update_blocked(VhostUserGPU *g, bool blocked); 123 vhost_user_gpu_handle_cursor(VhostUserGPU *g, VhostUserGpuMsg *msg) in vhost_user_gpu_handle_cursor() argument 128 if (pos->scanout_id >= g->parent_obj.conf.max_outputs) { in vhost_user_gpu_handle_cursor() 131 s = &g->parent_obj.scanout[pos->scanout_id]; in vhost_user_gpu_handle_cursor() 153 vhost_user_gpu_send_msg(VhostUserGPU *g, const VhostUserGpuMsg *msg) in vhost_user_gpu_send_msg() argument 155 qemu_chr_fe_write(&g->vhost_chr, (uint8_t *)msg, in vhost_user_gpu_send_msg() 160 vhost_user_gpu_unblock(VhostUserGPU *g) in vhost_user_gpu_unblock() argument 167 vhost_user_gpu_send_msg(g, &msg); in vhost_user_gpu_unblock() 171 vhost_user_gpu_handle_display(VhostUserGPU *g, VhostUserGpuMsg *msg) in vhost_user_gpu_handle_display() argument 188 vhost_user_gpu_send_msg(g, &reply); in vhost_user_gpu_handle_display() [all …]
|
H A D | virtio-gpu.c | 39 virtio_gpu_find_check_resource(VirtIOGPU *g, uint32_t resource_id, 45 void virtio_gpu_update_cursor_data(VirtIOGPU *g, in virtio_gpu_update_cursor_data() argument 53 res = virtio_gpu_find_check_resource(g, resource_id, false, in virtio_gpu_update_cursor_data() 78 static void update_cursor(VirtIOGPU *g, struct virtio_gpu_update_cursor *cursor) in update_cursor() argument 81 VirtIOGPUClass *vgc = VIRTIO_GPU_GET_CLASS(g); in update_cursor() 84 if (cursor->pos.scanout_id >= g->parent_obj.conf.max_outputs) { in update_cursor() 87 s = &g->parent_obj.scanout[cursor->pos.scanout_id]; in update_cursor() 104 vgc->update_cursor_data(g, s, cursor->resource_id); in update_cursor() 117 virtio_gpu_find_resource(VirtIOGPU *g, uint32_t resource_id) in virtio_gpu_find_resource() argument 121 QTAILQ_FOREACH(res, &g->reslist, next) { in virtio_gpu_find_resource() [all …]
|
H A D | virtio-gpu-rutabaga.c | 32 virtio_gpu_rutabaga_update_cursor(VirtIOGPU *g, struct virtio_gpu_scanout *s, in virtio_gpu_rutabaga_update_cursor() argument 39 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in virtio_gpu_rutabaga_update_cursor() 41 res = virtio_gpu_find_resource(g, resource_id); in virtio_gpu_rutabaga_update_cursor() 69 VirtIOGPU *g = VIRTIO_GPU(b); in virtio_gpu_rutabaga_gl_flushed() local 70 virtio_gpu_process_cmdq(g); in virtio_gpu_rutabaga_gl_flushed() 74 rutabaga_cmd_create_resource_2d(VirtIOGPU *g, in rutabaga_cmd_create_resource_2d() argument 82 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_create_resource_2d() 108 QTAILQ_INSERT_HEAD(&g->reslist, res, next); in rutabaga_cmd_create_resource_2d() 112 rutabaga_cmd_create_resource_3d(VirtIOGPU *g, in rutabaga_cmd_create_resource_3d() argument 120 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_create_resource_3d() [all …]
|
H A D | virtio-vga.c | 13 VirtIOGPUBase *g = vvga->vgpu; in virtio_vga_base_invalidate_display() local 15 if (g->enable) { in virtio_vga_base_invalidate_display() 16 g->hw_ops->invalidate(g); in virtio_vga_base_invalidate_display() 25 VirtIOGPUBase *g = vvga->vgpu; in virtio_vga_base_update_display() local 27 if (g->enable) { in virtio_vga_base_update_display() 28 g->hw_ops->gfx_update(g); in virtio_vga_base_update_display() 37 VirtIOGPUBase *g = vvga->vgpu; in virtio_vga_base_text_update() local 39 if (g->enable) { in virtio_vga_base_text_update() 40 if (g->hw_ops->text_update) { in virtio_vga_base_text_update() 41 g->hw_ops->text_update(g, chardata); in virtio_vga_base_text_update() [all …]
|
H A D | virtio-gpu-gl.c | 28 static void virtio_gpu_gl_update_cursor_data(VirtIOGPU *g, in virtio_gpu_gl_update_cursor_data() argument 32 VirtIOGPUGL *gl = VIRTIO_GPU_GL(g); in virtio_gpu_gl_update_cursor_data() 58 VirtIOGPU *g = VIRTIO_GPU(b); in virtio_gpu_gl_flushed() local 60 virtio_gpu_process_cmdq(g); in virtio_gpu_gl_flushed() 65 VirtIOGPU *g = VIRTIO_GPU(vdev); in virtio_gpu_gl_handle_ctrl() local 75 virtio_gpu_virgl_reset(g); in virtio_gpu_gl_handle_ctrl() 78 if (virtio_gpu_virgl_init(g)) { in virtio_gpu_gl_handle_ctrl() 96 QTAILQ_INSERT_TAIL(&g->cmdq, cmd, next); in virtio_gpu_gl_handle_ctrl() 100 virtio_gpu_process_cmdq(g); in virtio_gpu_gl_handle_ctrl() 101 virtio_gpu_virgl_fence_poll(g); in virtio_gpu_gl_handle_ctrl() [all …]
|
H A D | pl110_template.h | 149 unsigned int r, g, b; in glue() local 165 g = data & 0x3f; in glue() 172 g = (data & 0x3f) << 2; in glue() 177 COPY_PIXEL(d, rgb_to_pixel32(r, g, b)); in glue() 180 g = (data & 0x3f) << 2; in glue() 184 COPY_PIXEL(d, rgb_to_pixel32(r, g, b)); in glue() 195 unsigned int r, g, b; in glue() local 207 g = (data >> 8) & 0xff; in glue() 211 g = (data >> 16) & 0xff; in glue() 214 COPY_PIXEL(d, rgb_to_pixel32(r, g, b)); in glue() [all …]
|
H A D | virtio-gpu-pci.c | 31 VirtIOGPUBase *g = vgpu->vgpu; in virtio_gpu_pci_base_realize() local 32 DeviceState *vdev = DEVICE(g); in virtio_gpu_pci_base_realize() 35 if (virtio_gpu_hostmem_enabled(g->conf)) { in virtio_gpu_pci_base_realize() 38 memory_region_init(&g->hostmem, OBJECT(g), "virtio-gpu-hostmem", in virtio_gpu_pci_base_realize() 39 g->conf.hostmem); in virtio_gpu_pci_base_realize() 44 &g->hostmem); in virtio_gpu_pci_base_realize() 45 virtio_pci_add_shm_cap(vpci_dev, 4, 0, g->conf.hostmem, in virtio_gpu_pci_base_realize() 54 for (i = 0; i < g->conf.max_outputs; i++) { in virtio_gpu_pci_base_realize() 55 object_property_set_link(OBJECT(g->scanout[i].con), "device", in virtio_gpu_pci_base_realize()
|
H A D | virtio-gpu-udmabuf.c | 161 static void virtio_gpu_free_dmabuf(VirtIOGPU *g, VGPUDMABuf *dmabuf) in virtio_gpu_free_dmabuf() argument 165 scanout = &g->parent_obj.scanout[dmabuf->scanout_id]; in virtio_gpu_free_dmabuf() 168 QTAILQ_REMOVE(&g->dmabuf.bufs, dmabuf, next); in virtio_gpu_free_dmabuf() 173 *virtio_gpu_create_dmabuf(VirtIOGPU *g, in virtio_gpu_create_dmabuf() argument 194 QTAILQ_INSERT_HEAD(&g->dmabuf.bufs, dmabuf, next); in virtio_gpu_create_dmabuf() 199 int virtio_gpu_update_dmabuf(VirtIOGPU *g, in virtio_gpu_update_dmabuf() argument 205 struct virtio_gpu_scanout *scanout = &g->parent_obj.scanout[scanout_id]; in virtio_gpu_update_dmabuf() 209 new_primary = virtio_gpu_create_dmabuf(g, scanout_id, res, fb, r); in virtio_gpu_update_dmabuf() 214 if (g->dmabuf.primary[scanout_id]) { in virtio_gpu_update_dmabuf() 215 old_primary = g->dmabuf.primary[scanout_id]; in virtio_gpu_update_dmabuf() [all …]
|
H A D | omap_lcdc.c | 80 uint8_t v, r, g, b; in draw_line2_32() local 85 g = pal[v & 3] & 0xf0; in draw_line2_32() 87 ((uint32_t *) d)[0] = rgb_to_pixel32(r, g, b); in draw_line2_32() 91 g = pal[v & 3] & 0xf0; in draw_line2_32() 93 ((uint32_t *) d)[0] = rgb_to_pixel32(r, g, b); in draw_line2_32() 97 g = pal[v & 3] & 0xf0; in draw_line2_32() 99 ((uint32_t *) d)[0] = rgb_to_pixel32(r, g, b); in draw_line2_32() 103 g = pal[v & 3] & 0xf0; in draw_line2_32() 105 ((uint32_t *) d)[0] = rgb_to_pixel32(r, g, b); in draw_line2_32() 119 uint8_t v, r, g, b; in draw_line4_32() local [all …]
|
/qemu/contrib/vhost-user-gpu/ |
H A D | virgl.c | 22 vg_virgl_update_cursor_data(VuGpu *g, uint32_t resource_id, in vg_virgl_update_cursor_data() argument 38 virgl_cmd_context_create(VuGpu *g, in virgl_cmd_context_create() argument 50 virgl_cmd_context_destroy(VuGpu *g, in virgl_cmd_context_destroy() argument 61 virgl_cmd_create_resource_2d(VuGpu *g, in virgl_cmd_create_resource_2d() argument 84 virgl_cmd_create_resource_3d(VuGpu *g, in virgl_cmd_create_resource_3d() argument 107 virgl_cmd_resource_unref(VuGpu *g, in virgl_cmd_resource_unref() argument 120 vg_cleanup_mapping_iov(g, res_iovs, num_iovs); in virgl_cmd_resource_unref() 131 virgl_cmd_get_capset_info(VuGpu *g, in virgl_cmd_get_capset_info() argument 155 vg_ctrl_response(g, cmd, &resp.hdr, sizeof(resp)); in virgl_cmd_get_capset_info() 170 virgl_cmd_get_capset(VuGpu *g, in virgl_cmd_get_capset() argument [all …]
|
H A D | vhost-user-gpu.c | 52 static void vg_cleanup_mapping(VuGpu *g, 111 vg_sock_fd_close(VuGpu *g) in vg_sock_fd_close() argument 113 if (g->sock_fd >= 0) { in vg_sock_fd_close() 114 close(g->sock_fd); in vg_sock_fd_close() 115 g->sock_fd = -1; in vg_sock_fd_close() 122 VuGpu *g = user_data; in source_wait_cb() local 124 if (!vg_recv_msg(g, VHOST_USER_GPU_DMABUF_UPDATE, 0, NULL)) { in source_wait_cb() 129 g->wait_in = 0; in source_wait_cb() 130 vg_handle_ctrl(&g->dev.parent, 0); in source_wait_cb() 136 vg_wait_ok(VuGpu *g) in vg_wait_ok() argument [all …]
|
/qemu/include/ui/ |
H A D | pixel_ops.h | 1 static inline unsigned int rgb_to_pixel8(unsigned int r, unsigned int g, in rgb_to_pixel8() argument 4 return ((r >> 5) << 5) | ((g >> 5) << 2) | (b >> 6); in rgb_to_pixel8() 7 static inline unsigned int rgb_to_pixel15(unsigned int r, unsigned int g, in rgb_to_pixel15() argument 10 return ((r >> 3) << 10) | ((g >> 3) << 5) | (b >> 3); in rgb_to_pixel15() 13 static inline unsigned int rgb_to_pixel15bgr(unsigned int r, unsigned int g, in rgb_to_pixel15bgr() argument 16 return ((b >> 3) << 10) | ((g >> 3) << 5) | (r >> 3); in rgb_to_pixel15bgr() 19 static inline unsigned int rgb_to_pixel16(unsigned int r, unsigned int g, in rgb_to_pixel16() argument 22 return ((r >> 3) << 11) | ((g >> 2) << 5) | (b >> 3); in rgb_to_pixel16() 25 static inline unsigned int rgb_to_pixel16bgr(unsigned int r, unsigned int g, in rgb_to_pixel16bgr() argument 28 return ((b >> 3) << 11) | ((g >> 2) << 5) | (r >> 3); in rgb_to_pixel16bgr() [all …]
|
/qemu/tests/functional/ |
H A D | reverse_debugging.py | 62 def get_reg_le(g, reg): argument 63 res = g.cmd(b'p%x' % reg) 70 def get_reg_be(g, reg): argument 71 res = g.cmd(b'p%x' % reg) 74 def get_reg(self, g, reg): argument 77 return self.get_reg_le(g, reg) 79 return self.get_reg_be(g, reg) 81 def get_pc(self, g): argument 82 return self.get_reg(g, self.REG_PC) 84 def check_pc(self, g, addr): argument [all …]
|
H A D | test_mem_addr_space.py | 56 59.6G, QEMU should fail to start with a message "phy-bits are too low". 57 If maxmem is set to 59.5G with all other QEMU parameters identical, QEMU 62 self.vm.add_args('-S', '-m', '512,slots=1,maxmem=59.6G', 64 '-object', 'memory-backend-ram,id=mem1,size=1G', 80 self.vm.add_args('-S', '-m', '512,slots=1,maxmem=59.6G', 82 '-object', 'memory-backend-ram,id=mem1,size=1G', 92 Setting maxmem to 59.5G and making sure that QEMU can start with the 97 self.vm.add_args('-m', '512,slots=1,maxmem=59.5G', 99 '-object', 'memory-backend-ram,id=mem1,size=1G', 110 Setting maxmem to 59.5G and making sure that QEMU can start fine [all …]
|
/qemu/tcg/ |
H A D | tcg-op-gvec.c | 100 * values from the caller will not be detected, e.g. if the in simd_desc() 372 * that e.g. size == 80 would be expanded with 2x32 + 1x16. in check_size_impl() 455 * that e.g. size == 80 would be expanded with 2x32 + 1x16. in choose_vector_type() 494 * This may be expand_clr for the tail of an operation, e.g. in do_dup_store() 508 * that e.g. size == 80 would be expanded with 2x32 + 1x16. in do_dup_store() 640 * This may be expand_clr for the tail of an operation, e.g. in do_dup() 1200 uint32_t oprsz, uint32_t maxsz, const GVecGen2 *g) in tcg_gen_gvec_2() argument 1202 const TCGOpcode *this_list = g->opt_opc ? : vecop_list_empty; in tcg_gen_gvec_2() 1211 if (g->fniv) { in tcg_gen_gvec_2() 1212 type = choose_vector_type(g->opt_opc, g->vece, oprsz, g->prefer_i64); in tcg_gen_gvec_2() [all …]
|
/qemu/include/hw/virtio/ |
H A D | virtio-gpu.h | 165 void (*gl_flushed)(VirtIOGPUBase *g); 224 void (*process_cmd)(VirtIOGPU *g, struct virtio_gpu_ctrl_command *cmd); 225 void (*update_cursor_data)(VirtIOGPU *g, 228 void (*resource_destroy)(VirtIOGPU *g, 301 void virtio_gpu_base_reset(VirtIOGPUBase *g); 302 void virtio_gpu_base_fill_display_info(VirtIOGPUBase *g, 305 void virtio_gpu_base_generate_edid(VirtIOGPUBase *g, int scanout, 309 virtio_gpu_find_resource(VirtIOGPU *g, uint32_t resource_id); 311 void virtio_gpu_ctrl_response(VirtIOGPU *g, 315 void virtio_gpu_ctrl_response_nodata(VirtIOGPU *g, [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | common.filter | 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" 69 gsed -e 's/\r//g' 78 -e "s/qemu-io> //g" 93 gsed -e 's#\("\(micro\)\?seconds": \)[0-9]\+#\1 TIMESTAMP#g' \ 102 gsed -e $'s/^\\((qemu) \\)\\?.*\e\\[D/\\1/g' \ 103 -e $'s/\e\\[K//g' [all …]
|
H A D | 059 | 74 _make_test_img -o "subformat=monolithicFlat" 2G 80 _make_test_img -o "subformat=monolithicFlat,zeroed_grain=on" 2G 85 _make_test_img -o "subformat=twoGbMaxExtentFlat" 1000G 87 $QEMU_IO -c "write 990G 512 -P 89" "$TEST_IMG" | _filter_qemu_io 88 $QEMU_IO -c "read 990G 512 -P 89" "$TEST_IMG" | _filter_qemu_io 107 _make_test_img -o "subformat=monolithicSparse" 100G 113 TEST_IMG="$TEST_IMG.qcow2" IMGFMT=qcow2 _make_test_img -o "cluster_size=4096" 1G 149 filename=$(echo "$filename" | tr '\n' ' ' | sed -e 's/\s\+/ /g') 151 | sed -e "s/'json:[^']*'/\$QUORUM_FILE/g" \ 169 $QEMU_IO -c "write -P 0xa 900G 512" "$TEST_IMG" | _filter_qemu_io [all …]
|
H A D | 288 | 48 echo "== measure 1G image file ==" 54 --size 1G 57 echo "== create 1G image file (size should be no greater than measured) ==" 60 _make_test_img 1G 64 echo "== modified 1G image file (size should be no greater than measured) ==" 71 echo "== measure preallocation=falloc 1G image file ==" 77 --size 1G 83 IMGFMT=raw IMGKEYSECRET= IMGOPTS= _make_test_img 1G | _filter_imgfmt
|
/qemu/tests/tcg/multiarch/ |
H A D | sha512.c | 262 …_t a, uint64_t b, uint64_t c, uint64_t *d, uint64_t e, uint64_t f, uint64_t g, uint64_t *h, uint64… in Round() argument 264 uint64_t t1 = *h + Sigma1(e) + Ch(e, f, g) + k + w; in Round() 273 uint64_t a = s[0], b = s[1], c = s[2], d = s[3], e = s[4], f = s[5], g = s[6], h = s[7]; in Transform() local 276 Round(a, b, c, &d, e, f, g, &h, 0x428a2f98d728ae22ull, w0 = be64_to_cpu(chunk[0])); in Transform() 277 Round(h, a, b, &c, d, e, f, &g, 0x7137449123ef65cdull, w1 = be64_to_cpu(chunk[1])); in Transform() 278 Round(g, h, a, &b, c, d, e, &f, 0xb5c0fbcfec4d3b2full, w2 = be64_to_cpu(chunk[2])); in Transform() 279 Round(f, g, h, &a, b, c, d, &e, 0xe9b5dba58189dbbcull, w3 = be64_to_cpu(chunk[3])); in Transform() 280 Round(e, f, g, &h, a, b, c, &d, 0x3956c25bf348b538ull, w4 = be64_to_cpu(chunk[4])); in Transform() 281 Round(d, e, f, &g, h, a, b, &c, 0x59f111f1b605d019ull, w5 = be64_to_cpu(chunk[5])); in Transform() 282 Round(c, d, e, &f, g, h, a, &b, 0x923f82a4af194f9bull, w6 = be64_to_cpu(chunk[6])); in Transform() [all …]
|
/qemu/audio/ |
H A D | paaudio.c | 33 paaudio *g; member 41 paaudio *g; member 102 PAConnection *c = p->g->conn; in qpa_get_buffer_in() 130 PAConnection *c = p->g->conn; in qpa_put_buffer_in() 155 PAConnection *c = p->g->conn; in qpa_read() 207 PAConnection *c = p->g->conn; in qpa_buffer_get_free() 236 PAConnection *c = p->g->conn; in qpa_get_buffer_out() 262 PAConnection *c = p->g->conn; in qpa_put_buffer_out() 284 PAConnection *c = p->g->conn; in qpa_write() 520 paaudio *g = pa->g = drv_opaque; in qpa_init_out() local [all …]
|
/qemu/pc-bios/ |
HD | hppa-firmware.img | ... @ 0HALT 8 | t l d X Lj g g <n r O :Q R h [ ... |
/qemu/system/ |
H A D | memory_mapping.c | 198 static void guest_phys_block_add_section(GuestPhysListener *g, in guest_phys_block_add_section() argument 208 if (!QTAILQ_EMPTY(&g->list->head)) { in guest_phys_block_add_section() 211 predecessor = QTAILQ_LAST(&g->list->head); in guest_phys_block_add_section() 235 QTAILQ_INSERT_TAIL(&g->list->head, block, next); in guest_phys_block_add_section() 236 ++g->list->num; in guest_phys_block_add_section() 247 target_end, predecessor ? "joined" : "added", g->list->num); in guest_phys_block_add_section() 254 GuestPhysListener *g = opaque; in guest_phys_ram_populate_cb() local 256 guest_phys_block_add_section(g, section); in guest_phys_ram_populate_cb() 263 GuestPhysListener *g = container_of(listener, GuestPhysListener, listener); in guest_phys_blocks_region_add() local 278 guest_phys_ram_populate_cb, g); in guest_phys_blocks_region_add() [all …]
|