Home
last modified time | relevance | path

Searched full:drive (Results 1 – 25 of 417) sorted by relevance

12345678910>>...17

/qemu/tests/qemu-iotests/
H A D17283 QEMU_OPTIONS="" do_run_qemu -drive if=none,file="$TEST_IMG" "$@" |
95 # Default drive semantics:
97 # By default you get a single empty floppy drive. You can override it with
98 # -drive and using the same index, but if you use -drive to add a floppy to a
100 # '-device floppy', even to a different slot, the default drive is disabled.
120 echo === Using -drive options ===
122 check_floppy_qtree -drive if=floppy,file="$TEST_IMG"
123 check_floppy_qtree -drive if=floppy,file="$TEST_IMG",index=1
124 check_floppy_qtree -drive if=floppy,file="$TEST_IMG" -drive if=floppy,file="$TEST_IMG.2",index=1
128 echo === Using -drive if=none and -device ===
[all …]
H A D05185 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=,if=none,id=$device_id
86 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=on,if=none,id=$device_id
87 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=1234,if=none,id=$device_id
88 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=foo,if=none,id=$device_id
94 run_qemu -drive file="$TEST_IMG",format=qcow2,file.unknown_opt=
95 run_qemu -drive file="$TEST_IMG",format=qcow2,file.unknown_opt=on
96 run_qemu -drive file="$TEST_IMG",format=qcow2,file.unknown_opt=1234
97 run_qemu -drive file="$TEST_IMG",format=qcow2,file.unknown_opt=foo
103 run_qemu -drive file="$TEST_IMG",format=foo
104 run_qemu -drive file="$TEST_IMG",driver=foo
[all …]
H A D051.pc.out7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0
8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format '…
10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0
11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format…
13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0
14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block form…
16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0
17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block forma…
22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=
23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn…
[all …]
H A D051.out7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0
8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format '…
10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0
11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format…
13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0
14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block form…
16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0
17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block forma…
22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=
23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn…
[all …]
H A D172.out22 drive = "floppy0"
33 drive-type = "288"
51 drive = "floppy0"
62 drive-type = "144"
87 drive = "floppy1"
98 drive-type = "144"
101 drive = "floppy0"
112 drive-type = "288"
141 drive = "floppy1"
152 drive-type = "144"
[all …]
H A D14276 run_qemu -drive file="$TEST_IMG",cache=none
77 run_qemu -drive file="$TEST_IMG",cache=directsync
78 run_qemu -drive file="$TEST_IMG",cache=writeback
79 run_qemu -drive file="$TEST_IMG",cache=writethrough
80 run_qemu -drive file="$TEST_IMG",cache=unsafe
81 run_qemu -drive file="$TEST_IMG",cache=invalid_value
96 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",cache.direct=on | grep -e "Cache" -e "[Cc]annot…
98 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",file.cache.direct=on | grep -e "Cache" -e "[Cc]…
100 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",backing.cache.direct=on | grep -e "Cache" -e "[…
102 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",backing.file.cache.direct=on | grep -e "Cache" …
[all …]
H A D186.out57 Testing: -blockdev driver=null-co,read-zeroes=on,node-name=null -device ide-hd,drive=null
65 Testing: -blockdev driver=null-co,read-zeroes=on,node-name=null -device ide-hd,drive=null,id=qdev_id
73 Testing: -blockdev driver=null-co,read-zeroes=on,node-name=null -device scsi-hd,drive=null
81 Testing: -blockdev driver=null-co,read-zeroes=on,node-name=null -device scsi-hd,drive=null,id=qdev_…
89 Testing: -blockdev driver=null-co,read-zeroes=on,node-name=null -device virtio-blk-pci,drive=null
97 Testing: -blockdev driver=null-co,read-zeroes=on,node-name=null -device virtio-blk-pci,drive=null,i…
105 Testing: -blockdev driver=null-co,read-zeroes=on,node-name=null -device floppy,drive=null
114 Testing: -blockdev driver=null-co,read-zeroes=on,node-name=null -device floppy,drive=null,id=qdev_id
123 Testing: -blockdev driver=null-co,read-zeroes=on,node-name=null -device ide-cd,drive=null
132 Testing: -blockdev driver=null-co,read-zeroes=on,node-name=null -device ide-cd,drive=null,id=qdev_id
[all …]
H A D18692 check_info_block -blockdev driver=null-co,read-zeroes=on,node-name=null -device $dev,drive=null
93 …check_info_block -blockdev driver=null-co,read-zeroes=on,node-name=null -device $dev,drive=null,id…
97 echo "=== -drive if=none/-device=<node-name> ==="
101 # A monitor-owned one from -drive, and anonymous one from -device
103 …check_info_block -drive if=none,driver=null-co,read-zeroes=on,node-name=null -device $dev,drive=nu…
107 echo "=== -drive if=none/-device=<bb-name> (with medium) ==="
111 …check_info_block -drive if=none,driver=null-co,read-zeroes=on,node-name=null -device $dev,drive=no…
112 …check_info_block -drive if=none,driver=null-co,read-zeroes=on,node-name=null -device $dev,drive=no…
116 echo "=== -drive if=none/-device=<bb-name> (without medium) ==="
119 check_info_block -drive if=none
[all …]
H A D1244 # Tests for incremental drive-backup
48 return transaction_action('drive-backup', job_id=device, device=device,
53 def __init__(self, name, drive): argument
55 self.drive = drive
60 return (self.drive['backup'], None)
67 "%s.%s." % (self.drive['id'], self.name))
68 suff = "%i.%s" % (num, self.drive['fmt'])
145 self.vm.cmd('drive-backup', **kwargs)
180 def create_anchor_backup(self, drive=None): argument
181 if drive is None:
[all …]
H A D23287 echo "=== -drive with read-write image: read-only/auto-read-only combinations ==="
90 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=on,auto-read-only=off
91 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=on,auto-read-only=on
92 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=on
94 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=off,auto-read-only=off
95 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=off,auto-read-only=on
96 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,read-only=off
98 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,auto-read-only=off
99 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none,auto-read-only=on
100 run_qemu_info_block -drive driver=file,file="$TEST_IMG",if=none
[all …]
H A D09357 params['device'] = 'drive%d' % i
91 for drive in range(0, ndrives):
92 idx = first_drive + drive
93 self.vm.hmp_qemu_io("drive%d" % idx, "aio_read %d %d" %
97 for drive in range(0, ndrives):
98 idx = first_drive + drive
99 self.vm.hmp_qemu_io("drive%d" % idx, "aio_write %d %d" %
102 # We'll store the I/O stats for each drive in these arrays
116 start_wr_iops[i] = self.blockstats('drive%d' % idx)
124 end_wr_iops[i] = self.blockstats('drive%d' % idx)
[all …]
H A D0554 # Tests for drive-backup and blockdev-backup
78 self.do_test_cancel('drive-backup', target_img)
110 self.do_test_pause('drive-backup', target_img, target_img)
152 result = self.vm.qmp('drive-backup', device='drive2', # CD-ROM
165 result = self.vm.qmp('drive-backup', device='drive0',
170 result = self.vm.qmp('drive-backup', device='drive0',
180 self.do_test_device_not_found('drive-backup', device='nonexistent',
247 self.do_test_set_speed('drive-backup', target_img)
272 self.do_test_set_speed_invalid('drive-backup', target_img)
313 self.do_test_cancel('drive-backup', target_img)
[all …]
/qemu/tests/qtest/
H A Dcdrom-test.c142 "-device virtio-scsi -device scsi-cd,drive=cdr " in add_x86_tests()
149 "-device am53c974 -device scsi-cd,drive=cd1 " in add_x86_tests()
150 "-drive if=none,id=cd1,format=raw,file=", in add_x86_tests()
155 "-device dc390 -device scsi-cd,drive=cd1 " in add_x86_tests()
161 "-device lsi53c895a -device scsi-cd,drive=cd1 " in add_x86_tests()
173 "-drive if=ide,media=cdrom,file=", test_cdboot); in add_x86_tests()
179 "-device megasas -device scsi-cd,drive=cd1 " in add_x86_tests()
185 "-device megasas-gen2 -device scsi-cd,drive=cd1 " in add_x86_tests()
208 "-device virtio-scsi -device scsi-cd,drive=cdr " in add_s390x_tests()
212 "-device virtio-blk,drive=d1 " in add_s390x_tests()
[all …]
H A Ddrive_del-test.c147 " 'drive': 'drive0'," in device_add()
170 /* Start with an empty drive */ in test_drive_without_dev()
171 qts = qtest_init("-drive if=none,id=drive0 -M none"); in test_drive_without_dev()
173 /* Delete the drive */ in test_drive_without_dev()
176 /* Ensure re-adding the drive works - there should be no duplicate ID error in test_drive_without_dev()
177 * because the old drive must be gone. in test_drive_without_dev()
198 qts = qtest_init("-drive if=none,id=drive0"); in test_after_failed_device_add()
206 " 'drive': 'drive0'" in test_after_failed_device_add()
211 /* Delete the drive */ in test_after_failed_device_add()
214 /* Try to re-add the drive. This fails with duplicate IDs if a leaked in test_after_failed_device_add()
[all …]
H A Dam53c974-test.c19 "-device scsi-hd,drive=disk0 -drive " in test_cmdfifo_underflow_ok()
35 "-device am53c974,id=scsi -device scsi-hd,drive=disk0 " in test_cmdfifo_underflow2_ok()
36 "-drive id=disk0,if=none,file=null-co://,format=raw -nodefaults"); in test_cmdfifo_underflow2_ok()
84 "-device scsi-hd,drive=disk0 -drive " in test_cmdfifo_overflow_ok()
100 "-device am53c974,id=scsi -device scsi-hd,drive=disk0 " in test_cmdfifo_overflow2_ok()
101 "-drive id=disk0,if=none,file=null-co://,format=raw -nodefaults"); in test_cmdfifo_overflow2_ok()
116 "-device am53c974,id=scsi -device scsi-hd,drive=disk0 " in test_fifo_pop_buf()
117 "-drive id=disk0,if=none,file=null-co://,format=raw -nodefaults"); in test_fifo_pop_buf()
139 "-device scsi-hd,drive=disk0 -drive " in test_target_selected_ok()
157 "-device scsi-hd,drive=disk0 -drive " in test_fifo_underflow_on_write_ok()
[all …]
/qemu/tests/qtest/fuzz/
H A Dgeneric_fuzz_configs.h40 .args = "-machine q35 -device virtio-blk,drive=disk0 "
41 "-drive file=null-co://,id=disk0,if=none,format=raw",
46 "-device scsi-hd,drive=disk0 "
47 "-drive file=null-co://,id=disk0,if=none,format=raw",
117 "-drive file=null-co://,if=none,format=raw,id=disk0 "
118 "-device ide-hd,drive=disk0",
123 "-drive file=null-co://,if=none,format=raw,id=disk0 "
124 "-device ide-cd,drive=disk0",
129 "-drive file=null-co://,if=none,format=raw,id=disk0 "
130 "-device ide-hd,drive=disk0",
[all …]
/qemu/docs/
H A Dqdev-device-use.txt30 A QEMU block device (drive) has a host and a guest part.
37 Except we sometimes lump controller, bus(es) and drive device(s) all
46 -drive, and guest device(s) with -device.
50 -drive if=TYPE,bus=BUS,unit=UNIT,OPTS...
53 to use, and the drive's address on that bus. Details depend on TYPE.
59 -drive if=none,id=DRIVE-ID,HOST-OPTS...
60 -device DEVNAME,drive=DRIVE-ID,DEV-OPTS...
79 The -device argument differs in detail for each type of drive:
83 -device DEVNAME,drive=DRIVE-ID,bus=IDE-BUS,unit=UNIT
101 -device DEVNAME,drive=DRIVE-ID,bus=ID.0,scsi-id=UNIT
[all …]
H A Dthrottle.txt27 I/O limits can be set using the throttling.* parameters of -drive, or
32 | -drive | block_set_io_throttle |
50 In its most basic usage, the user can add a drive to QEMU with a limit
51 of 100 IOPS with the following -drive line:
53 -drive file=hd0.qcow2,throttling.iops-total=100
87 we want to configure a drive with a basic limit of 100 IOPS and allow
91 -drive file=hd0.qcow2,
125 | -drive | block_set_io_throttle |
169 The way it works is that each drive with I/O limits is assigned to a
179 -drive file=hd1.qcow2,throttling.iops-total=6000,throttling.group=foo
[all …]
/qemu/docs/system/ppc/
H A Dpowernv.rst90 -drive file=./ubuntu-ppc64le.qcow2,if=none,id=drive0,format=qcow2,cache=none \
91 -device ide-hd,bus=sata0.0,unit=0,drive=drive0,id=ide,bootindex=1 \
106 -drive file=./ubuntu-ppc64le.qcow2,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=none
107 …-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,booti…
118 -drive file=./rhel7-ppc64le.qcow2,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=none \
119 …-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,booti…
124 -drive file=./ubuntu-ppc64le.qcow2,if=none,id=drive0,format=qcow2,cache=none \
125 -device ide-hd,bus=sata0.0,unit=0,drive=drive0,id=ide,bootindex=1 \
136 -drive file=./fedora-ppc64le.qcow2,if=none,snapshot=on,id=drive0 \
137 -device virtio-blk-pci,drive=drive0,id=blk0,bus=pcie.0 \
[all …]
/qemu/hw/block/
H A Dfdc.c65 /* Anonymous BlockBackend for empty drive */
93 /* Floppy drive emulation */
146 static FDriveSize drive_size(FloppyDriveType drive) in drive_size() argument
148 switch (drive) { in drive_size()
160 #define SET_CUR_DRV(fdctrl, drive) ((fdctrl)->cur_drv = (drive)) argument
187 /* Drive */ in fd_init()
205 /* Returns current position, in sectors, for given drive */
212 /* Returns current position, in bytes, for given drive */
277 /* Set drive back to track 0 */
286 * Will not operate on an empty drive.
[all …]
H A Dswim.c146 static void fd_recalibrate(FDrive *drive) in fd_recalibrate() argument
152 FDrive *drive = opaque; in swim_change_cb() local
155 blk_set_perm(drive->blk, 0, BLK_PERM_ALL, &error_abort); in swim_change_cb()
157 if (!blkconf_apply_backend_options(drive->conf, in swim_change_cb()
158 !blk_supports_write_perm(drive->blk), in swim_change_cb()
178 FDrive *drive; in swim_drive_realize() local
183 drive = &bus->ctrl->drives[dev->unit]; in swim_drive_realize()
184 if (!drive->blk) { in swim_drive_realize()
196 drive = &bus->ctrl->drives[dev->unit]; in swim_drive_realize()
197 if (drive->blk) { in swim_drive_realize()
[all …]
H A Dxen-block.c374 error_setg(errp, "device needs media, but drive is empty"); in xen_block_realize()
720 error_setg(errp, "drive property not set"); in xen_disk_realize()
761 /* Set up an empty drive */ in xen_cdrom_realize()
766 error_setg_errno(errp, -rc, "failed to create drive"); in xen_cdrom_realize()
853 static void xen_block_drive_destroy(XenBlockDrive *drive, Error **errp) in xen_block_drive_destroy() argument
856 char *node_name = drive->node_name; in xen_block_drive_destroy()
864 drive->node_name = NULL; in xen_block_drive_destroy()
866 g_free(drive->id); in xen_block_drive_destroy()
867 g_free(drive); in xen_block_drive_destroy()
881 XenBlockDrive *drive = NULL; in xen_block_drive_create() local
[all …]
/qemu/docs/system/
H A Dreplay.rst39 -drive file=disk.qcow2,if=none,snapshot,id=img-direct \\
40 -drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay \\
41 -device ide-hd,drive=img-blkreplay \\
50 -drive file=disk.qcow2,if=none,snapshot,id=img-direct \\
51 -drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay \\
52 -device ide-hd,drive=img-blkreplay \\
102 To record and replay block operations the drive must be configured
106 -drive file=disk.qcow2,if=none,snapshot,id=img-direct
107 -drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay
108 -device ide-hd,drive=img-blkreplay
[all …]
H A Ddevice-url-syntax.rst.inc30 -drive file=iscsi://192.0.2.1/iqn.2001-04.com.example/1
36 |qemu_system| -drive file=iscsi://user%password@192.0.2.1/iqn.2001-04.com.example/1
44 |qemu_system| -drive file=iscsi://192.0.2.1/iqn.2001-04.com.example/1
67 |qemu_system| --drive file=nbd:192.0.2.1:30000
73 |qemu_system| --drive file=nbd:unix:/tmp/nbd-socket
82 |qemu_system| -drive file=ssh://user@host/path/to/disk.img
83 …|qemu_system| -drive file.driver=ssh,file.user=user,file.host=host,file.port=22,file.path=/path/to…
110 |qemu_system| --drive file=gluster://192.0.2.1/testvol/a.img,
120 … |qemu_system| -drive driver=qcow2,file.driver=gluster,file.volume=testvol,file.path=/path/a.img,
189 …|qemu_system_x86| --drive media=cdrom,file=https://archives.fedoraproject.org/pub/archive/fedora/l…
[all …]
/qemu/tests/qemu-iotests/tests/
H A Dwrite-zeroes-unmap55 | $QEMU -monitor stdio -drive if=none,file=$TEST_IMG,format=$IMGFMT \
65 | $QEMU -monitor stdio -drive if=none,file=$TEST_IMG,format=$IMGFMT \
76 | $QEMU -monitor stdio -drive if=none,file=$TEST_IMG,format=$IMGFMT \
86 | $QEMU -monitor stdio -drive if=none,file=$TEST_IMG,format=$IMGFMT,discard=off \
96 | $QEMU -monitor stdio -drive if=none,file=$TEST_IMG,format=$IMGFMT,detect-zeroes=on \
106 … | $QEMU -monitor stdio -drive if=none,file=$TEST_IMG,format=$IMGFMT,detect-zeroes=on,discard=on \
116 | $QEMU -monitor stdio -drive if=none,file=$TEST_IMG,format=$IMGFMT,discard=on \
126 | $QEMU -monitor stdio -drive if=none,file=$TEST_IMG,format=$IMGFMT,discard=on \

12345678910>>...17