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

Re: [Xen-devel] What is up with XSAVE? 2.6.37, 2.6.39 crashes with Xen 4.2


  • To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxx>
  • From: Keir Fraser <keir.xen@xxxxxxxxx>
  • Date: Fri, 22 Apr 2011 22:46:09 +0100
  • Cc:
  • Delivery-date: Fri, 22 Apr 2011 14:47:11 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=hL7TTrJCXVLLQWGy8jELxd9WQNAxdYgz3zSoZzhGckQ8TaH/Upca2fm/mFnMfRhWHI kFcU13hwNtxIzf2lIe5NsSZzNGGR7QjuJLOaDJ86gr6o7U+Z8MtGBOakmf4ByUxbakyM z3dTqjm1uCI0NKS7WW8iu0xnoYHpfokenfqRk=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcwBNrCflT2xU0iOtUuxzBmULjJC7A==
  • Thread-topic: [Xen-devel] What is up with XSAVE? 2.6.37, 2.6.39 crashes with Xen 4.2

On 22/04/2011 20:51, "Konrad Rzeszutek Wilk" <konrad.wilk@xxxxxxxxxx> wrote:

> If I use 'xsave=0' on the latest Xen it works fine with PV guests.
> But if I boot the machine without that workaroudn the PV guests fail.

I think some CPUID setup is missing from xc_cpuid_x86.c for PV guests. I'll
sort out a patch for you to try.

 -- Keir

