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[2]: [Xen-devel] pv_ops DomU boot problem using pvgrub, xen 3.4.1-rc7

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re[2]: [Xen-devel] pv_ops DomU boot problem using pvgrub, xen 3.4.1-rc7, debian 2.6.26 dom0
From: Sander Eikelenboom <linux@xxxxxxxxxxxxxx>
Date: Tue, 21 Jul 2009 21:12:59 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 21 Jul 2009 12:13:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A660019.8040001@xxxxxxxx>
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>
Organization: Eikelenboom IT services
References: <734987306.20090719131842@xxxxxxxxxxxxxx> <4A660019.8040001@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hello Jeremy,

Let's give some more info:
Xen: 3.4.1-rc7 (xm info attached)
Dom0 kernel: 2.6.26-2-xen-amd64 (standard debian xenified kernel)
DomU kernel: self compiled vanilla 2.6.30.1 kernel with pv_ops stuff enabled

I am trying to boot a PV domain with PVgrub, config attached

Hmm could it be related to the topic: "[Xen-devel] Re: [PATCH] x86: detect
use of extended APIC ID for AMD CPUs" ?

gdb returns:
0xffffffff813ce1df <read_pci_config+43>:        out    %eax,(%dx)





xm info:
############################################################################
host                   : serveerstertje
release                : 2.6.26-2-xen-amd64
version                : #1 SMP Sun Jun 21 08:09:04 UTC 2009
machine                : x86_64
nr_cpus                : 2
nr_nodes               : 1
cores_per_socket       : 2
threads_per_core       : 1
cpu_mhz                : 2500
hw_caps                : 
178bf3ff:ebd3fbff:00000000:00000010:00002001:00000000:0000011f:00000000
virt_caps              : hvm
total_memory           : 7038
free_memory            : 7
node_to_cpu            : node0:0-1
node_to_memory         : node0:7
xen_major              : 3
xen_minor              : 4
xen_extra              : .1-rc7
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 
hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : Wed Jul 15 13:26:50 2009 +0100 19696:22ef8e900a6d
cc_compiler            : gcc version 4.3.2 (Debian 4.3.2-1.1)
cc_compile_by          : root
cc_compile_domain      :
cc_compile_date        : Sat Jul 18 21:52:08 CEST 2009
xend_config_format     : 4




DOMU CONFIG FILE:

############################################################################
#  Kernel + memory size
#

kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz"

# Optional provided menu.lst.
ramdisk = "/etc/xen/security-menu.lst"


#kernel      = '/boot/vmlinuz-2.6.26-2-xen-amd64'
#ramdisk     = '/boot/initrd.img-2.6.26-2-xen-amd64'
kernel      = '/boot/vmlinuz-2.6.30.1'
ramdisk     = '/boot/initrd.img-2.6.30.1'

#extra='pci=nomsi console=tty0'
memory      = '256'

#extra = 'swiotlb=force'


#
#  Disk device(s).
#
#root        = '/dev/sda2 ro'
disk        = [
                  'file:/mnt/xen-images/domains/security/swap.img,sda1,w',
                  'file:/mnt/xen-images/domains/security/disk.img,sda2,w',
              ]

#disk        = [
#                  'file:/mnt/xen-images/domains/security/swap.img,xvda1,w',
#                  'file:/mnt/xen-images/domains/security/disk.img,xvda2,w',
#              ]



#pci = ['0000:01:08.0','0000:01:08.1','0000:01:08.2','0000:01:0a.0']

#
#  Hostname
#
name        = 'security'

#
#  Networking
#
vif         = [ 'bridge=xen_bridge,ip=192.168.1.13,mac=00:16:3E:11:45:D6' ]

#
#  Behaviour
#
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'





Tuesday, July 21, 2009, 7:51:21 PM, you wrote:

> On 07/19/09 04:18, Sander Eikelenboom wrote:
>> I can't boot my PV domU domain using a pv_ops 2.6.30.1 kernel.
>> Using the xenified standard debian kernel (2.6.26, the same as in dom0) in
>> DomU it does boot with pvgrub.
>>
>> Any clues, to what to try or test ?
>>   

