From: Bernhard Schmidt <berni@birkenwald.de>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: kvm@vger.kernel.org
Subject: Re: Freeze with KVM_CLOCK, undocumented dependency VIRTIO_BLK -> VIRTIO_PCI
Date: Mon, 23 Jun 2008 01:22:32 +0200 [thread overview]
Message-ID: <485EDEB8.3050109@birkenwald.de> (raw)
In-Reply-To: <485DBBCD.5060600@codemonkey.ws>
Hi,
>> a) when I enable KVM_CLOCK in the kernel configuration the guest system
>> freezes after
>>
>> PCI: Found IRQ 11 for device 0000:00:04.0
>> vda: vda1 vda2
>> TCP cubic registered
>> NET: Registered protocol family 10
>> NET: Registered protocol family 17
>> Using IPI Shortcut mode
> There are some outstanding patches for KVM_CLOCK that may fix this problem.
Any pointers? I'd love to test and confirm.
>> b) apparently VIRTIO_BLK works only when VIRTIO_PCI and thus PCI is
>> enabled in the kernel. Otherwise the vda* device is not visible and the
>> guest does not find its root filesystem.
>>
>> Is this expected? If yes, is it possible to add the appropriate
>> dependency in the kernel configuration or amend the description
>> accordingly?
> VIRTIO_BLK doesn't depend on VIRTIO_PCI. VIRTIO_PCI allows you use to
> virtio devices under KVM.
I don't quite understand. VIRTIO_BLK can be selected in the kernel
without selecting VIRTIO_PCI, it does not generate any build error but
the virtual blockdevice simply does appear. Does VIRTIO_BLK have any use
without VIRTIO_PCI?
> This is all documented FWIW in the Kconfig and in a number of places on
> the wiki.
Where exactly in Kconfig?
VIRTIO_BLK says nothing about VIRTIO_PCI or PCI, same for VIRTIO_NET.
Yes, the VIRTIO_PCI Kconfig help says this "provides support for virtio
based paravirtual device drivers over PCI". But this is far far away
from the virtio drivers themselves, so one might not immediately notice
that this is necessary. And if I disabled PCI completely (as a migrating
Xen user who does not need PCI in domU at all) I won't even see the
VIRTIO_PCI node, but still be able to select VIRTIO_BLK and _NET (which
compile just fine but don't work, very confusing).
Bernhard
next prev parent reply other threads:[~2008-06-22 23:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-21 14:54 Freeze with KVM_CLOCK, undocumented dependency VIRTIO_BLK -> VIRTIO_PCI Bernhard Schmidt
2008-06-22 2:41 ` Anthony Liguori
2008-06-22 23:22 ` Bernhard Schmidt [this message]
2008-07-04 9:27 ` Christian Borntraeger
2008-07-02 10:11 ` Mark McLoughlin
2008-07-03 14:03 ` Avi Kivity
2008-07-03 14:44 ` Mark McLoughlin
2008-07-03 14:49 ` Avi Kivity
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=485EDEB8.3050109@birkenwald.de \
--to=berni@birkenwald.de \
--cc=anthony@codemonkey.ws \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox