All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Sander Eikelenboom <linux@eikelenboom.it>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: linux-3.4-rc0 XENBUS: Device with no driver: device/vbd/51713
Date: Fri, 30 Mar 2012 18:07:58 -0400	[thread overview]
Message-ID: <20120330220758.GA11601@phenom.dumpdata.com> (raw)
In-Reply-To: <1975730506.20120330225251@eikelenboom.it>

On Fri, Mar 30, 2012 at 10:52:51PM +0200, Sander Eikelenboom wrote:
> Hi Konrad,
> 
> I just tried linux-3.4-rc0 (linus his tree, last commit f52b69f86e27903d6896ed5fa7cd280fec8de532) with 3 additional branches from your tree pulled on top of that:
> 
> branch stable/for-ingo-3.4.v2     (required for dom0 to boot)
> branch stable/for-jens-3.4
> branch stable/for-jens-3.4-bugfixes
> 
> Hypervisor is xen-4.1.3-rc1-pre
> linux 3.3 vanilla works fine
> 
> Booting dom0 goes fine, but PV-guests don't work, it seems something goed wrong with registrering the devices.
> Which is kind of strange because i compiled the kernel with the same .config (all xen stuff is compiled in, no modules).
> 
> Nothing else is changed in between, I also tried reverting some of the xen-front patches but all to no avail .. do you have any suggestions ?


I think you are hitting this bug (hadn't yet stuck in my for-jens-3.4-bugfixes branch):

commit 252e60f73b023bdbb7c82c05e2c3d97a1233bd9f
Author: Igor Mammedov <imammedo@redhat.com>
Date:   Tue Mar 27 19:31:08 2012 +0200

    xen: only check xen_platform_pci_unplug if hvm
    
    commit b9136d207f08
      xen: initialize platform-pci even if xen_emul_unplug=never
    
    breaks blkfront/netfront by not loading them because of
    xen_platform_pci_unplug=0 and it is never set for PV guest.
    
    Signed-off-by: Andrew Jones <drjones@redhat.com>
    Signed-off-by: Igor Mammedov <imammedo@redhat.com>
    Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index d5e1ab9..98cbeba 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -1475,7 +1475,7 @@ static int __init xlblk_init(void)
 	if (!xen_domain())
 		return -ENODEV;
 
-	if (!xen_platform_pci_unplug)
+	if (xen_hvm_domain() && !xen_platform_pci_unplug)
 		return -ENODEV;
 
 	if (register_blkdev(XENVBD_MAJOR, DEV_NAME)) {
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index 663b32c..0ebbb19 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -1965,7 +1965,7 @@ static int __init netif_init(void)
 	if (xen_initial_domain())
 		return 0;
 
-	if (!xen_platform_pci_unplug)
+	if (xen_hvm_domain() && !xen_platform_pci_unplug)
 		return -ENODEV;
 
 	printk(KERN_INFO "Initialising Xen virtual ethernet driver.\n");

  parent reply	other threads:[~2012-03-30 22:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-30 20:52 linux-3.4-rc0 XENBUS: Device with no driver: device/vbd/51713 Sander Eikelenboom
2012-03-30 21:06 ` Konrad Rzeszutek Wilk
2012-03-30 22:07 ` Konrad Rzeszutek Wilk [this message]
2012-03-31 19:35   ` Sander Eikelenboom

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=20120330220758.GA11601@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=linux@eikelenboom.it \
    --cc=xen-devel@lists.xen.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.