WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] kernel BUG at drivers/xen/balloon.c:528!

To: Łukasz Oleś <lukaszoles@xxxxxxxxx>
Subject: Re: [Xen-devel] kernel BUG at drivers/xen/balloon.c:528!
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Mon, 19 Jul 2010 17:39:48 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Mon, 19 Jul 2010 09:40:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTimBhPCLthJPi7Uq1jXZbn6YblqCWDy5d19P1vZa@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTimEw0zMg2rShy22t1_52f8IFe0dF4vbVZsLV436@xxxxxxxxxxxxxx> <4C3F46B3.9000702@xxxxxxxx> <alpine.DEB.2.00.1007151840070.21432@kaball-desktop> <AANLkTinA2oRdZH6e0_XVQwuC6dmZ6pbnv-MIuF21musC@xxxxxxxxxxxxxx> <alpine.DEB.2.00.1007161640150.21432@kaball-desktop> <AANLkTimqPURWH5nDebTEJ9XP4OCiO1yio1jPcKEKPhTt@xxxxxxxxxxxxxx> <alpine.DEB.2.00.1007191516160.21432@kaball-desktop> <AANLkTimBhPCLthJPi7Uq1jXZbn6YblqCWDy5d19P1vZa@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Mon, 19 Jul 2010, Łukasz Oleś wrote:
> W dniu 19 lipca 2010 16:19 użytkownik Stefano Stabellini
> <stefano.stabellini@xxxxxxxxxxxxx> napisał:
> > On Mon, 19 Jul 2010, Łukasz Oleś wrote:
> >> >
> >> > In any case you should enable CONFIG_XEN_PLATFORM_PCI in your kernel
> >> > config, otherwise the pv frontends won't load properly and you are not
> >> > going to have any benefits running a PV on HVM kernel.
> >> >
> >> > I am not sure why you cannot mount your root device, maybe you didn't
> >> > specify the correct root= in your kernel command line options?
> >>
> >> It works fine on bare metal and  ESX. It looks like in initrd system
> >> doesn't see any disks.
> >>
> >> When I enabled option CONFIG_XEN_PLATFORM_PCI I was finally able to
> >> boot my sytem. Is this suposed to work in this way?
> >>
> > but you should be able
> > to mount /dev/hd* just fine without CONFIG_XEN_PLATFORM_PCI.
> 
> This one is not true on my system.
> 
> If something in my initrd fails it launches  busybox then I can run
> fdisk -l or cat /proc/partitions and they return nothing.  Whats more
> intresting at the system start I can see:
> 
> Probing IDE interface ide0...
> hda: QEMU HARDDISK, ATA DISK drive
> hdb: QEMU HARDDISK, ATA DISK drive
> hda: host max PIO4 wanted PIO255(auto-tune) selected PIO2
> hda: MWDMA2 mode selected
> hdb: host max PIO4 wanted PIO255(auto-tune) selected PIO2
> hdb: MWDMA2 mode selected
> Probing IDE interface ide1...
> hdc: QEMU HARDDISK, ATA DISK drive
> hdc: host max PIO4 wanted PIO255(auto-tune) selected PIO2
> hdc: MWDMA2 mode selected
> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> ide1 at 0x170-0x177,0x376 on irq 15
> ide-cd driver 5.00
> 
> but later disks disappear. Full log in earlier mail
> 
 
Yes, I have seen that.
I am not sure what is the cause of the problem because if you see
those messages it means no unplug has been done so you should be able to
access the emulated disks without any issues.
Just to be sure, could you please add this patch to your kernel and tell
me if it gets printed?



diff --git a/arch/x86/xen/platform-pci-unplug.c 
b/arch/x86/xen/platform-pci-unplug.c
index 2f7f3fb..4513202 100644
--- a/arch/x86/xen/platform-pci-unplug.c
+++ b/arch/x86/xen/platform-pci-unplug.c
@@ -98,8 +98,10 @@ void __init xen_unplug_emulated_devices(void)
                }
        }
        /* Now unplug the emulated devices */
-       if (!(xen_emul_unplug & XEN_UNPLUG_IGNORE))
+       if (!(xen_emul_unplug & XEN_UNPLUG_IGNORE)) {
                outw(xen_emul_unplug, XEN_IOPORT_UNPLUG);
+               printk("DEBUG unplug %x\n", xen_emul_unplug);
+       }
        xen_platform_pci_unplug = xen_emul_unplug;
 }
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel