/qemu/hw/i386/ |
H A D | sgx-epc.c | 58 HostMemoryBackend *hostmem; in sgx_epc_realize() local 67 if (!epc->hostmem) { in sgx_epc_realize() 71 hostmem = MEMORY_BACKEND(epc->hostmem); in sgx_epc_realize() 72 if (host_memory_backend_is_mapped(hostmem)) { in sgx_epc_realize() 83 host_memory_backend_set_mapped(hostmem, true); in sgx_epc_realize() 95 HostMemoryBackend *hostmem = MEMORY_BACKEND(epc->hostmem); in sgx_epc_unrealize() local 97 host_memory_backend_set_mapped(hostmem, false); in sgx_epc_unrealize() 123 HostMemoryBackend *hostmem; in sgx_epc_md_get_memory_region() local 125 if (!epc->hostmem) { in sgx_epc_md_get_memory_region() 130 hostmem = MEMORY_BACKEND(epc->hostmem); in sgx_epc_md_get_memory_region() [all …]
|
H A D | sgx.c | 119 HostMemoryBackend *hostmem; in sgx_epc_reset() local 133 hostmem = MEMORY_BACKEND(epc->hostmem); in sgx_epc_reset() 134 fd = memory_region_get_fd(host_memory_backend_get_memory(hostmem)); in sgx_epc_reset()
|
/qemu/hw/mem/ |
H A D | nvdimm.c | 125 if (!dimm->hostmem) { in nvdimm_prepare_memory_region() 130 mr = host_memory_backend_get_memory(dimm->hostmem); in nvdimm_prepare_memory_region() 139 HostMemoryBackend *hostmem = dimm->hostmem; in nvdimm_prepare_memory_region() local 144 object_get_canonical_path_component(OBJECT(hostmem)), in nvdimm_prepare_memory_region() 150 HostMemoryBackend *hostmem = dimm->hostmem; in nvdimm_prepare_memory_region() local 154 object_get_canonical_path_component(OBJECT(hostmem))); in nvdimm_prepare_memory_region() 232 bool is_pmem = object_property_get_bool(OBJECT(dimm->hostmem), in nvdimm_write_label_data() 244 mr = host_memory_backend_get_memory(dimm->hostmem); in nvdimm_write_label_data()
|
H A D | pc-dimm.c | 39 if (!dimm->hostmem) { in pc_dimm_get_memory_region() 44 return host_memory_backend_get_memory(dimm->hostmem); in pc_dimm_get_memory_region() 160 DEFINE_PROP_LINK(PC_DIMM_MEMDEV_PROP, PCDIMMDevice, hostmem, 207 if (!dimm->hostmem) { in pc_dimm_realize() 210 } else if (host_memory_backend_is_mapped(dimm->hostmem)) { in pc_dimm_realize() 212 object_get_canonical_path_component(OBJECT(dimm->hostmem))); in pc_dimm_realize() 220 host_memory_backend_set_mapped(dimm->hostmem, true); in pc_dimm_realize() 232 host_memory_backend_set_mapped(dimm->hostmem, false); in pc_dimm_unrealize() 271 di->memdev = object_get_canonical_path(OBJECT(dimm->hostmem)); in pc_dimm_md_fill_device_info()
|
H A D | cxl_type3.c | 574 if (!ct3d->hostmem && !ct3d->hostvmem && !ct3d->hostpmem) { in cxl_setup_memory() 577 } else if (ct3d->hostmem && ct3d->hostpmem) { in cxl_setup_memory() 581 } else if (ct3d->hostmem) { in cxl_setup_memory() 583 ct3d->hostpmem = ct3d->hostmem; in cxl_setup_memory() 584 ct3d->hostmem = NULL; in cxl_setup_memory() 923 DEFINE_PROP_LINK("memdev", CXLType3Dev, hostmem, TYPE_MEMORY_BACKEND,
|
/qemu/backends/ |
H A D | meson.build | 5 'hostmem-ram.c', 6 'hostmem.c', 15 system_ss.add(files('hostmem-file.c')) 18 system_ss.add(files('hostmem-memfd.c')) 32 system_ss.add(when: 'CONFIG_SGX', if_true: files('hostmem-epc.c'))
|
/qemu/hw/display/ |
H A D | virtio-gpu-pci.c | 39 memory_region_init(&g->hostmem, OBJECT(g), "virtio-gpu-hostmem", in virtio_gpu_pci_base_realize() 40 g->conf.hostmem); in virtio_gpu_pci_base_realize() 45 &g->hostmem); in virtio_gpu_pci_base_realize() 46 virtio_pci_add_shm_cap(vpci_dev, 4, 0, g->conf.hostmem, in virtio_gpu_pci_base_realize()
|
H A D | virtio-vga.c | 133 memory_region_init(&g->hostmem, OBJECT(g), "virtio-gpu-hostmem", in virtio_vga_base_realize() 134 g->conf.hostmem); in virtio_vga_base_realize() 139 &g->hostmem); in virtio_vga_base_realize() 140 virtio_pci_add_shm_cap(vpci_dev, 4, 0, g->conf.hostmem, in virtio_vga_base_realize()
|
H A D | virtio-gpu.c | 296 res->hostmem = calc_image_hostmem(pformat, c2d.width, c2d.height); in virtio_gpu_resource_create_2d() 297 if (res->hostmem + g->hostmem < g->conf_max_hostmem) { in virtio_gpu_resource_create_2d() 300 bits = qemu_win32_map_alloc(res->hostmem, &res->handle, &error_warn); in virtio_gpu_resource_create_2d() 309 bits, c2d.height ? res->hostmem / c2d.height : 0); in virtio_gpu_resource_create_2d() 330 g->hostmem += res->hostmem; in virtio_gpu_resource_create_2d() 421 g->hostmem -= res->hostmem; in virtio_gpu_resource_destroy() 1265 g->hostmem += res->hostmem; in virtio_gpu_load_restore_mapping() 1278 g->hostmem = 0; in virtio_gpu_load() 1301 res->hostmem = calc_image_hostmem(pformat, res->width, res->height); in virtio_gpu_load() 1312 bits, res->height ? res->hostmem / res->height : 0); in virtio_gpu_load() [all …]
|
H A D | virtio-gpu-rutabaga.c | 697 memory_region_add_subregion(&vb->hostmem, mblob.offset, mr); in rutabaga_cmd_resource_map_blob() 739 memory_region_del_subregion(&vb->hostmem, mr); in rutabaga_cmd_resource_unmap_blob()
|
/qemu/hw/hyperv/ |
H A D | hv-balloon.c | 161 HostMemoryBackend *hostmem; member 439 if (!balloon->hostmem) { in hv_balloon_our_range_ensure() 1467 assert(balloon->hostmem); in hv_balloon_ensure_mr() 1507 if (balloon->hostmem) { in hv_balloon_vmdev_realize() 1508 if (host_memory_backend_is_mapped(balloon->hostmem)) { in hv_balloon_vmdev_realize() 1509 Object *obj = OBJECT(balloon->hostmem); in hv_balloon_vmdev_realize() 1527 host_memory_backend_set_mapped(balloon->hostmem, true); in hv_balloon_vmdev_realize() 1602 if (balloon->hostmem) { in hv_balloon_vmdev_unrealize() 1631 if (!balloon->hostmem) { in hv_balloon_md_get_memory_region() 1670 if (balloon->hostmem) { in hv_balloon_md_fill_device_info() [all …]
|
/qemu/include/hw/virtio/ |
H A D | virtio-gpu.h | 57 uint64_t hostmem; member 119 (_cfg.hostmem > 0) 126 uint64_t hostmem; member 150 MemoryRegion hostmem; member 195 uint64_t hostmem; member
|
/qemu/hw/ppc/ |
H A D | spapr_nvdimm.c | 73 MemoryRegion *mr = host_memory_backend_get_memory(dimm->hostmem); in spapr_nvdimm_validate() 115 object_get_canonical_path_component(OBJECT(dimm->hostmem))); in spapr_nvdimm_validate() 193 HostMemoryBackend *hostmem = dimm->hostmem; in spapr_dt_nvdimm() local 195 is_pmem = object_property_get_bool(OBJECT(hostmem), "pmem", NULL); in spapr_dt_nvdimm() 458 backend = MEMORY_BACKEND(dimm->hostmem); in flush_worker_cb() 462 MemoryRegion *mr = host_memory_backend_get_memory(dimm->hostmem); in flush_worker_cb() 500 HostMemoryBackend *backend = MEMORY_BACKEND(PC_DIMM(s_nvdimm)->hostmem); in spapr_nvdimm_flush_post_load() 680 backend = MEMORY_BACKEND(dimm->hostmem); in h_scm_flush() 871 HostMemoryBackend *backend = MEMORY_BACKEND(PC_DIMM(dimm)->hostmem); in type_init()
|
/qemu/hw/misc/ |
H A D | ivshmem.c | 96 HostMemoryBackend *hostmem; /* with interrupts */ member 857 if (s->hostmem != NULL) { in ivshmem_common_realize() 860 s->ivshmem_bar2 = host_memory_backend_get_memory(s->hostmem); in ivshmem_common_realize() 861 host_memory_backend_set_mapped(s->hostmem, true); in ivshmem_common_realize() 926 if (!s->hostmem) { in ivshmem_exit() 942 if (s->hostmem) { in ivshmem_exit() 943 host_memory_backend_set_mapped(s->hostmem, false); in ivshmem_exit() 1027 DEFINE_PROP_LINK("memdev", IVShmemState, hostmem, TYPE_MEMORY_BACKEND, 1036 if (!s->hostmem) { in ivshmem_plain_realize() 1039 } else if (host_memory_backend_is_mapped(s->hostmem)) { in ivshmem_plain_realize() [all …]
|
/qemu/docs/system/devices/ |
H A D | ivshmem.rst | 9 |qemu_system_x86| -device ivshmem-plain,memdev=hostmem 11 where hostmem names a host memory backend. For a POSIX shared memory 16 -object memory-backend-file,size=1M,share,mem-path=/dev/shm/ivshmem,id=hostmem
|
H A D | virtio-gpu.rst | 85 This device does require host blob support (``hostmem`` field below). The 86 ``hostmem`` field specifies the size of virtio-gpu host memory window. 106 hostmem=8G,wayland-socket-path=/tmp/nonstandard/mock_wayland.sock,
|
/qemu/hw/acpi/ |
H A D | erst.c | 159 HostMemoryBackend *hostmem; member 955 if (!s->hostmem) { in erst_realizefn() 958 } else if (host_memory_backend_is_mapped(s->hostmem)) { in erst_realizefn() 960 object_get_canonical_path_component(OBJECT(s->hostmem))); in erst_realizefn() 964 s->hostmem_mr = host_memory_backend_get_memory(s->hostmem); in erst_realizefn() 967 s->storage_size = object_property_get_int(OBJECT(s->hostmem), "size", errp); in erst_realizefn() 1015 DEFINE_PROP_LINK(ACPI_ERST_MEMDEV_PROP, ERSTDeviceState, hostmem,
|
/qemu/include/hw/mem/ |
H A D | pc-dimm.h | 52 HostMemoryBackend *hostmem; member
|
/qemu/include/hw/i386/ |
H A D | sgx-epc.h | 44 HostMemoryBackendEpc *hostmem; member
|
/qemu/hw/intc/ |
H A D | arm_gicv3_its.c | 1279 void *hostmem; in process_cmdq() local 1286 hostmem = address_space_map(as, s->cq.base_addr + cq_offset, in process_cmdq() 1288 if (!hostmem || buflen != GITS_CMDQ_ENTRY_SIZE) { in process_cmdq() 1289 if (hostmem) { in process_cmdq() 1290 address_space_unmap(as, hostmem, buflen, false, 0); in process_cmdq() 1299 cmdpkt[i] = ldq_le_p(hostmem + i * sizeof(uint64_t)); in process_cmdq() 1301 address_space_unmap(as, hostmem, buflen, false, 0); in process_cmdq()
|
/qemu/hw/cxl/ |
H A D | cxl-mailbox-utils.c | 921 void *hostmem = memory_region_get_ram_ptr(mr); in __do_sanitization() local 922 memset(hostmem, 0, memory_region_size(mr)); in __do_sanitization() 929 void *hostmem = memory_region_get_ram_ptr(mr); in __do_sanitization() local 930 memset(hostmem, 0, memory_region_size(mr)); in __do_sanitization()
|
/qemu/include/hw/cxl/ |
H A D | cxl_device.h | 428 HostMemoryBackend *hostmem; /* deprecated */ member
|
/qemu/ |
H A D | MAINTAINERS | 3152 F: backends/hostmem*.c 3153 F: include/sysemu/hostmem.h
|