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

Re: [Xen-devel] [RFC PATCH 0/15]: PVH xen: Patches for PVH guests



On 16/01/13 23:21, Mukesh Rathor wrote:
> On Wed, 16 Jan 2013 09:58:13 +0100
> Roger Pau Monnà <roger.pau@xxxxxxxxxx> wrote:
> 
>> Dom0 seems to also fail booting as PVH mode, but it doesn't print
>> much info regarding the failure (maybe you are able to make more
>> sense out of it than me):
> 
>> (XEN) <vm_launch_fail> error code 7
> 
> Hey Roger, thanks for the patience. Hmm.. err code 7 is :

Thanks to you for looking into it :)

> 
>    "7 VM entry with invalid control field(s)",
> 
> So we need to see what control fields are in the VMCS. Can you please
> add to : vm_launch_fail():
> 
> void vm_launch_fail(void)
> {
>     unsigned long error = __vmread(VM_INSTRUCTION_ERROR);
>     printk("<vm_launch_fail> error code %lx\n", error);
> 
>     vmcs_dump_vcpu(current);
> ...
> }

This is the result of adding vmcs_dump_vcpu and using
the following boot options, dom0_max_vcpus=1 dom0_vcpus_pin.

(XEN) *** Guest State ***
(XEN) CR0: actual=0x0000000080010021, shadow=0x0000000080010021, 
gh_mask=ffffffffffffffff
(XEN) CR4: actual=0x0000000000002020, shadow=0x0000000000002020, 
gh_mask=ffffffffffffffff
(XEN) CR3: actual=0x00000000028ab000, target_count=0
(XEN)      target0=0000000000000000, target1=0000000000000000
(XEN)      target2=0000000000000000, target3=0000000000000000
(XEN) RSP = 0xffffffff828c5000 (0xffffffff828c5000)  RIP = 0xffffffff818a0210 
(0xffffffff818a0210)
(XEN) RFLAGS=0x0000000000000202 (0x0000000000000202)  DR7 = 0x0000000000000000
(XEN) Sysenter RSP=0000000000000000 CS:RIP=0000:0000000000000000
(XEN) CS: sel=0x0010, attr=0x0a09b, limit=0xffffffff, base=0x0000000000000000
(XEN) DS: sel=0x0018, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000
(XEN) SS: sel=0x0018, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000
(XEN) ES: sel=0x0000, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000
(XEN) FS: sel=0x0000, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000
(XEN) GS: sel=0x0000, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000
(XEN) GDTR:                           limit=0x00000000, base=0x0000000000000000
(XEN) LDTR: sel=0x0000, attr=0x00082, limit=0x00000000, base=0x0000000000000000
(XEN) IDTR:                           limit=0x00000000, base=0x0000000000000000
(XEN) TR: sel=0x0000, attr=0x0008b, limit=0x000000ff, base=0x0000000000000000
(XEN) Guest PAT = 0x0007040600070406
(XEN) TSC Offset = 0000000000000000
(XEN) DebugCtl=0000000000000000 DebugExceptions=0000000000000000
(XEN) Interruptibility=0000 ActivityState=0000
(XEN) *** Host State ***
(XEN) RSP = 0xffff82c4802c7f90  RIP = 0xffff82c4801dd160
(XEN) CS=e008 DS=0000 ES=0000 FS=0000 GS=0000 SS=0000 TR=e040
(XEN) FSBase=0000000000000000 GSBase=0000000000000000 TRBase=ffff82c480309580
(XEN) GDTBase=ffff82c48025f000 IDTBase=ffff82c4803049e0
(XEN) CR0=000000008005003b CR3=0000000199ee9000 CR4=00000000000026f0
(XEN) Sysenter RSP=ffff82c4802c7fc0 CS:RIP=e008:ffff82c480228b30
(XEN) Host PAT = 0x0000050100070406
(XEN) *** Control State ***
(XEN) PinBased=0000001f CPUBased=b68065f6 SecondaryExec=00000422
(XEN) EntryControls=000053fb ExitControls=000fefff
(XEN) ExceptionBitmap=000400ca
(XEN) VMEntry: intr_info=00000000 errcode=00000000 ilen=00000000
(XEN) VMExit: intr_info=00000000 errcode=00000000 ilen=00000000
(XEN)         reason=00000000 qualification=00000000
(XEN) IDTVectoring: info=00000000 errcode=00000000
(XEN) TPR Threshold = 0x00
(XEN) EPT pointer = 0x0000000199ef401e
(XEN) Virtual processor ID = 0x0001

