Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #93 from lifupan/fixvirtioblkdriver
Browse files Browse the repository at this point in the history
qemu: fix the issue of wrong driver for VirtioBlock
  • Loading branch information
Mark Ryan committed Apr 17, 2019
2 parents b3e7a9e + 7d3deea commit a6e2655
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qemu/qemu.go
Expand Up @@ -71,6 +71,9 @@ const (
// VirtioBlock is the block device driver.
VirtioBlock DeviceDriver = "virtio-blk"

// VirtioBlockPCI is a pci bus block device driver
VirtioBlockPCI DeviceDriver = "virtio-blk-pci"

// Console is the console device driver.
Console DeviceDriver = "virtconsole"

Expand Down
1 change: 1 addition & 0 deletions qemu/qemu_arch_base.go
Expand Up @@ -47,6 +47,7 @@ var isVirtioPCI = map[DeviceDriver]bool{
VirtioNetPCI: true,
VirtioSerial: true,
VirtioBlock: true,
VirtioBlockPCI: true,
Console: false,
VirtioSerialPort: false,
VHostVSock: true,
Expand Down

0 comments on commit a6e2655

Please sign in to comment.