> Here is the 'xl info' from a bootup with 'xsave=0'.
> host                   : tst013.dumpdata.com
> release                : 2.6.39-rc4yes_xen_blkdev-01970-g308daa7
> version                : #1 SMP Fri Apr 22 14:20:31 EDT 2011
> machine                : x86_64
> nr_cpus                : 2
> nr_nodes               : 1
> cores_per_socket       : 2
> threads_per_core       : 1
> cpu_mhz                : 2992
> hw_caps                :
> bfebfbff:20100800:00000000:00000940:0008e3fd:00000000:00000001:00000000
> virt_caps              : hvm hvm_directio
> total_memory           : 3929
> free_memory            : 607
> free_cpus              : 0
> xen_major              : 4
> xen_minor              : 2
> xen_extra              : -110422
> 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 Apr 20 12:02:51 2011 +0100 23246:eb4505f8dd97
> xen_commandline        : com1=115200,8n1,0xecb8,0 xsave=0 dom0_mem=1500MB
> iommu=verbose console=com1,vga guest_loglvl=all e820-verbose=1 apic=debug
> cc_compiler            : gcc version 4.4.4 20100503 (Red Hat 4.4.4-2) (GCC)
> cc_compile_by          : konrad
> cc_compile_domain      : dumpdata.com
> cc_compile_date        : Fri Apr 22 14:20:44 EDT 2011
> xend_config_format     : 4
> 
> 
> But if I don't have it set, this is what I see when I start a PV guest:
> 
> [    0.000000] Kernel command line: console=hvc0 debug earlyprintk=xenboot
> [    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
> [    0.000000] FP/SSE not shown under xsave features 0x0
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] kernel BUG at
> /home/konrad/ssd/linux/arch/x86/kernel/xsave.c:432!
> [    0.000000] invalid opcode: 0000 [#1] SMP
> [    0.000000] last sysfs file:
> [    0.000000] CPU 0
> [    0.000000] Modules linked in:
> [    0.000000] 
> [    0.000000] Pid: 0, comm: swapper Not tainted
> 2.6.39-rc4yes_xen_blkdev-01970-g308daa7 #1
> [    0.000000] RIP: e030:[<ffffffff81897808>]  [<ffffffff81897808>]
> xstate_enable_boot_cpu+0x99/0x2d5
> [    0.000000] RSP: e02b:ffffffff81801e38  EFLAGS: 00010096
> [    0.000000] RAX: 000000000000003f RBX: ffffffff81801e68 RCX:
> ffffffff8145caa2
> [    0.000000] RDX: 00000000ffffedda RSI: 0000000000000026 RDI:
> 0000000000000004
> [    0.000000] RBP: ffffffff81801ea8 R08: 000000000000000a R09:
> 0000ffff00066c0a
> [    0.000000] R10: 0000000000000000 R11: 0000000000000000 R12:
> ffffffff81801e6c
> [    0.000000] R13: ffffffff81801e70 R14: ffffffff81801e74 R15:
> 0000000000000000
> [    0.000000] FS:  0000000000000000(0000) GS:ffff88007ffaf000(0000)
> knlGS:0000000000000000
> [    0.000000] CS:  e033 DS: 0000 ES: 0000 CR0: 000000008005003b
> [    0.000000] CR2: 0000000000000000 CR3: 0000000001803000 CR4:
> 0000000000002660
> [    0.000000] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
> 0000000000000000
> [    0.000000] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7:
> 0000000000000400
> [    0.000000] Process swapper (pid: 0, threadinfo ffffffff81800000, task
> ffffffff8180b020)
> [    0.000000] Stack:
> [    0.000000]  0000000000000000 0000000000000001 ffffffff810069df
> ffffffff81003d00
> [    0.000000]  ffffffff81801e98 ffffffff81003e1a 0000000000000000
> 0000000000000000
> [    0.000000]  ffff88007ffba0e0 0000000000000008 0000000000000000
> 0000000000000000
> [    0.000000] Call Trace:
> [    0.000000]  [<ffffffff810069df>] ? xen_restore_fl_direct_reloc+0x4/0x4
> [    0.000000]  [<ffffffff81003d00>] ? xen_mc_issue.clone.0+0x22/0x24
> 
> Or with an older kernel: 2.6.37 I get:
> 
> e entries: 65536 (order: 6, 262144 bytes)
> [    0.000000] Initializing CPU#0
> [    0.000000] FP/SSE not shown under xsave features 0x0
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] kernel BUG at
> /home/konrad/ssd/linux/arch/x86/kernel/xsave.c:432!
> [    0.000000] invalid opcode: 0000 [#1] SMP
> [    0.000000] last sysfs file:
> [    0.000000] Modules linked in:
> [    0.000000] 
> [    0.000000] Pid: 0, comm: swapper Not tainted 2.6.37 #1 /
> [    0.000000] EIP: e019:[<c152f970>] EFLAGS: 00010046 CPU: 0
> [    0.000000] EIP is at xstate_enable_boot_cpu+0x93/0x273
> [    0.000000] EAX: 0000003f EBX: 00000000 ECX: c14eea24 EDX: c14e00f0
> [    0.000000] ESI: c14e3ea4 EDI: c14e3ea0 EBP: c14e3eb8 ESP: c14e3e70
> [    0.000000]  DS: e021 ES: e021 FS: 00d8 GS: 0000 SS: e021
> [    0.000000] Process swapper (pid: 0, ti=c14e2000 task=c14e9060
> task.ti=c14e2000)
> [    0.000000] Stack:
> [    0.000000]  c144859b 00000000 00000000 c151c3d0 c14e3e9c 00000003 ec3cc058
> 00000000
> [    0.000000]  8005003b c1006caf c1004166 00000000 00000000 00000000 00000000
> 00000008
> [    0.000000]  00000000 00000009 c14e3ec0 c1392783 c14e3ef4 c1393d0a ec3cff00
> c14e3ee0
> [    0.000000] Call Trace:
> [    0.000000]  [<c1006caf>] ? xen_restore_fl_direct_end+0x0/0x1
> [    0.000000]  [<c1004166>] ? xen_mc_issue.clone.0+0x1d/0x1f
> [    0.000000]  [<c1392783>] ? xsave_init+0x20/0x22
> [    0.000000]  [<c1393d0a>] ? cpu_init+0x207/0x20f
> [    0.000000]  [<c100894e>] ? setup_sigcontext+0x16/0xc3
> [    0.000000]  [<c152c279>] ? trap_init+0x329/0x338
> [    0.000000]  [<c139ef00>] ? __get_valid_kprobe+0x17/0x67
> [    0.000000]  [<c1398e00>] ? trustee_thread+0x3bc/0x46d
> [    0.000000]  [<c1398e00>] ? trustee_thread+0x3bc/0x46d
> [    0.000000]  [<c1398e00>] ? trustee_thread+0x3bc/0x46d
> [    0.000000]  [<c1398e00>] ? trustee_thread+0x3bc/0x46d
> [    0.000000]  [<c1398e00>] ? trustee_thread+0x3bc/0x46d
> [    0.000000]  [<c1398e00>] ? trustee_thread+0x3bc/0x46d
> [    0.000000]  [<c1398e00>] ? trustee_thread+0x3bc/0x46d
> [    0.000000]  [<c1398e00>] ? trustee_thread+0x3bc/0x46d
> [    0.000000]  [<c1398e00>] ? trustee_thread+0x3bc/0x46d
> [    0.000000]  [<c1398e00>] ? trustee_thread+0x3bc/0x46d
> [    0.000000]  [<c1398e00>] ? trustee_thread+0x3bc/0x46d
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



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


 


Rackspace

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