> 
> Just for ease, please boot with one cpu and one vcpu.
> 
> Also, can you please compile xen with debug=n and try also.

Here is the output using the same command line with debug=n:

(XEN) Yay... PVH guest. domid:0
(XEN) *** LOADING DOMAIN 0 ***
(XEN) elf_parse_binary: phdr: paddr=0x1000000 memsz=0x7e4000
(XEN) elf_parse_binary: phdr: paddr=0x1800000 memsz=0x8b0f0
(XEN) elf_parse_binary: phdr: paddr=0x188c000 memsz=0x13e00
(XEN) elf_parse_binary: phdr: paddr=0x18a0000 memsz=0x573000
(XEN) elf_parse_binary: memory: 0x1000000 -> 0x1e13000
(XEN) elf_xen_parse_note: GUEST_OS = "linux"
(XEN) elf_xen_parse_note: GUEST_VERSION = "2.6"
(XEN) elf_xen_parse_note: XEN_VERSION = "xen-3.0"
(XEN) elf_xen_parse_note: VIRT_BASE = 0xffffffff80000000
(XEN) elf_xen_parse_note: ENTRY = 0xffffffff818a0210
(XEN) elf_xen_parse_note: HYPERCALL_PAGE = 0xffffffff81001000
(XEN) elf_xen_parse_note: FEATURES = 
"!writable_page_tables|pae_pgdir_above_4gb|writable_descriptor_tables|auto_translated_physmap|supervisor_mode_kernel|hvm_callback_vector"
(XEN) elf_xen_parse_note: PAE_MODE = "yes"
(XEN) elf_xen_parse_note: LOADER = "generic"
(XEN) elf_xen_parse_note: unknown xen elf note (0xd)
(XEN) elf_xen_parse_note: SUSPEND_CANCEL = 0x1
(XEN) elf_xen_parse_note: HV_START_LOW = 0xffff800000000000
(XEN) elf_xen_parse_note: PADDR_OFFSET = 0x0
(XEN) elf_xen_addr_calc_check: addresses:
(XEN)     virt_base        = 0xffffffff80000000
(XEN)     elf_paddr_offset = 0x0
(XEN)     virt_offset      = 0xffffffff80000000
(XEN)     virt_kstart      = 0xffffffff81000000
(XEN)     virt_kend        = 0xffffffff81e13000
(XEN)     virt_entry       = 0xffffffff818a0210
(XEN)     p2m_base         = 0xffffffffffffffff
(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x1e13000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   0000000194000000->0000000198000000 (243562 pages to be 
allocated)
(XEN)  Init. ramdisk: 000000019f76a000->000000019ffffa00
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: ffffffff81000000->ffffffff81e13000
(XEN)  Init. ramdisk: ffffffff81e13000->ffffffff826a8a00
(XEN)  Phys-Mach map: ffffffff826a9000->ffffffff828a9000
(XEN)  Start info:    ffffffff828a9000->ffffffff828aa4b4
(XEN)  Page tables:   ffffffff828ab000->ffffffff828c4000
(XEN)  Boot stack:    ffffffff828c4000->ffffffff828c5000
(XEN)  TOTAL:         ffffffff80000000->ffffffff82c00000
(XEN)  ENTRY ADDRESS: ffffffff818a0210
(XEN) Dom0 has maximum 1 VCPUs
(XEN) _elf_load_binary: phdr 0 at 0xffffffff81000000 -> 0xffffffff817e4000
(XEN) ----[ Xen-4.3-unstable  x86_64  debug=y  Not tainted ]----
(XEN) CPU:    0
(XEN) RIP:    e008:[<ffff82c480156f67>] dbg_rw_mem+0x317/0x37c
(XEN) RFLAGS: 0000000000010282   CONTEXT: hypervisor
(XEN) rax: 0000000000000004   rbx: ffff83019e61d000   rcx: 0000000000000000
(XEN) rdx: ffff82c4802c78a4   rsi: ffffffff81000000   rdi: 0000000000000004
(XEN) rbp: 00000000007e4000   rsp: ffff82c4802c7848   r8:  0000000000000001
(XEN) r9:  0000000000000000   r10: 0000000000000000   r11: ffff82c48022c200
(XEN) r12: ffffffff81000000   r13: ffff83019e886000   r14: ffff83019e886000
(XEN) r15: ffff830000000000   cr0: 000000008005003b   cr4: 00000000000026f0
(XEN) cr3: 0000000199ee9000   cr2: 0000000000000004
(XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: 0000   cs: e008
(XEN) Xen stack trace from rsp=ffff82c4802c7848:
(XEN)    ffff82c4802c78d8 0000000000000282 0000000000000001 ffff82c4802e9885
(XEN)    0000000100000028 0000000000000000 0000000000000000 ffff82c4802c78a4
(XEN)    ffff82c4802c789c ffff82c4802c78a0 0000000000000000 0000000181000000
(XEN)    ffffffff817e4000 ffff82c4802c7d98 ffff82c4802c7988 0000000000000000
(XEN)    ffff83019e686040 0000000000000005 0000000000200000 ffff82c4802859a0
(XEN)    ffff82c4802c7944 ffff82c4802c7940 ffff82c400000000 000000018011856d
(XEN)    ffff82c4802c0000 ffff82c4802c0000 ffff82c4802c0000 ffff82c4802c0000
(XEN)    00000000007e4000 ffffffff81000000 00000000007e4000 ffff82c4802c7957
(XEN)    000000000017872c ffff83019e61d000 0000000000004896 ffff83019e61d000
(XEN)    ffffffff82c00000 0000000000040000 0000000000040000 0000000002b3d0c0
(XEN)    ffff82c4802c7e48 ffff82c4802abfff ffffffff828a9000 ffffffff828a9000
(XEN)    ffffffff828aa4b4 ffffffff828ab000 ffffffff828c4000 ffffffff828c4000
(XEN)    ffffffff828c5000 ffffffff80000000 ffffffff82c00000 0000000000000000
(XEN)    0000000000000000 0000000000000ff0 0000000000000000 ffffffff82c00000
(XEN)    00000000028aa000 ffff830196016000 ffffffff828c5000 ffffffff81000000
(XEN)    0000000000000000 0000000000198000 ffff830196018000 ffff830196017000
(XEN)    ffff830196018ff8 0000000000000019 ffffffff828a9000 0000000000000086
(XEN)    00000000000026a9 ffffffff828ab000 0000000000194000 0000000000000896
(XEN)    ffff830196015000 0000000000001e13 fffffffe6c896000 ffff82c4802b7860
(XEN)    ffffffff81e13000 ffffffff80000000 ffffffff82c00000 0000000000040000
(XEN) Xen call trace:
(XEN)    [<ffff82c480156f67>] dbg_rw_mem+0x317/0x37c
(XEN)    
(XEN) Pagetable walk from 0000000000000004:
(XEN)  L4[0x000] = 0000000000000000 ffffffffffffffff
(XEN) 
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) FATAL PAGE FAULT
(XEN) [error_code=0000]
(XEN) Faulting linear address: 0000000000000004
(XEN) ****************************************
(XEN) 
(XEN) Reboot in five seconds...

Thanks, Roger

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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