Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xing Lin
qemu
Commits
eeb9c1b5
Commit
eeb9c1b5
authored
Feb 03, 2012
by
Anthony Liguori
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s390x: fix -drive in the absence of aliases
Signed-off-by:
Anthony Liguori
<
aliguori@us.ibm.com
>
parent
8b45d447
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
blockdev.c
blockdev.c
+5
-1
No files found.
blockdev.c
View file @
eeb9c1b5
...
...
@@ -565,7 +565,11 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi)
case
IF_VIRTIO
:
/* add virtio block device */
opts
=
qemu_opts_create
(
qemu_find_opts
(
"device"
),
NULL
,
0
);
qemu_opt_set
(
opts
,
"driver"
,
"virtio-blk"
);
if
(
arch_type
==
QEMU_ARCH_S390X
)
{
qemu_opt_set
(
opts
,
"driver"
,
"virtio-blk-s390"
);
}
else
{
qemu_opt_set
(
opts
,
"driver"
,
"virtio-blk-pci"
);
}
qemu_opt_set
(
opts
,
"drive"
,
dinfo
->
id
);
if
(
devaddr
)
qemu_opt_set
(
opts
,
"addr"
,
devaddr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment