__unlazy_fpu with Sandy Bridge?
I bought over the weekend a Sandy Bridge machine and quite often when I launch a guest I get this:
[ 1.519320] modprobe used greatest stack depth: 6348 bytes left [ 1.528966] udevd (1158): /proc/1158/oom_adj is deprecated, please use /proc/1158/oom_score_adj instead.
[ 1.610819] BUG: unable to handle kernel paging request at cb5b007f [ 1.610839] IP: [<c102b88a>] __unlazy_fpu+0x20/0x84 [ 1.610854] *pdpt = 000000000b49f027 *pde = 000000000c0b1067 *pte = 800000000b5b0061 [ 1.610874] Oops: 0003 [#1] SMP [ 1.610886] last sysfs file: /sys/devices/virtual/tty/ptyp9/uevent [ 1.610896] Modules linked in: xen_blkfront xen_netfront xen_fbfront fb_sys_fops sysimgblt sysfillrect syscopyarea xen_kbdfront xenfs [ 1.610934] [ 1.610941] Pid: 1424, comm: ifup Not tainted 2.6.39-rc4yes_xen_blkdev-00489-gfa5424e #1 [ 1.610959] EIP: 0061:[<c102b88a>] EFLAGS: 00010086 CPU: 1 [ 1.610969] EIP is at __unlazy_fpu+0x20/0x84 [ 1.610977] EAX: ffffffff EBX: ead8c4e0 ECX: cb602700 EDX: ffffffff [ 1.610987] ESI: eb3d3180 EDI: cb5afd40 EBP: cb60de60 ESP: cb60de5c [ 1.610997] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0069 [ 1.611007] Process ifup (pid: 1424, ti=cb60c000 task=cb602700 task.ti=cb5c8000) [ 1.611017] Stack: [ 1.611023] cb602700 cb60de88 c102b938 ead8c4e0 eb3d5480 0060224c 00000001 eb3d5480 [ 1.611055] cb4adc00 eb3d5480 ead8c4e0 cb5c9f50 c13d45ce cb60df1c 00000282 5fb55ce4 [ 1.611055] 00000000 c15e7480 ead8c4e0 c15e7480 c15e7480 ead8c758 cb60df1c c15e7480 [ 1.611055] Call Trace: [ 1.611055] [<c102b938>] __switch_to+0x40/0xfa [ 1.611055] [<c13d45ce>] schedule+0x5fb/0x667 [ 1.611055] [<c1029d43>] ? xen_restore_fl_direct_reloc+0x4/0x4 [ 1.611055] [<c10c4b05>] ? free_hot_cold_page+0xf8/0x100 [ 1.611055] [<c102a21c>] ? get_phys_to_machine+0x18/0x4c [ 1.611055] [<c10296cf>] ? xen_force_evtchn_callback+0xf/0x14 [ 1.611055] [<c1029d4c>] ? check_events+0x8/0xc [ 1.611055] [<c1029d43>] ? xen_restore_fl_direct_reloc+0x4/0x4 [ 1.611055] [<c13d5792>] ? _raw_spin_unlock_irqrestore+0x14/0x17 [ 1.611055] [<c1074a7f>] ? add_wait_queue+0x30/0x35 [ 1.611055] [<c1061112>] ? do_wait+0x183/0x1e1 [ 1.611055] [<c10611f8>] ? sys_wait4+0x88/0xa1 [ 1.611055] [<c105fa70>] ? wait_noreap_copyout+0xdf/0xdf [ 1.611055] [<c1061224>] ? sys_waitpid+0x13/0x15 [ 1.611055] [<c13daa98>] ? sysenter_do_call+0x12/0x28 [ 1.611055] Code: 31 ff 5a 89 f8 59 5b 5e 5f 5d c3 55 89 c1 89 e5 57 8b 40 04 f6 40 0c 01 74 6b b0 01 84 c0 74 1f 83 c8 ff 8b b9 38 03 00 00 89 c2 <0f> ae 37 8b 81 38 03 00 00 f6 80 00 02 00 00 01 75 18 eb 2e b0 [ 1.611055] EIP: [<c102b88a>] __unlazy_fpu+0x20/0x84 SS:ESP 0069:cb60de5c [ 1.611055] CR2: 00000000cb5b007f [ 1.611055] ---[ end trace 0e00f93ab96a1012 ]--- [ 1.611055] Fixing recursive fault but reboot is needed!
Has anybody seen something similar to this?
Quoted 2 lines · Konrad Rzeszutek Wilk
I bought over the weekend a Sandy Bridge machine and quite often when I launch a guest I get this:
Which disappear if I do 'xsave=0'. Looks like there is still some lingering bug? (I did build it with the patch that Keir posted).
Quoted 51 lines
[ 1.519320] modprobe used greatest stack depth: 6348 bytes left [ 1.528966] udevd (1158): /proc/1158/oom_adj is deprecated, please use /proc/1158/oom_score_adj instead.[ 1.610819] BUG: unable to handle kernel paging request at cb5b007f [ 1.610839] IP: [<c102b88a>] __unlazy_fpu+0x20/0x84 [ 1.610854] *pdpt = 000000000b49f027 *pde = 000000000c0b1067 *pte = 800000000b5b0061 [ 1.610874] Oops: 0003 [#1] SMP [ 1.610886] last sysfs file: /sys/devices/virtual/tty/ptyp9/uevent [ 1.610896] Modules linked in: xen_blkfront xen_netfront xen_fbfront fb_sys_fops sysimgblt sysfillrect syscopyarea xen_kbdfront xenfs [ 1.610934] [ 1.610941] Pid: 1424, comm: ifup Not tainted 2.6.39-rc4yes_xen_blkdev-00489-gfa5424e #1 [ 1.610959] EIP: 0061:[<c102b88a>] EFLAGS: 00010086 CPU: 1 [ 1.610969] EIP is at __unlazy_fpu+0x20/0x84 [ 1.610977] EAX: ffffffff EBX: ead8c4e0 ECX: cb602700 EDX: ffffffff [ 1.610987] ESI: eb3d3180 EDI: cb5afd40 EBP: cb60de60 ESP: cb60de5c [ 1.610997] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0069 [ 1.611007] Process ifup (pid: 1424, ti=cb60c000 task=cb602700 task.ti=cb5c8000) [ 1.611017] Stack: [ 1.611023] cb602700 cb60de88 c102b938 ead8c4e0 eb3d5480 0060224c 00000001 eb3d5480 [ 1.611055] cb4adc00 eb3d5480 ead8c4e0 cb5c9f50 c13d45ce cb60df1c 00000282 5fb55ce4 [ 1.611055] 00000000 c15e7480 ead8c4e0 c15e7480 c15e7480 ead8c758 cb60df1c c15e7480 [ 1.611055] Call Trace: [ 1.611055] [<c102b938>] __switch_to+0x40/0xfa [ 1.611055] [<c13d45ce>] schedule+0x5fb/0x667 [ 1.611055] [<c1029d43>] ? xen_restore_fl_direct_reloc+0x4/0x4 [ 1.611055] [<c10c4b05>] ? free_hot_cold_page+0xf8/0x100 [ 1.611055] [<c102a21c>] ? get_phys_to_machine+0x18/0x4c [ 1.611055] [<c10296cf>] ? xen_force_evtchn_callback+0xf/0x14 [ 1.611055] [<c1029d4c>] ? check_events+0x8/0xc [ 1.611055] [<c1029d43>] ? xen_restore_fl_direct_reloc+0x4/0x4 [ 1.611055] [<c13d5792>] ? _raw_spin_unlock_irqrestore+0x14/0x17 [ 1.611055] [<c1074a7f>] ? add_wait_queue+0x30/0x35 [ 1.611055] [<c1061112>] ? do_wait+0x183/0x1e1 [ 1.611055] [<c10611f8>] ? sys_wait4+0x88/0xa1 [ 1.611055] [<c105fa70>] ? wait_noreap_copyout+0xdf/0xdf [ 1.611055] [<c1061224>] ? sys_waitpid+0x13/0x15 [ 1.611055] [<c13daa98>] ? sysenter_do_call+0x12/0x28 [ 1.611055] Code: 31 ff 5a 89 f8 59 5b 5e 5f 5d c3 55 89 c1 89 e5 57 8b 40 04 f6 40 0c 01 74 6b b0 01 84 c0 74 1f 83 c8 ff 8b b9 38 03 00 00 89 c2 <0f> ae 37 8b 81 38 03 00 00 f6 80 00 02 00 00 01 75 18 eb 2e b0 [ 1.611055] EIP: [<c102b88a>] __unlazy_fpu+0x20/0x84 SS:ESP 0069:cb60de5c [ 1.611055] CR2: 00000000cb5b007f [ 1.611055] ---[ end trace 0e00f93ab96a1012 ]--- [ 1.611055] Fixing recursive fault but reboot is needed!Has anybody seen something similar to this?
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 7 lines · Konrad Rzeszutek Wilk
Quoted 2 lines · Konrad Rzeszutek Wilk
I bought over the weekend a Sandy Bridge machine and quite often when I launch a guest I get this:
Which disappear if I do 'xsave=0'. Looks like there is still some lingering bug?
(I did build it with the patch that Keir posted).
I may have plumbed the XSAVE CPUID stuff incorrecty for PV guests. Intel probably need to take a look.
-- Keir
Quoted 66 lines
Quoted 55 lines
[ 1.519320] modprobe used greatest stack depth: 6348 bytes left [ 1.528966] udevd (1158): /proc/1158/oom_adj is deprecated, please use
/proc/1158/oom_score_adjinstead.[ 1.610819] BUG: unable to handle kernel paging request at cb5b007f [ 1.610839] IP: [<c102b88a>] __unlazy_fpu+0x20/0x84 [ 1.610854] *pdpt = 000000000b49f027 *pde = 000000000c0b1067 *pte = 800000000b5b0061 [ 1.610874] Oops: 0003 [#1] SMP [ 1.610886] last sysfs file: /sys/devices/virtual/tty/ptyp9/uevent [ 1.610896] Modules linked in: xen_blkfront xen_netfront xen_fbfront fb_sys_fops sysimgblt sysfillrect syscopyarea xen_kbdfront xenfs [ 1.610934] [ 1.610941] Pid: 1424, comm: ifup Not tainted 2.6.39-rc4yes_xen_blkdev-00489-gfa5424e #1 [ 1.610959] EIP: 0061:[<c102b88a>] EFLAGS: 00010086 CPU: 1 [ 1.610969] EIP is at __unlazy_fpu+0x20/0x84 [ 1.610977] EAX: ffffffff EBX: ead8c4e0 ECX: cb602700 EDX: ffffffff [ 1.610987] ESI: eb3d3180 EDI: cb5afd40 EBP: cb60de60 ESP: cb60de5c [ 1.610997] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0069 [ 1.611007] Process ifup (pid: 1424, ti=cb60c000 task=cb602700 task.ti=cb5c8000) [ 1.611017] Stack: [ 1.611023] cb602700 cb60de88 c102b938 ead8c4e0 eb3d5480 0060224c 00000001 eb3d5480 [ 1.611055] cb4adc00 eb3d5480 ead8c4e0 cb5c9f50 c13d45ce cb60df1c 00000282 5fb55ce4 [ 1.611055] 00000000 c15e7480 ead8c4e0 c15e7480 c15e7480 ead8c758 cb60df1c c15e7480 [ 1.611055] Call Trace: [ 1.611055] [<c102b938>] __switch_to+0x40/0xfa [ 1.611055] [<c13d45ce>] schedule+0x5fb/0x667 [ 1.611055] [<c1029d43>] ? xen_restore_fl_direct_reloc+0x4/0x4 [ 1.611055] [<c10c4b05>] ? free_hot_cold_page+0xf8/0x100 [ 1.611055] [<c102a21c>] ? get_phys_to_machine+0x18/0x4c [ 1.611055] [<c10296cf>] ? xen_force_evtchn_callback+0xf/0x14 [ 1.611055] [<c1029d4c>] ? check_events+0x8/0xc [ 1.611055] [<c1029d43>] ? xen_restore_fl_direct_reloc+0x4/0x4 [ 1.611055] [<c13d5792>] ? _raw_spin_unlock_irqrestore+0x14/0x17 [ 1.611055] [<c1074a7f>] ? add_wait_queue+0x30/0x35 [ 1.611055] [<c1061112>] ? do_wait+0x183/0x1e1 [ 1.611055] [<c10611f8>] ? sys_wait4+0x88/0xa1 [ 1.611055] [<c105fa70>] ? wait_noreap_copyout+0xdf/0xdf [ 1.611055] [<c1061224>] ? sys_waitpid+0x13/0x15 [ 1.611055] [<c13daa98>] ? sysenter_do_call+0x12/0x28 [ 1.611055] Code: 31 ff 5a 89 f8 59 5b 5e 5f 5d c3 55 89 c1 89 e5 57 8b 40 04 f6 40 0c 01 74 6b b0 01 84 c0 74 1f 83 c8 ff 8b b9 38 03 00 00 89 c2 <0f> ae 37 8b 81 38 03 00 00 f6 80 00 02 00 00 01 75 18 eb 2e b0 [ 1.611055] EIP: [<c102b88a>] __unlazy_fpu+0x20/0x84 SS:ESP 0069:cb60de5c [ 1.611055] CR2: 00000000cb5b007f [ 1.611055] ---[ end trace 0e00f93ab96a1012 ]--- [ 1.611055] Fixing recursive fault but reboot is needed!Quoted 6 lines
Has anybody seen something similar to this?
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
I will have a look. But Keir, could you please share some context? Any changes made to Xsave/CPUID so far?
Shan Haitao
2011/4/27 Keir Fraser <[email protected]>
Quoted 90 lines
Quoted 5 lines · Konrad Rzeszutek Wilk
Quoted 2 lines · Konrad Rzeszutek Wilk
I bought over the weekend a Sandy Bridge machine and quite often when I launch a guest I get this:
Which disappear if I do 'xsave=0'. Looks like there is still some
lingering
Quoted 2 lines
bug?
(I did build it with the patch that Keir posted).I may have plumbed the XSAVE CPUID stuff incorrecty for PV guests. Intel probably need to take a look.
-- Keir
Quoted 3 lines
Quoted 3 lines
[ 1.519320] modprobe used greatest stack depth: 6348 bytes left [ 1.528966] udevd (1158): /proc/1158/oom_adj is deprecated, pleaseuse
Quoted 36 lines
Quoted 36 lines
/proc/1158/oom_score_adjinstead.[ 1.610819] BUG: unable to handle kernel paging request at cb5b007f [ 1.610839] IP: [<c102b88a>] __unlazy_fpu+0x20/0x84 [ 1.610854] *pdpt = 000000000b49f027 *pde = 000000000c0b1067 *pte = 800000000b5b0061 [ 1.610874] Oops: 0003 [#1] SMP [ 1.610886] last sysfs file: /sys/devices/virtual/tty/ptyp9/uevent [ 1.610896] Modules linked in: xen_blkfront xen_netfront xen_fbfront fb_sys_fops sysimgblt sysfillrect syscopyarea xen_kbdfront xenfs [ 1.610934] [ 1.610941] Pid: 1424, comm: ifup Not tainted 2.6.39-rc4yes_xen_blkdev-00489-gfa5424e #1 [ 1.610959] EIP: 0061:[<c102b88a>] EFLAGS: 00010086 CPU: 1 [ 1.610969] EIP is at __unlazy_fpu+0x20/0x84 [ 1.610977] EAX: ffffffff EBX: ead8c4e0 ECX: cb602700 EDX: ffffffff [ 1.610987] ESI: eb3d3180 EDI: cb5afd40 EBP: cb60de60 ESP: cb60de5c [ 1.610997] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0069 [ 1.611007] Process ifup (pid: 1424, ti=cb60c000 task=cb602700 task.ti=cb5c8000) [ 1.611017] Stack: [ 1.611023] cb602700 cb60de88 c102b938 ead8c4e0 eb3d5480 0060224c 00000001 eb3d5480 [ 1.611055] cb4adc00 eb3d5480 ead8c4e0 cb5c9f50 c13d45ce cb60df1c 00000282 5fb55ce4 [ 1.611055] 00000000 c15e7480 ead8c4e0 c15e7480 c15e7480 ead8c758 cb60df1c c15e7480 [ 1.611055] Call Trace: [ 1.611055] [<c102b938>] __switch_to+0x40/0xfa [ 1.611055] [<c13d45ce>] schedule+0x5fb/0x667 [ 1.611055] [<c1029d43>] ? xen_restore_fl_direct_reloc+0x4/0x4 [ 1.611055] [<c10c4b05>] ? free_hot_cold_page+0xf8/0x100 [ 1.611055] [<c102a21c>] ? get_phys_to_machine+0x18/0x4c [ 1.611055] [<c10296cf>] ? xen_force_evtchn_callback+0xf/0x14 [ 1.611055] [<c1029d4c>] ? check_events+0x8/0xc [ 1.611055] [<c1029d43>] ? xen_restore_fl_direct_reloc+0x4/0x4Quoted 8 lines
Quoted 8 lines
[ 1.611055] [<c13d5792>] ? _raw_spin_unlock_irqrestore+0x14/0x17 [ 1.611055] [<c1074a7f>] ? add_wait_queue+0x30/0x35 [ 1.611055] [<c1061112>] ? do_wait+0x183/0x1e1 [ 1.611055] [<c10611f8>] ? sys_wait4+0x88/0xa1 [ 1.611055] [<c105fa70>] ? wait_noreap_copyout+0xdf/0xdf [ 1.611055] [<c1061224>] ? sys_waitpid+0x13/0x15 [ 1.611055] [<c13daa98>] ? sysenter_do_call+0x12/0x28 [ 1.611055] Code: 31 ff 5a 89 f8 59 5b 5e 5f 5d c3 55 89 c1 89 e5 578b 40
Quoted 1 line
Quoted 1 line
04 f6 40 0c 01 74 6b b0 01 84 c0 74 1f 83 c8 ff 8b b9 38 03 00 00 89 c2
<0f>
Quoted 2 lines
Quoted 2 lines
ae 37 8b 81 38 03 00 00 f6 80 00 02 00 00 01 75 18 eb 2e b0
[ 1.611055] EIP: [<c102b88a>] __unlazy_fpu+0x20/0x84 SS:ESP0069:cb60de5c
Quoted 12 lines
Quoted 11 lines
[ 1.611055] CR2: 00000000cb5b007f [ 1.611055] ---[ end trace 0e00f93ab96a1012 ]--- [ 1.611055] Fixing recursive fault but reboot is needed!Has anybody seen something similar to this?
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
See xen-unstable:23248. I plumbed a call to xc_cpuid_config_xsave() into xc_cpuid_pv_policy() in libxc/xc_cpuid_x86.c. Without this a recent Linux kernel fails even more quickly, as it detects XSAVE but then finds the feature leaves all zeroes, and panics.
Best guess is that filling in the leaves using exactly the same method as for HVM guests (which is what xc_cpuid_config_xsave() was originally written for) is wrong for some reason.
-- Keir
Quoted 98 lines · Haitao Shan
I will have a look. But Keir, could you please share some context? Any changes made to Xsave/CPUID so far?
Shan Haitao
2011/4/27 Keir Fraser <[email protected]>Quoted 91 lines · Konrad Rzeszutek Wilk
Quoted 8 lines · Konrad Rzeszutek Wilk
Quoted 2 lines
I bought over the weekend a Sandy Bridge machine and quite often when I launch a guest I get this:
Which disappear if I do 'xsave=0'. Looks like there is still some lingering bug?
(I did build it with the patch that Keir posted).I may have plumbed the XSAVE CPUID stuff incorrecty for PV guests. Intel probably need to take a look.
-- Keir
Quoted 65 lines
Quoted 58 lines
[ 1.519320] modprobe used greatest stack depth: 6348 bytes left [ 1.528966] udevd (1158):
/proc/1158/oom_adjis deprecated, please use/proc/1158/oom_score_adjinstead.[ 1.610819] BUG: unable to handle kernel paging request at
cb5b007f[ 1.610839] IP: [<c102b88a>]__unlazy_fpu+0x20/0x84
[ 1.610854] *pdpt =000000000b49f027*pde =000000000c0b1067*pte =800000000b5b0061
[ 1.610874] Oops: 0003 [#1] SMP
[ 1.610886] last sysfs file:/sys/devices/virtual/tty/ptyp9/uevent[ 1.610896] Modules linked in:xen_blkfrontxen_netfrontxen_fbfrontfb_sys_fopssysimgblt sysfillrect syscopyareaxen_kbdfrontxenfs [ 1.610934]
[ 1.610941] Pid: 1424, comm: ifup Not tainted 2.6.39-rc4yes_xen_blkdev-00489-gfa5424e #1
[ 1.610959] EIP: 0061:[<c102b88a>] EFLAGS: 00010086 CPU: 1 [ 1.610969] EIP is at__unlazy_fpu+0x20/0x84
[ 1.610977] EAX: ffffffff EBX:ead8c4e0ECX:cb602700EDX: ffffffff [ 1.610987] ESI:eb3d3180EDI:cb5afd40EBP:cb60de60ESP:cb60de5c[ 1.610997] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0069
[ 1.611007] Process ifup (pid: 1424, ti=cb60c000 task=cb602700 task.ti=cb5c8000)
[ 1.611017] Stack:
[ 1.611023] cb602700cb60de88c102b938ead8c4e0eb3d54800060224c00000001eb3d5480
[ 1.611055] cb4adc00eb3d5480ead8c4e0cb5c9f50c13d45cecb60df1c000002825fb55ce4
[ 1.611055] 00000000c15e7480ead8c4e0c15e7480c15e7480ead8c758cb60df1cc15e7480
[ 1.611055] Call Trace:
[ 1.611055] [<c102b938>]__switch_to+0x40/0xfa
[ 1.611055] [<c13d45ce>]schedule+0x5fb/0x667
[ 1.611055] [<c1029d43>] ?xen_restore_fl_direct_reloc+0x4/0x4[ 1.611055] [<c10c4b05>] ?free_hot_cold_page+0xf8/0x100
[ 1.611055] [<c102a21c>] ?get_phys_to_machine+0x18/0x4c
[ 1.611055] [<c10296cf>] ?xen_force_evtchn_callback+0xf/0x14[ 1.611055] [<c1029d4c>] ?check_events+0x8/0xc
[ 1.611055] [<c1029d43>] ?xen_restore_fl_direct_reloc+0x4/0x4[ 1.611055] [<c13d5792>] ?_raw_spin_unlock_irqrestore+0x14/0x17[ 1.611055] [<c1074a7f>] ?add_wait_queue+0x30/0x35
[ 1.611055] [<c1061112>] ?do_wait+0x183/0x1e1
[ 1.611055] [<c10611f8>] ?sys_wait4+0x88/0xa1
[ 1.611055] [<c105fa70>] ?wait_noreap_copyout+0xdf/0xdf
[ 1.611055] [<c1061224>] ?sys_waitpid+0x13/0x15
[ 1.611055] [<c13daa98>] ?sysenter_do_call+0x12/0x28
[ 1.611055] Code: 31 ff 5a 89 f8 59 5b 5e 5f 5d c3 55 89 c1 89 e5 57 8b 40
04 f6 40 0c 01 74 6b b0 01 84 c0 74 1f 83 c8 ff 8b b9 38 03 00 00 89 c2 <0f>
ae 37 8b 81 38 03 00 00 f6 80 00 02 00 00 01 75 18 eb 2e b0
[ 1.611055] EIP: [<c102b88a>]__unlazy_fpu+0x20/0x84SS:ESP 0069:cb60de5c
[ 1.611055] CR2:00000000cb5b007f
[ 1.611055] ---[ end trace0e00f93ab96a1012]---
[ 1.611055] Fixing recursive fault but reboot is needed!Quoted 6 lines
Has anybody seen something similar to this?
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Keir, I think your patches are right. But something is missing in hypervisor. Given the fact that EBX of CPUID Leaf D SubLeaf 0 contains the xsave area size of *enabled* features (which is controlled by XCR0) and can be dynamically changed at runtime. Current PV CPUID in libxc only returns the static value, which is the minimum xsave area size. As a result, PV kernels may not allocate enough memory for xsave instruction, whose results could be data corruption or page faults.
BTW: It is not a problem for HVM guests, as hvm_cpuid inside Xen will do the fixup, which is the missing part for PV in Xen.
Shan Haitao
2011/4/28 Keir Fraser <[email protected]>
Quoted 85 lines
See xen-unstable:23248. I plumbed a call to
xc_cpuid_config_xsave()intoxc_cpuid_pv_policy()inlibxc/xc_cpuid_x86.c. Without this a recent Linux kernel fails even more quickly, as it detects XSAVE but then finds the feature leaves all zeroes, and panics.Best guess is that filling in the leaves using exactly the same method as for HVM guests (which is what
xc_cpuid_config_xsave()was originally written
for) is wrong for some reason.-- Keir
Quoted 6 lines · Haitao Shan
I will have a look. But Keir, could you please share some context? Any changes made to Xsave/CPUID so far?
Shan Haitao
2011/4/27 Keir Fraser <[email protected]>Quoted 1 line
On 27/04/2011 03:58, "Konrad Rzeszutek Wilk" <[email protected]>
Quoted 6 lines · wrote:
Quoted 6 lines
Quoted 6 lines · Konrad Rzeszutek Wilk
Quoted 2 lines
I bought over the weekend a Sandy Bridge machine and quite often when I launch a guest I get this:
Which disappear if I do 'xsave=0'. Looks like there is still some
lingering
Quoted 11 lines
Quoted 11 lines
Quoted 2 lines
bug?
(I did build it with the patch that Keir posted).I may have plumbed the XSAVE CPUID stuff incorrecty for PV guests. Intel probably need to take a look.
-- Keir
Quoted 3 lines
Quoted 3 lines
[ 1.519320] modprobe used greatest stack depth: 6348 bytes left [ 1.528966] udevd (1158): /proc/1158/oom_adj is deprecated, pleaseuse
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
/proc/1158/oom_score_adjinstead.[ 1.610819] BUG: unable to handle kernel paging request at cb5b007f [ 1.610839] IP: [<c102b88a>] __unlazy_fpu+0x20/0x84 [ 1.610854] *pdpt = 000000000b49f027 *pde = 000000000c0b1067 *pte = 800000000b5b0061 [ 1.610874] Oops: 0003 [#1] SMP [ 1.610886] last sysfs file: /sys/devices/virtual/tty/ptyp9/uevent [ 1.610896] Modules linked in: xen_blkfront xen_netfront
xen_fbfrontQuoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
fb_sys_fopssysimgblt sysfillrect syscopyareaxen_kbdfrontxenfs[ 1.610934] [ 1.610941] Pid: 1424, comm: ifup Not tainted 2.6.39-rc4yes_xen_blkdev-00489-gfa5424e #1 [ 1.610959] EIP: 0061:[<c102b88a>] EFLAGS: 00010086 CPU: 1 [ 1.610969] EIP is at __unlazy_fpu+0x20/0x84 [ 1.610977] EAX: ffffffff EBX: ead8c4e0 ECX: cb602700 EDX: ffffffff [ 1.610987] ESI: eb3d3180 EDI: cb5afd40 EBP: cb60de60 ESP: cb60de5c [ 1.610997] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0069 [ 1.611007] Process ifup (pid: 1424, ti=cb60c000 task=cb602700 task.ti=cb5c8000) [ 1.611017] Stack: [ 1.611023] cb602700 cb60de88 c102b938 ead8c4e0 eb3d5480 0060224c 00000001 eb3d5480 [ 1.611055] cb4adc00 eb3d5480 ead8c4e0 cb5c9f50 c13d45ce cb60df1c 00000282 5fb55ce4 [ 1.611055] 00000000 c15e7480 ead8c4e0 c15e7480 c15e7480 ead8c758 cb60df1c c15e7480 [ 1.611055] Call Trace: [ 1.611055] [<c102b938>] __switch_to+0x40/0xfa [ 1.611055] [<c13d45ce>] schedule+0x5fb/0x667 [ 1.611055] [<c1029d43>] ? xen_restore_fl_direct_reloc+0x4/0x4 [ 1.611055] [<c10c4b05>] ? free_hot_cold_page+0xf8/0x100 [ 1.611055] [<c102a21c>] ? get_phys_to_machine+0x18/0x4c [ 1.611055] [<c10296cf>] ? xen_force_evtchn_callback+0xf/0x14 [ 1.611055] [<c1029d4c>] ? check_events+0x8/0xc [ 1.611055] [<c1029d43>] ? xen_restore_fl_direct_reloc+0x4/0x4Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
[ 1.611055] [<c13d5792>] ? _raw_spin_unlock_irqrestore+0x14/0x17 [ 1.611055] [<c1074a7f>] ? add_wait_queue+0x30/0x35 [ 1.611055] [<c1061112>] ? do_wait+0x183/0x1e1 [ 1.611055] [<c10611f8>] ? sys_wait4+0x88/0xa1 [ 1.611055] [<c105fa70>] ? wait_noreap_copyout+0xdf/0xdf [ 1.611055] [<c1061224>] ? sys_waitpid+0x13/0x15 [ 1.611055] [<c13daa98>] ? sysenter_do_call+0x12/0x28 [ 1.611055] Code: 31 ff 5a 89 f8 59 5b 5e 5f 5d c3 55 89 c1 89 e5
Quoted 36 lines
57 8b
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
40
04 f6 40 0c 01 74 6b b0 01 84 c0 74 1f 83 c8 ff 8b b9 38 03 00 00 89c2
Quoted 29 lines
Quoted 27 lines
Quoted 16 lines
Quoted 9 lines
<0f>
ae 37 8b 81 38 03 00 00 f6 80 00 02 00 00 01 75 18 eb 2e b0[ 1.611055] EIP: [<c102b88a>] __unlazy_fpu+0x20/0x84 SS:ESP 0069:cb60de5c [ 1.611055] CR2: 00000000cb5b007f [ 1.611055] ---[ end trace 0e00f93ab96a1012 ]--- [ 1.611055] Fixing recursive fault but reboot is needed!Quoted 6 lines
Has anybody seen something similar to this?
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel