[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-bugs] [Bug 1373] New: stubdom based guest hangs when assigning hdc to it



http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1373

           Summary: stubdom based guest hangs when assigning hdc to it
           Product: Xen
           Version: unstable
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Unspecified
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: haicheng.li@xxxxxxxxx


Environment:
------------
Service Arch (ia32/ia32e/IA64): RHEL5.1
Guest OS Type (Linux/Windows):Fedora Core 6 ia32e
Change Set: 18533
Hardware: SantaRosa


Bug detailed description:
--------------------------
when append the 'hdc,cdrom,r' to disk configuration section, the stubdom based
guest hangs at starting. It's ok for dom0 based guest. if assign a iso image
file as a cdrom device, it's ok for stubdom based guest.


Reproduce steps:
----------------
1. build the xen source with stubdom supporting;
2. prepare two configuration files one is traditional .hvm file, the other is
-dm file.
3. added the ,'hdc,cdrom,r' configuration option in -dm file's disk
configuration section;
4. use xm cr <hvm configuration file> to start the stubdom based guest.

Current result:
----------------
executed the xm li command, the output as bellow:
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   669     2     r-----    153.2
fc6                                         13   512     1     ------      0.0
fc6-dm                                      15    32     1     --p---      0.0
the fc6 and it's stubdom hangs. we can't connect to guest using vncviewer. as
you can see the Time(s) for fc6 and fc6-dm always close to 0.0.

Expected result:
----------------
the guest can start normally when using hdc,cdrom,r configuration option.

Basic root-causing log:
----------------------
bellow is the xm dmesg log(stubdom based guest):
(XEN) HVM13: HVM Loader
(XEN) HVM13: Detected Xen v3.4-unstable
(XEN) HVM13: CPU speed is 2000 MHz
(XEN) HVM13: Multiprocessor initialisation:
(XEN) HVM13:  - CPU0 ... 36-bit phys ... fixed MTRRs ... var MTRRs ... done.
(XEN) HVM13:  - CPU1 ... 36-bit phys ... fixed MTRRs ... var MTRRs ... done.
(XEN) HVM13: Writing SMBIOS tables ...
(XEN) HVM13: Loading ROMBIOS ...
(XEN) HVM13: 9004 bytes of ROMBIOS high-memory extensions:
(XEN) HVM13:   Relocating to 0x1fff8c00-0x1fffaf2c ... done
#  I traced into xen source code.
#  the system hangs when execute pci initialize, bellow is the position caused
problem:
tools/firmware/hvmloader/hvmloader.c
function : pci_setup()
    for ( link = 0; link < 4; link++ )
    {
        do { isa_irq = (isa_irq + 1) & 15;
        } while ( !(PCI_ISA_IRQ_MASK & (1U << isa_irq)) );
        pci_writeb(PCI_ISA_DEVFN, 0x60 + link, isa_irq);
        /* after perform pci_writeb then system hangs */
        /* I confirmed the hang point through printf message */
    }



bellow is the normally xm dmesg output:
(XEN) HVM55: HVM Loader
(XEN) HVM55: Detected Xen v3.4-unstable
(XEN) HVM55: CPU speed is 2000 MHz
(XEN) HVM55: Multiprocessor initialisation:
(XEN) HVM55:  - CPU0 ... 36-bit phys ... fixed MTRRs ... var MTRRs ... done.
(XEN) HVM55:  - CPU1 ... 36-bit phys ... fixed MTRRs ... var MTRRs ... done.
(XEN) HVM55: Writing SMBIOS tables ...
(XEN) HVM55: Loading ROMBIOS ...
(XEN) HVM55: 9004 bytes of ROMBIOS high-memory extensions:
(XEN) HVM55:   Relocating to 0x1fff8c00-0x1fffaf2c ... done
/* pci_wirteb will execute normally , no hangs when base on dom0*/
(XEN) irq.c:235: Dom55 PCI link 0 changed 0 -> 5
(XEN) HVM55: PCI-ISA link 0 routed to IRQ5
(XEN) irq.c:235: Dom55 PCI link 1 changed 0 -> 10
(XEN) HVM55: PCI-ISA link 1 routed to IRQ10
(XEN) irq.c:235: Dom55 PCI link 2 changed 0 -> 11
(XEN) HVM55: PCI-ISA link 2 routed to IRQ11
(XEN) irq.c:235: Dom55 PCI link 3 changed 0 -> 5
(XEN) HVM55: PCI-ISA link 3 routed to IRQ5
(XEN) HVM55: pci dev 01:3 INTA->IRQ10
(XEN) HVM55: pci dev 03:0 INTA->IRQ5
.....................................


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.