1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-04-29 20:24:31 +00:00

qemu: Add a virtio-blk-pci device driver support

Add a pci bus based virtio block device driver support.

Fixes:#92

Signed-off-by: lifupan <lifupan@gmail.com>
This commit is contained in:
lifupan 2019-04-15 23:14:49 -04:00
parent b3e7a9e784
commit 7d3deea4fc
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,