> Did you build the 2.6.30.1 kernel?  Could you try:

> $ gdb vmlinux
> (gdb) x/i 0xffffffff813ce1df

> to see where it crashed in the kernel (assuming it did crash in the
> kernel; its not entirely clear to me where the crash happened from your
> info).

> Also, add "earlyprink=xen" to your kernel's command line to see if
> anything comes up.

> Thanks,
>     J

>> Regards,
>>
>> Sander
>>
>> xm dmesg gives:
>>
>>  traps.c:437:d12 Unhandled general protection fault fault/trap [#13] on VCPU 
>> 0 [ec=0000]
>> (XEN) domain_crash_sync called from entry.S
>> (XEN) Domain 12 (vcpu#0) crashed on cpu#0:
>> (XEN) ----[ Xen-3.4.1-rc7  x86_64  debug=n  Not tainted ]----
>> (XEN) CPU:    0
>> (XEN) RIP:    e033:[<ffffffff813ce1df>]
>> (XEN) RFLAGS: 0000000000000282   EM: 1   CONTEXT: pv guest
>> (XEN) rax: 000000008000c068   rbx: ffffffff817e8740   rcx: 0000000000000068
>> (XEN) rdx: 0000000000000cf8   rsi: 000000000000c000   rdi: 0000000000000000
>> (XEN) rbp: ffffffff817f5e68   rsp: ffffffff817f5e20   r8:  ffffffff817f5e84
>> (XEN) r9:  00000000ffffffff   r10: ffffffff817f5e80   r11: 00000000ffffffff
>> (XEN) r12: 0000000000000018   r13: ffffffff817f5f80   r14: 0000002010403eb0
>> (XEN) r15: 00000000003f6000   cr0: 000000008005003b   cr4: 00000000000006f0
>> (XEN) cr3: 000000014f372000   cr2: 00000020117cb000
>> (XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: e02b   cs: e033
>> (XEN) Guest stack trace from rsp=ffffffff817f5e20:
>> (XEN)    0000000000000068 00000000ffffffff 0000000000000000 ffffffff813ce1df
>> (XEN)    000000010000e030 0000000000010082 ffffffff817f5e68 000000000000e02b
>> (XEN)    ffffffff817e8740 ffffffff817f5e98 ffffffff814e766c 0000000000000018
>> (XEN)    0000000100000000 0000302800000000 ffffffff81724500 ffffffff817f5ec8
>> (XEN)    ffffffff81829333 ffffffff817f5eb8 0000000000000246 0000000000000000
>> (XEN)    ffffffffffffffff ffffffff817f5f68 ffffffff81825ed4 ffffffff8167708f
>> (XEN)    ffffffff816727bf 0000000000000040 ffffffff817f5f58 ffffffff817335b0
>> (XEN)    0000000000000000 ffffffffffffffff 0000002010403eb0 ffffffff817f5f38
>> (XEN)    ffffffff817f5fa8 ffffffff8100d231 ffffffff81860d00 ffffffff817f5f58
>> (XEN)    0000000000000000 ffffffffffffffff ffffffff8185d920 0000002010403eb0
>> (XEN)    00000000003f6000 ffffffff817f5fa8 ffffffff818219fe ffffffff817f5fa8
>> (XEN)    ffffffff81827b17 00000000019be188 0000000000004000 000000201178c7d0
>> (XEN)    0000002010403eb0 ffffffff817f5fc8 ffffffff818212bf 0000000000000018
>> (XEN)    ffffffff81e58000 ffffffff817f5ff8 ffffffff81824d0e 0000000000000000
>> (XEN)    0000000000000000 0000000000000000 ffffffff81e6b000 0000000000b5fd78
>> (XEN)    ffffffff81dd5000 ffffffff81dd6000 ffffffff81dd7000 ffffffff81dd8000
>> (XEN)    ffffffff81dd9000 ffffffff81dda000 ffffffff81ddb000 ffffffff81ddc000
>> (XEN)    ffffffff81ddd000 ffffffff81dde000 ffffffff81ddf000 ffffffff81de0000
>> (XEN)    ffffffff81de1000 ffffffff81de2000 ffffffff81de3000 ffffffff81de4000
>> (XEN)    ffffffff81de5000 ffffffff81de6000 ffffffff81de7000 ffffffff81de8000
>> (END)
>>
>> On the domU console trying to boot the pv_ops 2.6.30.1 kernel with pvgrub:
>>
>> Started domain security (id=13)
>>                                Xen Minimal OS!
>>   start_info: 0xa12000(VA)
>>     nr_pages: 0x10000
>>   shared_inf: 0xb3ad0000(MA)
>>      pt_base: 0xa15000(VA)
>> nr_pt_frames: 0x9
>>     mfn_list: 0x992000(VA)
>>    mod_start: 0x991000(VA)
>>      mod_len: 4096
>>        flags: 0x0
>>     cmd_line:
>>   stack:      0x950860-0x970860
>> MM: Init
>>       _text: 0x0(VA)
>>      _etext: 0x617a4(VA)
>>    _erodata: 0x79000(VA)
>>      _edata: 0x81b00(VA)
>> stack start: 0x950860(VA)
>>        _end: 0x990e68(VA)
>>   start_pfn: a21
>>     max_pfn: 10000
>> Mapping memory range 0xc00000 - 0x10000000
>> setting 0x0-0x79000 readonly
>> skipped 0x1000
>> MM: Initialise page allocator for a9b000(a9b000)-10000000(10000000)
>> MM: done
>> Demand map pfns at 10001000-2010001000.
>> Heap resides at 2010002000-4010002000.
>> Initialising timer interface
>> Initialising console ... done.
>> gnttab_table mapped at 0x10001000.
>> Initialising scheduler
>> Thread "Idle": pointer: 0x2010002010, stack: 0xb30000
>> Initialising xenbus
>> Thread "xenstore": pointer: 0x20100027c0, stack: 0xb40000
>> Dummy main: start_info=0x970960
>> Thread "main": pointer: 0x2010002f70, stack: 0xb50000
>> "main"
>> vbd 2049 is hd0
>> ******************* BLKFRONT for device/vbd/2049 **********
>>
>>
>> backend at /local/domain/0/backend/vbd/13/2049
>> Failed to read /local/domain/0/backend/vbd/13/2049/feature-flush-cache.
>> 1048576 sectors of 512 bytes
>> **************************
>> vbd 2050 is hd1
>> ******************* BLKFRONT for device/vbd/2050 **********
>>
>>
>> backend at /local/domain/0/backend/vbd/13/2050
>> Failed to read /local/domain/0/backend/vbd/13/2050/feature-flush-cache.
>> 8388608 sectors of 512 bytes
>> **************************
>>
>>     GNU GRUB  version 0.97  (262144K lower / 0K upper memory)
>>
>>  +-------------------------------------------------------------------------+
>>  | Debian GNU/Linux, vmlinuz-2.6.30-1-amd64                                |
>>  |                                                                         |
>>  |                                                                         |
>>  |                                                                         |
>>  |                                                                         |
>>  |                                                                         |
>>  |                                                                         |
>>  |                                                                         |
>>  |                                                                         |
>>  |                                                                         |
>>  |                                                                         |
>>  |                                                                         |
>>  +-------------------------------------------------------------------------+
>>     Use the ^ and v keys to select which entry is highlighted.
>>     Press enter to boot the selected OS, 'e' to edit the
>>     commands before booting, or 'c' for a command-line.
>>   Booting 'Debian GNU/Linux, vmlinuz-2.6.30-1-amd64'
>>
>> lock
>> root            (hd1)
>>  Filesystem type is ext2fs, using whole disk
>> kernel          /boot/vmlinuz-2.6.30.1
>> initrd          /boot/initrd.img-2.6.30.1
>>
>> block error -2 for op 2
>> close blk: backend at /local/domain/0/backend/vbd/13/2049
>> block error -2 for op 2
>> close blk: backend at /local/domain/0/backend/vbd/13/2050
>> serveerstertje:~#
>>
>>
>>
>>   
>>
>>   




-- 
Best regards,
 Sander                            mailto:linux@xxxxxxxxxxxxxx


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