mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
Stop VM on error in virtio-blk. (Gleb Natapov)
Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6410 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
ea8a5d7f1f
commit
869a5c6df1
2 changed files with 125 additions and 47 deletions
2
vl.c
2
vl.c
|
@ -2432,7 +2432,7 @@ static int drive_init(struct drive_opt *arg, int snapshot,
|
|||
|
||||
onerror = BLOCK_ERR_REPORT;
|
||||
if (get_param_value(buf, sizeof(serial), "werror", str)) {
|
||||
if (type != IF_IDE && type != IF_SCSI) {
|
||||
if (type != IF_IDE && type != IF_SCSI && type != IF_VIRTIO) {
|
||||
fprintf(stderr, "werror is no supported by this format\n");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue