Home
last modified time | relevance | path

Searched refs:unmap (Results 1 – 25 of 35) sorted by relevance

12

/qemu/hw/vfio/
H A Dcontainer.c68 struct vfio_iommu_type1_dma_unmap *unmap; in vfio_dma_unmap_bitmap() local
78 unmap = g_malloc0(sizeof(*unmap) + sizeof(*bitmap)); in vfio_dma_unmap_bitmap()
80 unmap->argsz = sizeof(*unmap) + sizeof(*bitmap); in vfio_dma_unmap_bitmap()
81 unmap->iova = iova; in vfio_dma_unmap_bitmap()
82 unmap->size = size; in vfio_dma_unmap_bitmap()
83 unmap->flags |= VFIO_DMA_UNMAP_FLAG_GET_DIRTY_BITMAP; in vfio_dma_unmap_bitmap()
84 bitmap = (struct vfio_bitmap *)&unmap->data; in vfio_dma_unmap_bitmap()
110 g_free(unmap); in vfio_dma_unmap_bitmap()
125 struct vfio_iommu_type1_dma_unmap unmap = { in vfio_legacy_dma_unmap() local
126 .argsz = sizeof(unmap), in vfio_legacy_dma_unmap()
[all …]
/qemu/tests/qemu-iotests/
H A D271102 unmap)
203 _run_test sc=0 len=32k cmd=unmap
207 _run_test sc=0 len=64k cmd=unmap
444 _run_test c=9 sc=0 len=192k cmd=unmap
450 _run_test c=12 sc=16 len=128k cmd=unmap
458 _run_test c=15 sc=15 off=1 len=128k cmd=unmap
474 _run_test c=18 sc=0 len=192k cmd=unmap
484 _run_test c=21 sc=16 len=128k cmd=unmap
495 _run_test c=24 sc=15 off=1 len=129k cmd=unmap
506 _run_test c=27 sc=15 off=1 len=128k cmd=unmap
H A D271.out289 ### Zero + unmap 1: allocated clusters (backing file: yes) ###
317 ### Zero + unmap 2: compressed clusters (backing file: yes) ###
358 ### Zero + unmap 1: allocated clusters (backing file: no) ###
385 ### Zero + unmap 2: compressed clusters (backing file: no) ###
H A Dcommon.rc544 --blockdev file,node-name=export-node,filename=$img_name,discard=unmap \
/qemu/backends/
H A Diommufd.c181 struct iommu_ioas_unmap unmap = { in iommufd_backend_unmap_dma() local
182 .size = sizeof(unmap), in iommufd_backend_unmap_dma()
188 ret = ioctl(fd, IOMMU_IOAS_UNMAP, &unmap); in iommufd_backend_unmap_dma()
/qemu/include/hw/xen/
H A Dxen_backend_ops.h161 int (*unmap)(xengnttab_handle *xgt, void *start_address, uint32_t *refs, member
228 return xen_gnttab_ops->unmap(xgt, start_address, refs, count); in qemu_xen_gnttab_unmap()
234 int (*unmap)(void *addr, size_t pages); member
254 return xen_foreignmem_ops->unmap(addr, pages); in qemu_xen_foreignmem_unmap()
/qemu/docs/tools/
H A Dqemu-nbd.rst118 Control whether ``discard`` (also known as ``trim`` or ``unmap``)
120 ``ignore`` (or ``off``), ``unmap`` (or ``on``). The default is
127 ``off``, ``on``, or ``unmap``. ``unmap``
128 converts a zero write to an unmap operation and can only be used if
129 *DISCARD* is set to ``unmap``. The default is ``off``.
/qemu/util/
H A Dvfio-helpers.c640 struct vfio_iommu_type1_dma_unmap unmap = { in qemu_vfio_undo_mapping() local
641 .argsz = sizeof(unmap), in qemu_vfio_undo_mapping()
651 if (ioctl(s->container, VFIO_IOMMU_UNMAP_DMA, &unmap)) { in qemu_vfio_undo_mapping()
803 struct vfio_iommu_type1_dma_unmap unmap = { in qemu_vfio_dma_reset_temporary() local
804 .argsz = sizeof(unmap), in qemu_vfio_dma_reset_temporary()
811 if (ioctl(s->container, VFIO_IOMMU_UNMAP_DMA, &unmap)) { in qemu_vfio_dma_reset_temporary()
/qemu/docs/devel/
H A Dvfio-iommufd.rst53 (map/unmap | +---------+--------------------+-------+
54 ioas_copy) | | | map/unmap
75 2. VFIO populates DMA map/unmap via the container BEs
/qemu/tests/qtest/
H A Dvirtio-scsi-test.c209 const uint8_t unmap[VIRTIO_SCSI_CDB_SIZE] = { in test_unmap_large_lba() local
231 virtio_scsi_do_command(vs, unmap, NULL, 0, unmap_params, in test_unmap_large_lba()
/qemu/hw/i386/kvm/
H A Dxen_evtchn.h82 int xen_physdev_unmap_pirq(struct physdev_unmap_pirq *unmap);
H A Dxen_evtchn.c1870 int xen_physdev_unmap_pirq(struct physdev_unmap_pirq *unmap) in xen_physdev_unmap_pirq() argument
1873 int pirq = unmap->pirq; in xen_physdev_unmap_pirq()
1880 if (unmap->domid != DOMID_SELF && unmap->domid != xen_domid) { in xen_physdev_unmap_pirq()
H A Dxen_gnttab.c525 .unmap = xen_be_gnttab_unmap,
/qemu/target/i386/kvm/
H A Dxen-emu.c1642 struct physdev_unmap_pirq unmap; in kvm_xen_hcall_physdev_op() local
1644 qemu_build_assert(sizeof(unmap) == 8); in kvm_xen_hcall_physdev_op()
1645 if (kvm_copy_from_gva(cs, arg, &unmap, sizeof(unmap))) { in kvm_xen_hcall_physdev_op()
1650 err = xen_physdev_unmap_pirq(&unmap); in kvm_xen_hcall_physdev_op()
1651 if (!err && kvm_copy_to_gva(cs, arg, &unmap, sizeof(unmap))) { in kvm_xen_hcall_physdev_op()
/qemu/hw/xen/
H A Dxen-operations.c190 .unmap = libxengnttab_backend_unmap,
208 .unmap = libxenforeignmem_backend_unmap,
H A Dtrace-events75 xen_invalidate_map_cache_entry_unlocked_miss(void *buffer) "Trying to unmap address %p that is not …
/qemu/block/
H A Dmirror.c88 bool unmap; member
419 op->s->unmap ? BDRV_REQ_MAY_UNMAP : 0); in mirror_co_zero()
1718 bool unmap, in mirror_start_job() argument
1889 s->unmap = unmap; in mirror_start_job()
2015 bool unmap, const char *filter_node_name, in mirror_start() argument
2037 on_source_error, on_target_error, unmap, NULL, NULL, in mirror_start()
/qemu/include/block/
H A Dblock_int-global-state.h165 bool unmap, const char *filter_node_name,
/qemu/hw/hyperv/
H A Dhyperv.c622 goto unmap; in hyperv_hcall_post_message()
626 goto unmap; in hyperv_hcall_post_message()
639 unmap: in hyperv_hcall_post_message()
H A Dvmbus.c748 goto unmap; in vmbus_channel_notify_guest()
758 unmap: in vmbus_channel_notify_guest()
2250 goto unmap; in vmbus_signal_event()
2263 unmap: in vmbus_signal_event()
/qemu/hw/nvme/
H A Dctrl.c891 goto unmap; in nvme_map_prp()
912 goto unmap; in nvme_map_prp()
957 goto unmap; in nvme_map_prp()
961 goto unmap; in nvme_map_prp()
968 unmap: in nvme_map_prp()
1071 goto unmap; in nvme_map_sgl()
1121 goto unmap; in nvme_map_sgl()
1144 goto unmap; in nvme_map_sgl()
1156 goto unmap; in nvme_map_sgl()
1164 goto unmap; in nvme_map_sgl()
[all …]
/qemu/hw/ide/
H A Dtrace-events85 ahci_unmap_fis_address_null(void *s, int port) "ahci(%p)[%d]: Attempt to unmap NULL FIS address"
86 ahci_unmap_clb_address_null(void *s, int port) "ahci(%p)[%d]: Attempt to unmap NULL CLB address"
/qemu/hw/scsi/
H A Dmegasas.c300 goto unmap; in megasas_map_sgl()
307 goto unmap; in megasas_map_sgl()
315 goto unmap; in megasas_map_sgl()
321 unmap: in megasas_map_sgl()
/qemu/
H A Dblockdev.c2790 bool has_unmap, bool unmap, in blockdev_mirror_common() argument
2819 unmap = true; in blockdev_mirror_common()
2896 on_source_error, on_target_error, unmap, filter_node_name, in blockdev_mirror_common()
3045 arg->has_unmap, arg->unmap, in qmp_drive_mirror()
/qemu/qapi/
H A Dblock-core.json947 # @unmap_operations: The number of unmap operations performed by the
962 # @unmap_total_time_ns: Total time spent on unmap operations in
979 # @unmap_merged: Number of unmap requests that have been merged into
998 # @failed_unmap_operations: The number of failed unmap operations
1013 # @invalid_unmap_operations: The number of invalid unmap operations
2197 # @unmap: Whether to try to unmap target sectors where source has only
2227 '*unmap': 'bool', '*copy-mode': 'MirrorCopyMode',
3113 # @unmap: Forward as an unmap request
3118 'data': [ 'ignore', 'unmap' ] }
3131 # @unmap: Enabled and even try to unmap blocks if possible. This
[all …]

12