All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark McLoughlin <markmc@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Bernhard Schmidt <berni@birkenwald.de>, kvm@vger.kernel.org
Subject: Re: Freeze with KVM_CLOCK, undocumented dependency VIRTIO_BLK -> VIRTIO_PCI
Date: Wed, 02 Jul 2008 11:11:04 +0100	[thread overview]
Message-ID: <1214993464.13909.7.camel@muff> (raw)
In-Reply-To: <485DBBCD.5060600@codemonkey.ws>

On Sat, 2008-06-21 at 21:41 -0500, Anthony Liguori wrote:
> Bernhard Schmidt wrote:

> > 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.
> 
> This is all documented FWIW in the Kconfig and in a number of places on 
> the wiki.

I wonder would it be useful to default to building in (i.e. not as a
module) virtio_pci if building with e.g. KVM_GUEST?

There's two issues here:

  1) It's easy to forget about virtio_pci - if we used KVM_GUEST as a 
     general "this kernel may be run on KVM" config, then it would be a 
     good hint that virtio_pci should be built

  2) Although we currently build virtio_pci as a module in Fedora, it 
     leads to a pretty strange situation where e.g. mkinitrd and 
     anaconda need to explicitly include the virtio_pci module; I 
     don't think there's analogous situation where bus probing logic is 
     in a module rather than built into the kernel

Cheers,
Mark.


  parent reply	other threads:[~2008-07-02 10:11 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
2008-07-04  9:27     ` Christian Borntraeger
2008-07-02 10:11   ` Mark McLoughlin [this message]
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=1214993464.13909.7.camel@muff \
    --to=markmc@redhat.com \
    --cc=anthony@codemonkey.ws \
    --cc=berni@birkenwald.de \
    --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.