qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 591666] Re: broken "pci_add auto storage"


From: Pierce Liu
Subject: [Qemu-devel] [Bug 591666] Re: broken "pci_add auto storage"
Date: Thu, 07 Jul 2011 06:42:52 -0000

If configure guest kernel correctly, it seems that virtio for block is OK!
Could you help or send me your configure file to have a second check

Thanks


======== version info ===============
QEMU 0.14.50 monitor 
host kernel: 2.6.39 
guest kernel: 2.6.32  


======== config file for kernel  info ===================
See attachment

=========Doing on qemu monitor ================
QEMU 0.14.50 monitor - type 'help' for more information
(qemu) pci_add auto storage file=/dev/ram0,if=virtio
OK domain 0, bus 0, slot 3, function 0


=========Doing on guest console ===============
1.  ---see the disk on guest
address@hidden:~# dmesg | grep 'vda'
[  245.440217]  vda: unknown partition table
address@hidden:~# fdisk -l

Disk /dev/sda: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table

Disk /dev/vda: 16 MB, 16777216 bytes
16 heads, 63 sectors/track, 32 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Disk /dev/vda doesn't contain a valid partition table

2. --- write content to virtio disk

address@hidden:~# echo 'helloHypervisor' > /dev/vda  
address@hidden:~# head /dev/vda 
helloHypervisor


=========Doing on host console =============

address@hidden linux-2.6.39]# head /dev/ram0
helloHypervisor


========= conclusion ====================
Host get the data which is passed through virtio device on guest. The data is 
"helloHpervisor"

So, the kernel version 2.6.32 can support virtio block device with correct
config, especially the following must be choosen:


CONFIG_VIRTIO=y
CONFIG_VIRTIO_RING=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_BALLOON=y
CONFIG_VIRTIO_BLK=y


** Attachment added: "guest kernel configure file"
   
https://bugs.launchpad.net/qemu/+bug/591666/+attachment/2194876/+files/guest.config

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/591666

Title:
  broken "pci_add auto storage"

Status in QEMU:
  New

Bug description:
  Doing:
  (qemu) pci_add auto storage  file=/dev/ram0,if=virtio
  Results in:
  OK domain 0, bus 0, slot 5, function 0

  However no device is actually added to the guest.
  QEMU: Latest git code (June 9) from 
git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
  (seems to be broken from 0.12.1.2)
  KVM: Compiled from git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git
  checked out (refs/remotes/origin/stable-2.6.32)

  Both guest and host are Ubuntu 9.10 with 2.6.32 kernel.
  Guest kernel has ACPI enabled (specifically, the PCI slot detection driver)

  Guest executed with the following parameters:
   -boot c -drive 
file=/home/eranr/kvm_images/ubuntu-9.10-2.6.32-perf.img,if=ide,boot=on -m 4096 
-net nic,model=virtio -net tap,ifname=qtap0,script=no -vnc :0 -smp 
1,cores=1,threads=0 -monitor tcp:localhost:6001,server,nowait

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/591666/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]