Searched +full:no +full:- +full:map (Results 1 – 25 of 357) sorted by relevance
12345678910>>...15
16 * information, and no extra user data is allowed for each element. A30 #define IOVA_ERR_INVALID (-1) /* Invalid parameters */31 #define IOVA_ERR_OVERLAP (-2) /* IOVA range overlapped */32 #define IOVA_ERR_NOMEM (-3) /* Cannot allocate */41 typedef gboolean (*iova_tree_iterator)(DMAMap *map);46 * Create a new GPA->IOVA tree.55 * @tree: The GPA->IOVA tree we're inserting the mapping to56 * @map: The GPA->IOVA mapping to insert58 * Inserts a GPA range to the GPA->IOVA tree. If there are overlapped63 int gpa_tree_insert(IOVATree *tree, const DMAMap *map);[all …]
13 #include "qemu/iova-tree.h"27 /* Map at the left of the hole, can be NULL if "this" is first one */30 /* Map at the right of the hole, can be NULL if "prev" is the last one */54 args->prev = args->this; in iova_tree_alloc_args_iterate()55 args->this = next; in iova_tree_alloc_args_iterate()62 if (m1->iova > m2->iova + m2->size) { in iova_tree_compare()66 if (m1->iova + m1->size < m2->iova) { in iova_tree_compare()67 return -1; in iova_tree_compare()78 /* We don't have values actually, no need to free */ in iova_tree_new()79 iova_tree->tree = g_tree_new_full(iova_tree_compare, NULL, g_free, NULL); in iova_tree_new()[all …]
2 * qht.c - QEMU Hash Table, designed to scale for read-mostly workloads.7 * See the COPYING file in the top-level directory.10 * - NULL cannot be inserted/removed as a pointer value.11 * - Trying to insert an already-existing hash-pointer pair is OK. However,12 * it is not OK to insert into the same hash table different hash-pointer14 * - Lookups are performed under an RCU read-critical section; removals18 * - Reads (i.e. lookups and iterators) can be concurrent with other reads.22 * - Writes (i.e. insertions/removals) can be concurrent with writes to24 * - Optional auto-resizing: the hash table resizes up if the load surpasses28 * The key structure is the bucket, which is cacheline-sized. Buckets[all …]
25 * no particular effort to keep them zero. It ensures that160 void bitmap_set(unsigned long *map, long start, long nr) in bitmap_set() argument162 unsigned long *p = map + BIT_WORD(start); in bitmap_set()164 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); in bitmap_set()169 while (nr - bits_to_set >= 0) { in bitmap_set()171 nr -= bits_to_set; in bitmap_set()182 void bitmap_set_atomic(unsigned long *map, long start, long nr) in bitmap_set_atomic() argument184 unsigned long *p = map + BIT_WORD(start); in bitmap_set_atomic()186 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); in bitmap_set_atomic()192 if (nr - bits_to_set > 0) { in bitmap_set_atomic()[all …]
14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE32 * 0 +----------------+35 * 4 +----------------+37 * | | versions are guaranteed to be backwards-compatible.38 * 8 +----------------+40 * 12 +----------------+42 * 16 +----------------+45 * 24 +----------------+47 * | | a zero-terminated ASCII string.48 * 32 +----------------+[all …]
... -dma-map-in) to (dma-map-in) / find-device banner-
4 # Test case for copy-on-read into qcow240 *[^-_a-zA-Z0-9/]*)48 rm -f "$BLKDBG_CONF"60 echo '=== Copy-on-read ==='69 $QEMU_IO -c "write -P 55 3G 1k" "$TEST_IMG" | _filter_qemu_io71 _make_test_img --no-opts -F "$IMGFMT" -b "$TEST_IMG" | _filter_img_create72 $QEMU_IO -f qcow2 -c "write -z -u 1M 64k" "$TEST_WRAP" | _filter_qemu_io75 # does not re-write the allocated cluster77 [inject-error]81 $QEMU_IO -c "open -C \[all …]
4 # Test drive-mirror with quorum8 # is that drive-mirror will try the efficient representation of zeroes60 TEST_IMG="$TEST_IMG.0" _make_test_img -o cluster_size=64k 10M61 TEST_IMG="$TEST_IMG.1" _make_test_img -o cluster_size=64k 10M62 TEST_IMG="$TEST_IMG.2" _make_test_img -o cluster_size=64k 10M63 TEST_IMG="$TEST_IMG.3" _make_test_img -o cluster_size=64k 10M65 quorum="driver=raw,file.driver=quorum,file.vote-threshold=2"74 echo '### Output of qemu-img map (empty quorum)'76 $QEMU_IMG map --image-opts $quorum | _filter_qemu_img_map82 # output of qemu-img map on the resulting image.[all …]
58 { $QEMU_IO -c "read -P 0 $CLUSTER_HALF_SIZE $CLUSTER_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | …60 { $QEMU_IO -c "write -P 0x11 $CLUSTER_HALF_SIZE $CLUSTER_DBL_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qe…62 { $QEMU_IO -c "read -P 0x11 $CLUSTER_HALF_SIZE $CLUSTER_HALF_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qe…64 { $QEMU_IO -c "read -P 0x11 $CLUSTER_SIZE $CLUSTER_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _f…66 { $QEMU_IO -c "read -P 0x11 $CLUSTER_HALF_SIZE $CLUSTER_DBL_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qem…67 echo == check that there is no trash after written ==68 { $QEMU_IO -c "read -P 0 $((CLUSTER_HALF_SIZE + CLUSTER_DBL_SIZE)) $CLUSTER_HALF_SIZE" "$TEST_IMG";…69 echo == check that there is no trash before written ==70 { $QEMU_IO -c "read -P 0 0 $CLUSTER_HALF_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _filter_test…75 { $QEMU_IO -c "read -P 0x11 $CLUSTER_SIZE $CLUSTER_SIZE" "$TEST_IMG"; } 2>&1 | _filter_qemu_io | _f…[all …]
37 qemu_img('create', '-f', iotests.imgfmt,38 '-o', 'backing_file=%s' % backing_img,39 '-F', 'raw', mid_img)40 qemu_img('create', '-f', iotests.imgfmt,41 '-o', 'backing_file=%s' % mid_img,42 '-F', iotests.imgfmt, test_img)43 qemu_io('-f', 'raw', '-c', 'write -P 0x1 0 512', backing_img)44 qemu_io('-f', iotests.imgfmt, '-c', 'write -P 0x1 524288 512', mid_img)46 "backing.node-name=mid," +47 "backing.backing.node-name=base")[all …]
6 # Copyright (C) 2016-2017 Red Hat, Inc.54 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT59 # X = non-zero data sector in backing file60 # - = sector unallocated in whole backing chain63 # 1. Tail unaligned: 00 00 -- --64 # 2. Head unaligned: -- -- 00 0065 # 3. Both unaligned: -- 00 00 --66 # 4. Both, 2 clusters: -- -- -- 00 | 00 -- -- --68 $QEMU_IO -c "write -z 0 2k" "$TEST_IMG" | _filter_qemu_io69 $QEMU_IO -c "write -z 10k 2k" "$TEST_IMG" | _filter_qemu_io[all …]
54 # is no data when creating the snapshot)59 $QEMU -nographic -qmp stdio -serial none "$@" 2>&1 \67 # 0: Two-layer backing chain, commit to upper backing file (implicitly)69 # 1: Two-layer backing chain, commit to upper backing file (explicitly)71 # 2: Two-layer backing chain, commit to upper backing file (implicitly with -d)73 # 3: Two-layer backing chain, commit to lower backing file78 # no complicated patterns are necessary. Check near the 2G mark, as qcow288 TEST_IMG="$TEST_IMG.itmd" _make_test_img -b "$TEST_IMG.base" -F $IMGFMT $len89 _make_test_img -b "$TEST_IMG.itmd" -F $IMGFMT $len92 snapshot) $QEMU_IMG snapshot -c snap "$TEST_IMG" ;;[all …]
2 == readonly=off,force-share=on should be rejected ==3 QEMU_PROG: -drive if=none,file=null-co://,readonly=off,force-share=on: force-share=on can only be u…14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock17 == Launching another QEMU, opts: 'read-only=on' ==18 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,read-only=on: Failed to get shared "write" lock21 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==25 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow226 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock29 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow230 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock[all …]
50 # 0: Two-layer backing chain, commit to upper backing file (implicitly)52 # 1: Two-layer backing chain, commit to upper backing file (explicitly)54 # 2: Two-layer backing chain, commit to upper backing file (implicitly with -d)56 # 3: Two-layer backing chain, commit to lower backing file61 # no complicated patterns are necessary. Check near the 2G mark, as qcow271 TEST_IMG="$TEST_IMG.itmd" _make_test_img -b "$TEST_IMG.base" -F $IMGFMT $len72 _make_test_img -b "$TEST_IMG.itmd" -F $IMGFMT $len74 $QEMU_IO -c "write -P 1 0x7ffd0000 192k" "$TEST_IMG.base" | _filter_qemu_io75 $QEMU_IO -c "write -P 2 0x7ffe0000 128k" "$TEST_IMG.itmd" | _filter_qemu_io76 $QEMU_IO -c "write -P 3 0x7fff0000 64k" "$TEST_IMG" | _filter_qemu_io[all …]
2 # coding: utf-816 # See the COPYING file in the top-level directory.18 # SPDX-License-Identifier: GPL-2.0-or-later26 MAP = { variable30 "armv8-a" : ["aarch64", "aarch64_be"],32 # no hexagon in upstream gdb35 "i386:x86-64" : ["x86_64"],45 "s390:64-bit" : ["s390x"],50 # no tricore in upstream gdb58 "-ex", "set architecture",[all …]
4 * Copyright (C) 2009-2010 Daniel P. Berrange <dan@berrange.com>43 if (strcmp(extensions[i], "Apple-WM") == 0 || in check_for_xquartz()44 strcmp(extensions[i], "Apple-DRI") == 0) { in check_for_xquartz()59 const guint16 *map; in qemu_xkeymap_mapping_table() local61 /* There is no easy way to determine what X11 server in qemu_xkeymap_mapping_table()74 keycodes = XGetAtomName (dpy, desc->names->keycodes); in qemu_xkeymap_mapping_table()87 map = qemu_input_map_xorgxwin_to_qcode; in qemu_xkeymap_mapping_table()91 map = qemu_input_map_xorgxquartz_to_qcode; in qemu_xkeymap_mapping_table()96 map = qemu_input_map_xorgevdev_to_qcode; in qemu_xkeymap_mapping_table()101 map = qemu_input_map_xorgkbd_to_qcode; in qemu_xkeymap_mapping_table()[all …]
9 #include "qemu/host-utils.h"16 #define ROUND_UP(n, d) (((n) + (d) - 1) & -(0 ? (n) : (d)))21 return s->gs.base >> 63; in is_system()24 Elf64_Phdr *elf64_getphdr(void *map) in elf64_getphdr() argument26 Elf64_Ehdr *ehdr = map; in elf64_getphdr()27 Elf64_Phdr *phdr = (void *)((uint8_t *)map + ehdr->e_phoff); in elf64_getphdr()32 Elf64_Half elf_getphdrnum(void *map) in elf_getphdrnum() argument34 Elf64_Ehdr *ehdr = map; in elf_getphdrnum()36 return ehdr->e_phnum; in elf_getphdrnum()43 if (uadd64_overflow(offset, size, &offset) || offset > UINT64_MAX - 3) { in advance_note_offset()[all …]
1 /* SPDX-License-Identifier: MIT */6 * page-ownership transfers.31 * This capability-based system allows shared-memory communications43 /* Some rough guidelines on accessing and updating grant-table entries44 * in a concurrency-safe manner. For more information, Linux contains a46 …* http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=drivers/xen/grant-table.c;…48 * NB. WMB is a no-op on current-generation x86 processors. However, a52 * 1. Write ent->domid.53 * 2. Write ent->frame:55 * GTF_accept_transfer: Pseudo-phys frame slot being filled by new[all …]
10 * See the COPYING file in the top-level directory.33 /* ------------------------------------------------------------------------ */60 static void walk_map(struct xkb_keymap *map, xkb_keycode_t code, void *data) in walk_map() argument70 * map xkb keycode -> QKeyCode in walk_map()74 evdev = code - 8; in walk_map()80 fprintf(outfile, "# evdev %d (0x%x): no evdev -> QKeyCode mapping" in walk_map()126 "which can be used with the qemu \"-k\" command line switch.\n" in usage()128 "usage: qemu-keymap <options>\n" in usage()130 " -h print this text\n" in usage()131 " -f <file> set output file (default: stdout)\n" in usage()[all …]
2 * QEMU emulation of an Intel IOMMU (VT-d)25 #include "hw/i386/x86-iommu.h"26 #include "qemu/iova-tree.h"29 #define TYPE_INTEL_IOMMU_DEVICE "intel-iommu"32 #define TYPE_INTEL_IOMMU_MEMORY_REGION "intel-iommu-iommu-memory-region"49 #define VTD_HAW_MASK(aw) ((1ULL << (aw)) - 1)67 /* Context-Entry */116 * The tree is not needed if no MAP notifier is registered with current121 * The tree OTOH is required for MAP typed iommu notifiers for a few124 * Firstly, there's no way to identify whether an PSI (Page Selective[all …]
4 * SPDX-FileCopyrightText: Red Hat, Inc. 20215 * SPDX-FileContributor: Author: Eugenio Pérez <eperezma@redhat.com>7 * SPDX-License-Identifier: GPL-2.0-or-later11 #include "hw/virtio/vhost-shadow-virtqueue.h"13 #include "qemu/error-report.h"15 #include "qemu/main-loop.h"18 #include "linux-headers/linux/vhost.h"71 return svq->num_free; in vhost_svq_available_slots()94 const DMAMap *map; in vhost_svq_translate_addr() local99 /* Search the GPA->IOVA tree */ in vhost_svq_translate_addr()[all …]
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,14 boot priority. There is no particular order in which devices with no19 not support ``-boot order=``; on those machines you must always22 There is no way to set a ``bootindex`` property if you are using23 a short-form option like ``-hda`` or ``-cdrom``, so to use25 into long-form ``-drive`` and ``-device`` option pairs.28 -------33 .. parsed-literal::35 |qemu_system| -drive file=disk1.img,if=none,id=disk1 \\[all …]
4 * Copyright (c) 2010 - 2011 B Labs Ltd.20 * Contributions after 2012-01-13 are licensed under the terms of the38 #include "qemu/error-report.h"48 #include "target/arm/cpu-qom.h"63 * the "legacy" one (used for A9) and the "Cortex-A Series"64 * map (used for newer cores).189 #define TYPE_VEXPRESS_A9_MACHINE MACHINE_TYPE_NAME("vexpress-a9")190 #define TYPE_VEXPRESS_A15_MACHINE MACHINE_TYPE_NAME("vexpress-a15")218 unsigned int smp_cpus = ms->smp.cpus; in init_cpus()233 if (object_property_find(cpuobj, "reset-cbar")) { in init_cpus()[all …]
21 #include "exec/page-vary.h"31 #include "accel/tcg/cpu-ops.h"36 #include "exec/page-protection.h"38 #include "exec/translation-block.h"39 #include "hw/qdev-core.h"40 #include "hw/qdev-properties.h"47 #include "qemu/config-file.h"48 #include "qemu/error-report.h"49 #include "qemu/qemu-print.h"58 #include "system/xen-mapcache.h"[all …]
30 #include "hw/watchdog/allwinner-wdt.h"60 /* Map of INTV_VALUE to 0.5s units. */76 /* WDT sun4i register map (offset to name) */82 /* WDT sun6i register map (offset to name) */93 /* no sun4i specific registers currently implemented */ in allwinner_wdt_sun4i_read()100 /* no sun4i specific registers currently implemented */ in allwinner_wdt_sun4i_write()106 if (s->regs[REG_MODE] & RST_EN_SUN4I_MASK) { in allwinner_wdt_sun4i_can_reset_system()115 /* sun4i has no key */ in allwinner_wdt_sun4i_is_key_valid()121 return ((s->regs[REG_MODE] & INTV_VALUE_SUN4I_MASK) >> in allwinner_wdt_sun4i_get_intv_value()129 switch (c->regmap[offset]) { in allwinner_wdt_sun6i_read()[all …]