Home
last modified time | relevance | path

Searched +full:- +full:- +full:- (Results 651 – 675 of 8803) sorted by relevance

1...<<21222324252627282930>>...353

/qemu/block/
H A Dquorum.c4 * Copyright (C) 2012-2014 Nodalink, EURL.
13 * See the COPYING file in the top-level directory.
25 #include "qapi/qapi-events-block.h"
36 #define QUORUM_OPT_VOTE_THRESHOLD "vote-threshold"
38 #define QUORUM_OPT_REWRITE "rewrite-corrupted"
39 #define QUORUM_OPT_READ_PATTERN "read-pattern"
43 uint8_t h[HASH_LENGTH]; /* SHA-256 hash */
90 bool rewrite_corrupted;/* true if the driver must rewrite-on-read corrupted
150 g_free(acb->qcrs); in quorum_aio_finalize()
156 return !memcmp(a->h, b->h, HASH_LENGTH); in quorum_sha256_compare()
[all …]
/qemu/tests/qemu-iotests/tests/
H A Dqsd-migrate.out8 {"execute": "human-monitor-command", "arguments": {"command-line": "qemu-io -d virtio0/virtio-backe…
10 {"execute": "human-monitor-command", "arguments": {"command-line": "qemu-io -d virtio0/virtio-backe…
14 …ecute": "migrate-set-capabilities", "arguments": {"capabilities": [{"capability": "events", "state…
16 …ecute": "migrate-set-capabilities", "arguments": {"capabilities": [{"capability": "events", "state…
18 {"execute": "migrate", "arguments": {"uri": "unix:SOCK_DIR/PID-migrate.sock"}}
21 Pre-switchover: Reconfigure QSD instances
23 {"execute": "human-monitor-command", "arguments": {"command-line": "qemu-io -d virtio0/virtio-backe…
25 {"execute": "human-monitor-command", "arguments": {"command-line": "qemu-io -d virtio0/virtio-backe…
30 {"execute": "migrate-continue", "arguments": {"state": "pre-switchover"}}
34 {"execute": "human-monitor-command", "arguments": {"command-line": "qemu-io -d virtio0/virtio-backe…
[all …]
/qemu/audio/
H A Djackaudio.c28 #include "qemu/main-loop.h"
98 buffer->channels = channels; in qjack_buffer_create()
99 buffer->frames = frames; in qjack_buffer_create()
100 buffer->used = 0; in qjack_buffer_create()
101 buffer->rptr = 0; in qjack_buffer_create()
102 buffer->wptr = 0; in qjack_buffer_create()
103 buffer->data = g_new(float *, channels); in qjack_buffer_create()
105 buffer->data[i] = g_new(float, frames); in qjack_buffer_create()
111 assert(buffer->data); in qjack_buffer_clear()
112 qatomic_store_release(&buffer->used, 0); in qjack_buffer_clear()
[all …]
/qemu/docs/config/
H A Dq35-virtio-serial.cfg1 # q35 - VirtIO guest (serial console)
6 # $ qemu-system-x86_64 \
7 # -nodefaults \
8 # -readconfig q35-virtio-serial.cfg \
9 # -display none -serial mon:stdio
18 # ---------------------------------------------------------
20 # Using -nodefaults is required to have full control over
43 # We use '-display none' to prevent QEMU from creating a
45 # this specific configuration, and '-serial mon:stdio' to
80 driver = "pcie-root-port"
[all …]
/qemu/tests/qemu-iotests/
H A D2474 # Test for auto-read-only with commit block job
50 echo "=== Try commit to backing file with auto-read-only ==="
60 {"execute":"block-commit",
61 "arguments":{"device":"format-4", "top-node": "format-2", "base-node":"format-0", "job-id":"job0"}}
69 ) | $QEMU -qmp stdio -nographic -nodefaults \
70 -blockdev file,node-name=file-0,filename=$TEST_IMG.0,auto-read-only=on \
71 -blockdev $IMGFMT,node-name=format-0,file=file-0,read-only=on \
72 -blockdev file,node-name=file-1,filename=$TEST_IMG.1,auto-read-only=on \
73 -blockdev $IMGFMT,node-name=format-1,file=file-1,read-only=on,backing=format-0 \
74 -blockdev file,node-name=file-2,filename=$TEST_IMG.2,auto-read-only=on \
[all …]
H A D26733 rm -f "$SOCK_DIR/nbd"
44 _require_drivers copy-on-read
48 _unsupported_imgopts 'refcount_bits=1[^0-9]' data_file
50 _require_devices virtio-blk
56 if ! test -t 0; then
62 ) | $QEMU -nographic -monitor stdio -nodefaults "$@"
76 if [ -n "$BACKING_FILE" ]; then
77 _make_test_img -b "$BACKING_FILE" -F $IMGFMT $size
92 echo "=== -drive if=none ==="
95 run_test -drive driver=file,file="$TEST_IMG",if=none
[all …]
H A D07143 # blkdebug can only inject errors on bs->file, not on the data_file,
50 $QEMU -nographic -qmp stdio -serial none "$@"
69 scratch_out="$TEST_DIR/img-create.out"
71 TEST_IMG="$TEST_IMG.base" IMGFMT="raw" _make_test_img --no-opts $IMG_SIZE \
74 rm -f "$scratch_out"
77 $QEMU_IO -c "open -o driver=raw,file.driver=blkverify,file.raw.filename=$TEST_IMG.base $TEST_IMG" \
78 -c 'read 0 512' -c 'write -P 42 0x38000 512' -c 'read -P 42 0x38000 512' | _filter_qemu_io
80 $QEMU_IO -c 'write -P 42 0 512' "$TEST_IMG" | _filter_qemu_io
82 $QEMU_IO -c "open -o driver=raw,file.driver=blkverify,file.raw.filename=$TEST_IMG.base $TEST_IMG" \
83 -c 'read -P 42 0 512' | _filter_qemu_io
[all …]
H A D3144 # Test qemu-img rebase with compression
51 # 1. "qemu-img rebase -c" should refuse working with any format which doesn't
52 # support compression. We only check "-f raw" here.
57 $QEMU_IMG create -f raw "$TEST_IMG" "$size" | _filter_img_create
58 $QEMU_IMG rebase -c -f raw -b "" "$TEST_IMG"
60 # 2. Write the 1st half of $size to backing file (compressed), 2nd half -- to
62 # with compression (i.e. "qemu-img -c -b ''"). Check that the resulting image
63 # has the written data preserved, and "qemu-img check" reports 100% clusters
70 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT $size
72 $QEMU_IO -c "write -c -P 0xaa 0 $half_size" "$TEST_IMG.base" | _filter_qemu_io
[all …]
/qemu/docs/system/
H A Dmux-chardev.rst4 -----------------------------------------
6 .. include:: mux-chardev.rst.inc
H A Dtarget-avr.rst1 .. _AVR-System-emulator:
4 -------------------
6 Use the executable ``qemu-system-avr`` to emulate a AVR 8 bit based machine.
12 These boards use a ATmega controller, which model is limited to USART & 16-bit
14 https://github.com/seharris/qemu-avr-tests/blob/master/free-rtos/Demo/AVR_ATMega2560_GCC/demo.elf
20 - Continuous non interrupted execution::
22 qemu-system-avr -machine mega2560 -bios demo.elf
24 - Continuous non interrupted execution with serial output into telnet window::
26 qemu-system-avr -M mega2560 -bios demo.elf -nographic \
27 -serial tcp::5678,server=on,wait=off
[all …]
H A Dtarget-sparc.rst1 .. _Sparc32-System-emulator:
4 -----------------------
6 Use the executable ``qemu-system-sparc`` to simulate the following Sun4m
9 - SPARCstation 4
11 - SPARCstation 5
13 - SPARCstation 10
15 - SPARCstation 20
17 - SPARCserver 600MP
19 - SPARCstation LX
21 - SPARCstation Voyager
[all …]
/qemu/hw/intc/
H A Dsifive_plic.c25 #include "qemu/error-report.h"
28 #include "hw/qdev-properties.h"
37 return addr >= base && addr - base < num; in addr_between()
67 atomic_set_masked(&plic->pending[irq >> 5], 1 << (irq & 31), -!!level); in sifive_plic_set_pending()
72 atomic_set_masked(&plic->claimed[irq >> 5], 1 << (irq & 31), -!!level); in sifive_plic_set_claimed()
78 uint32_t max_prio = plic->target_priority[addrid]; in sifive_plic_claimed()
82 for (i = 0; i < plic->bitfield_words; i++) { in sifive_plic_claimed()
84 (plic->pending[i] & ~plic->claimed[i]) & in sifive_plic_claimed()
85 plic->enable[addrid * plic->bitfield_words + i]; in sifive_plic_claimed()
91 if (i == (plic->bitfield_words - 1)) { in sifive_plic_claimed()
[all …]
/qemu/hw/gpio/
H A Daspeed_gpio.c4 * Copyright (C) 2017-2019 IBM Corp.
6 * SPDX-License-Identifier: GPL-2.0-or-later
10 #include "qemu/host-utils.h"
36 * -----------------------------
37 * | 0 | 0 | 0 | falling-edge
38 * | 0 | 0 | 1 | rising-edge
39 * | 0 | 1 | 0 | level-low
40 * | 0 | 1 | 1 | level-high
41 * | 1 | X | X | dual-edge
168 /* AST2600 only - 1.8V gpios */
[all …]
/qemu/qapi/
H A Dblock.json1 # -*- Mode: Python -*-
8 { 'include': 'block-core.json' }
39 # @rechs: Same as @large, but first convert a 16-head geometry to
40 # 15-head, by proportionally scaling up the number of
84 # @query-pr-managers:
94 { 'command': 'query-pr-managers', 'returns': ['PRManagerInfo'],
95 'allow-preconfig': true }
114 # - If @device is not a valid block device, DeviceNotFound
120 # .. qmp-example::
122 # -> { "execute": "eject", "arguments": { "id": "ide1-0-1" } }
[all …]
H A Dcxl.json1 # -*- Mode: Python -*-
32 # @cxl-inject-general-media-event:
42 # @flags: Event Record Flags. See CXL r3.0 Table 8-42 Common Event
46 # lower bits include some flags. See CXL r3.0 Table 8-43 General
50 # information. See CXL r3.0 Table 8-43 General Media Event
53 # @type: Type of memory event that occurred. See CXL r3.0 Table 8-43
57 # @transaction-type: Type of first transaction that caused the event
58 # to occur. See CXL r3.0 Table 8-43 General Media Event Record,
70 # @component-id: Device specific component identifier for the event.
71 # May describe a field replaceable sub-component of the device.
[all …]
/qemu/hw/ipmi/
H A Dipmi_bt.c83 if (ib->use_irq && ib->irqs_enabled && ib->raise_irq) { in ipmi_bt_raise_irq()
84 ib->raise_irq(ib); in ipmi_bt_raise_irq()
90 if (ib->lower_irq) { in ipmi_bt_lower_irq()
91 ib->lower_irq(ib); in ipmi_bt_lower_irq()
98 IPMIBT *ib = iic->get_backend_data(ii); in ipmi_bt_handle_event()
100 if (ib->inlen < 4) { in ipmi_bt_handle_event()
104 if (ib->inmsg[0] != (ib->inlen - 1)) { in ipmi_bt_handle_event()
106 IPMI_BT_SET_BBUSY(ib->control_reg, 1); in ipmi_bt_handle_event()
107 ib->inlen = 0; in ipmi_bt_handle_event()
110 if ((ib->inmsg[1] == (IPMI_NETFN_APP << 2)) && in ipmi_bt_handle_event()
[all …]
H A Dipmi_kcs.c72 if (ik->use_irq && ik->irqs_enabled && ik->raise_irq) { in ipmi_kcs_raise_irq()
73 ik->raise_irq(ik); in ipmi_kcs_raise_irq()
79 if (ik->lower_irq) { in ipmi_kcs_lower_irq()
80 ik->lower_irq(ik); in ipmi_kcs_lower_irq()
86 IPMI_KCS_SET_OBF(ik->status_reg, 1); \
87 if (!ik->obf_irq_set) { \
88 ik->obf_irq_set = 1; \
89 if (!ik->atn_irq_set) { \
99 ik->do_wake = 1; in ipmi_kcs_signal()
100 while (ik->do_wake) { in ipmi_kcs_signal()
[all …]
/qemu/hw/hyperv/
H A Dvmbus.c2 * QEMU Hyper-V VMBus
4 * Copyright (c) 2017-2018 Virtuozzo International GmbH.
7 * See the COPYING file in the top-level directory.
11 #include "qemu/error-report.h"
12 #include "qemu/main-loop.h"
16 #include "hw/qdev-properties.h"
17 #include "hw/qdev-properties-system.h"
20 #include "hw/hyperv/vmbus-bridge.h"
70 * are non-contiguous and may belong to different memory regions.
162 * guest->host notifications, either sent directly or dispatched via
[all …]
/qemu/hw/arm/
H A Daspeed_ast2400.c10 * the COPYING file in the top-level directory.
18 #include "hw/char/serial-mm.h"
20 #include "qemu/error-report.h"
24 #include "target/arm/cpu-qom.h"
142 return qdev_get_gpio_in(DEVICE(&a->vic), sc->irqmap[dev]); in aspeed_soc_ast2400_get_irq()
158 for (i = 0; i < sc->num_cpus; i++) { in aspeed_ast2400_soc_init()
159 object_initialize_child(obj, "cpu[*]", &a->cpu[i], in aspeed_ast2400_soc_init()
163 snprintf(typename, sizeof(typename), "aspeed.scu-%s", socname); in aspeed_ast2400_soc_init()
164 object_initialize_child(obj, "scu", &s->scu, typename); in aspeed_ast2400_soc_init()
165 qdev_prop_set_uint32(DEVICE(&s->scu), "silicon-rev", in aspeed_ast2400_soc_init()
[all …]
/qemu/python/scripts/
H A Dmkvenv.py2 mkvenv - QEMU pyvenv bootstrapping utility
4 usage: mkvenv [-h] command ...
9 -h, --help show this help message and exit
15 post-venv initialization
19 --------------------------------------------------
21 usage: mkvenv create [-h] target
27 -h, --help show this help message and exit
29 --------------------------------------------------
31 usage: mkvenv post_init [-h]
34 -h, --help show this help message and exit
[all …]
/qemu/hw/ppc/
H A Dpegasos2.c4 * Copyright (c) 2018-2021 BALATON Zoltan
17 #include "hw/or-irq.h"
18 #include "hw/pci-host/mv64361.h"
22 #include "hw/qdev-properties.h"
28 #include "hw/fw-path-provider.h"
31 #include "qemu/error-report.h"
34 #include "system/address-spaces.h"
35 #include "qom/qom-qobject.h"
55 #define H_PRIVILEGE -3 /* Caller not privileged */
56 #define H_PARAMETER -4 /* Parameter invalid, out-of-range or conflicting */
[all …]
/qemu/hw/block/
H A Dvhost-user-blk.c2 * vhost-user-blk host device
9 * Largely based on the "vhost-user-scsi.c" and "vhost-scsi.c" implemented by:
15 * See the COPYING.LIB file in the top-level directory.
21 #include "qemu/error-report.h"
23 #include "hw/qdev-core.h"
24 #include "hw/qdev-properties.h"
25 #include "hw/qdev-properties-system.h"
26 #include "hw/virtio/virtio-blk-common.h"
28 #include "hw/virtio/vhost-user-blk.h"
30 #include "hw/virtio/virtio-bus.h"
[all …]
/qemu/tests/qtest/
H A Dcpu-plug-test.c7 * See the COPYING file in the top-level directory.
12 #include "libqtest-single.h"
37 args = g_strdup_printf("-machine %s -cpu %s " in test_plug_with_device_add()
38 "-smp 1,sockets=%u,cores=%u,threads=%u,maxcpus=%u", in test_plug_with_device_add()
39 td->machine, td->cpu_model, in test_plug_with_device_add()
40 td->sockets, td->cores, td->threads, td->maxcpus); in test_plug_with_device_add()
43 resp = qtest_qmp(qts, "{ 'execute': 'query-hotpluggable-cpus'}"); in test_plug_with_device_add()
52 if (qdict_haskey(cpu, "qom-path")) { in test_plug_with_device_add()
60 qtest_qmp_device_add_qdict(qts, td->device_model, props); in test_plug_with_device_add()
76 g_free(pc->machine); in test_data_free()
[all …]
/qemu/hw/dma/
H A Dpl330.c20 #include "hw/qdev-properties.h"
41 #define PL330_FIFO_ERR (-1)
325 len = MIN(16, size - b); in pl330_hexdump()
328 trace_pl330_hexdump(b, str->str); in pl330_hexdump()
335 * stored in this buffer. Data is stored in BUF field, tags - in the
343 s->buf = g_malloc0(size); in pl330_fifo_init()
344 s->tag = g_malloc0(size); in pl330_fifo_init()
345 s->buf_size = size; in pl330_fifo_init()
352 return (x + 1) % s->buf_size; in pl330_fifo_inc()
359 return s->buf_size - s->num; in pl330_fifo_num_free()
[all …]
/qemu/hw/vfio/
H A Dccw.c13 * your option) any later version. See the COPYING file in the top-level
24 #include "hw/vfio/vfio-device.h"
26 #include "hw/s390x/s390-ccw.h"
27 #include "hw/s390x/vfio-ccw.h"
28 #include "hw/qdev-properties.h"
29 #include "hw/s390x/ccw-device.h"
30 #include "system/address-spaces.h"
31 #include "qemu/error-report.h"
32 #include "qemu/main-loop.h"
58 vdev->needs_reset = false; in vfio_ccw_compute_needs_reset()
[all …]

1...<<21222324252627282930>>...353