Merge pull request #93 from lifupan/fixvirtioblkdriver

qemu: fix the issue of wrong driver for VirtioBlock
This commit is contained in:
Mark Ryan
2019-04-17 09:22:32 +02:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -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"

View File

@@ -47,6 +47,7 @@ var isVirtioPCI = map[DeviceDriver]bool{
VirtioNetPCI: true,
VirtioSerial: true,
VirtioBlock: true,
VirtioBlockPCI: true,
Console: false,
VirtioSerialPort: false,
VHostVSock: true,