From: Daniel Bareiro <daniel-listas@gmx.net>
To: KVM General <kvm@vger.kernel.org>
Subject: Re: Hot-adding disk on VM
Date: Sat, 7 Nov 2009 22:01:13 -0300 [thread overview]
Message-ID: <20091108010113.GA15161@defiant.freesoftware> (raw)
In-Reply-To: <d9c105ea0910111925h6b7955bai94f21fe25763e127@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3643 bytes --]
Hi, Dustin.
On Sunday, 11 October 2009 21:25:19 -0500,
Dustin Kirkland wrote:
> >> According to I see in this document [1], is necessary that is loaded
> >> two modules in the guest: acpiphp and pci_hotplug.
> >>
> >> The pci_hotplug module is loaded. Nevertheless, in spite of existing
> >> the acpiphp module, cannot be loaded:
> >>
> >> chandra:~# lsmod|grep pci_hotplug
> >> pci_hotplug 23460 0
> >>
> >> chandra:~# modprobe acpiphp
> >> FATAL: Error inserting acpiphp
> >> (/lib/modules/2.6.26-2-686/kernel/drivers/pci/hotplug/acpiphp.ko): No such device
> >>
> >> chandra:~# locate acpiphp | grep 686
> >> /lib/modules/2.6.26-2-686/kernel/drivers/pci/hotplug/acpiphp.ko
> >> /lib/modules/2.6.26-2-686/kernel/drivers/pci/hotplug/acpiphp_ibm.ko
> >>
> >>
> >> Which could be being the problem?
> >
> > I was doing other tests this time with Linux 2.6.31.2 compiled by myself
> > from the sources of kernel.org. This time with loading the acpiphp
> > module, the pci_hotplug module was loaded automatically without I get
> > some type of error message.
> >
> > central:~# lsmod | grep acpiphp
> > central:~#
> > central:~# modprobe acpiphp
> > central:~#
> > central:~# lsmod | grep acpiphp
> > acpiphp 22140 0
> > pci_hotplug 29024 1 acpiphp
> >
> >
> > Then, I tried to add a disk of the following way in host:
> >
> > (qemu) pci_add auto storage file=/dev/vm/central-test,if=virtio
> > OK domain 0, bus 0, slot 5, function 0
> >
> > In the guest:
> >
> > Oct 11 18:09:01 central kernel: [ 833.403875] pci 0000:00:02.0: BAR 6: bogus alignment [0x0-0x0] flags 0x2
> > Oct 11 18:09:01 central kernel: [ 833.406337] decode_hpp: Could not get hotplug parameters. Use defaults
> > Oct 11 18:09:01 central kernel: [ 833.430492] virtio-pci 0000:00:05.0: enabling device (0000 -> 0001)
> > Oct 11 18:09:01 central kernel: [ 833.452268] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
> > Oct 11 18:09:01 central kernel: [ 833.454668] virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
> > Oct 11 18:09:01 central kernel: [ 833.500051] Clocksource tsc unstable (delta = -148257950 ns)
> > Oct 11 18:09:01 central kernel: [ 833.566755] vda: vda1
> >
> >
> > Then I attempt to remove the device assuring previously that it is not
> > being used in guest:
> >
> > (qemu) pci_del 5
> >
> >
> > In the guest:
> >
> > Oct 11 18:13:32 central kernel: [ 1104.144179] virtio-pci 0000:00:05.0: PCI INT A disabled
> >
> >
> > But if I want to add the device again, I get a segmentation fault of the
> > process that handles this virtual machine:
> >
> > (qemu) pci_add auto storage file=/dev/vm/central-test,if=virtio
> > Connection closed by foreign host.
> I can actually confirm this behavior. I've been struggling with this
> for a couple of days now. CC'ing QEMU, as I've discussed this a bit
> with Anthony Liguori. There's at least two related bugs we've been
> tracking:
> * https://bugs.edge.launchpad.net/ubuntu/+source/qemu-kvm/+bug/432154
> * https://bugs.edge.launchpad.net/ubuntu/+source/qemu-kvm/+bug/419590
According to I see in Launchpad, there is a fix released for Qemu and
qemu-kvm (Ubuntu).
I'm using KVM-88 compiled from the source code obtained of the KVM
official site. How I could apply these fix? There is some KVM version
that includes these corrections in the official site?
Thanks for your reply.
Regards,
Daniel
--
Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2009-11-08 1:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-22 13:59 Hot-adding disk on VM Daniel Bareiro
2009-10-11 21:51 ` Daniel Bareiro
2009-10-12 2:25 ` Dustin Kirkland
2009-10-12 2:25 ` [Qemu-devel] " Dustin Kirkland
2009-11-08 1:01 ` Daniel Bareiro [this message]
2009-11-08 3:15 ` Dustin Kirkland
2009-12-25 14:39 ` Daniel Bareiro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091108010113.GA15161@defiant.freesoftware \
--to=daniel-listas@gmx.net \
--cc=dbareiro@gmx.net \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.