Browse Source

virtio-blk for qemu needs pci legacy

Waldemar Brodkorb 10 years ago
parent
commit
93ab3942cc
2 changed files with 12 additions and 9 deletions
  1. 11 8
      target/linux/config/Config.in.virtio
  2. 1 1
      target/sparc64/Makefile

+ 11 - 8
target/linux/config/Config.in.virtio

@@ -1,32 +1,35 @@
 menu "Virtio driver support"
 
 config ADK_KERNEL_VIRTIO
-	boolean
+	bool
 
 config ADK_KERNEL_VIRTIO_CONSOLE
-	boolean
+	bool
+
+config ADK_KERNEL_VIRTIO_PCI_LEGACY
+	bool
 
 config ADK_KERNEL_VIRTIO_PCI
-	boolean
+	bool
 
 config ADK_KERNEL_VIRTIO_MMIO
-	boolean
+	bool
 
 config ADK_KERNEL_VIRTIO_NET
-	prompt "Virtio net driver"
-	tristate
+	tristate "Virtio net driver"
 	select ADK_KERNEL_VIRTIO
 	select ADK_KERNEL_VIRTIO_MMIO
 	select ADK_KERNEL_VIRTIO_PCI
+	select ADK_KERNEL_VIRTIO_PCI_LEGACY
 	default n
 	help
 	  Enables support for Virtio Net driver.
 
 config ADK_KERNEL_VIRTIO_BLK
-	prompt "Virtio block driver"
-	tristate
+	tristate "Virtio block driver"
 	select ADK_KERNEL_VIRTIO
 	select ADK_KERNEL_VIRTIO_PCI
+	select ADK_KERNEL_VIRTIO_PCI_LEGACY
 	select ADK_KERNEL_VIRTIO_MMIO
 	select ADK_KERNEL_BLK_DEV
 	default n

+ 1 - 1
target/sparc64/Makefile

@@ -14,7 +14,7 @@ QEMU_ARGS+=${ADK_QEMU_ARGS}
 ifeq ($(ADK_TARGET_QEMU_WITH_VIRTIO),y)
 QEMU_ARGS+=-net nic,model=virtio -net user
 ifeq ($(ADK_TARGET_FS),archive)
-QEMU_ARGS+=-drive file=qemu-${ADK_TARGET_CPU_ARCH}.img,if=virtio,index=0
+QEMU_ARGS+=-drive file=qemu-${ADK_TARGET_CPU_ARCH}.img,if=virtio
 endif
 endif