Re: does anyone have Xen running on an AMD system?

2011-01-14 Thread Colin Percival
On 01/13/11 14:46, Gót András wrote:
 It boots fine with machdep.idle_mwait=0

Ok, so to be clear: The AMD system which needs my patch in order to boot 8.2
can boot the latest HEAD without any patches?

-- 
Colin Percival
Security Officer, FreeBSD | freebsd.org | The power to serve
Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: does anyone have Xen running on an AMD system?

2011-01-14 Thread Gót András
Yes, it also boots fine on amd system, but only with the 
machdep.idle_mwait=0.


Colin Percival wrote:

On 01/13/11 14:46, Gót András wrote:

It boots fine with machdep.idle_mwait=0


Ok, so to be clear: The AMD system which needs my patch in order to boot 8.2
can boot the latest HEAD without any patches?


___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: does anyone have Xen running on an AMD system?

2011-01-13 Thread Sergey G Nasonov
On Wednesday 12 January 2011 20:35:38 Colin Percival wrote:
 Hi,
 
 On 01/12/11 05:01, Sergey G Nasonov wrote:
  I am sorry for intrusion. I have the same problem (pmap_init) running 
  FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is IBM 
  x3650 with intel Xeon 5405 
  panic: pmap_init: page table page is out of range
  
  FreeBSD VM has 1GB memory. And this problem does not appear when I reduce 
  amount of RAM to 512 MB. 
 
 Yeah, this is a completely separate bug from the one I'm trying to fix right
 now -- good to know that it's easily reproduced, though, and very interesting
 to hear that it depends on the amount of RAM you have.  Do you get the same
 panic with -CURRENT?  (I'm guessing you will given that the xen code is very
 close to identical between 9.0 and 8.2, but always best to check...)
 
 

Hi,

CURRENT kernel goes to panic even with 512 MB RAM:


WARNING: loader(8) metadata is missing!
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011
r...@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386
WARNING: WITNESS option enabled, expect reduced performance.
Xen reported: 1995.001 MHz processor.
Timecounter ixen frequency 1953125 Hz quality 0
CPU: Intel(R) Xeon(R) CPU   E5405  @ 2.00GHz (1995.00-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x10676  Family = 6  Model = 17  Stepping = 6
  
Features=0xbfe3fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  
Features2=0xce33dSSE3,DTES64,MON,DS_CPL,VMX,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1
  AMD Features=0x2000LM
  AMD Features2=0x1LAHF
Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries
1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size
1st-level data cache: 32 KB, 8-way set associative, 64 byte line size
L2 cache: 6144 kbytes, 16-way associative, 64 bytes/line
real memory  = 536870912 (512 MB)
Physical memory chunk(s):
0x0079b000 - 0x1f638fff, 518643712 bytes (126622 pages)
avail memory = 515637248 (491 MB)
ULE: setup cpu 0
[XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1)
Event-channel device installed.
mem: memory
Pentium Pro MTRR support enabled
null: null device, zero device
io: I/O
nfslock: pseudo-device
random: entropy source, Software, Yarrow
[XEN] xen_rtc_probe: probing Hypervisor RTC clock
rtc0: Xen Hypervisor Clock on motherboard
[XEN] xen_rtc_attach: attaching Hypervisor RTC clock
rtc0: registered as a time-of-day clock (resolution 100us, adjustment 
0.5s)
xenstore0: XenStore on motherboard
Device configuration finished.
procfs registered
Timecounters tick every 10.000 msec
[XEN] hypervisor wallclock nudged; nudging TOD.
lo0: bpf attached
xenbusb_front0: Xen Frontend Devices on xenstore0


Fatal trap 1: privileged instruction fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer= 0x21:0xc0334e5c
stack pointer= 0x29:0xc21fec84
frame pointer= 0x29:0xc21fec88
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 1, pres 1, def32 xn0: Virtual Network Interface at device/vif/0 on 
xenbusb_front0
1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process= 11 (idle: cpu0)
[ thread pid 11 tid 13 ]
Stopped at  outb_+0x6ac:monitor
db 


But if I set VM to 1024 MB the problem the same as in STABLE:


WARNING: loader(8) metadata is missing!
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011
r...@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386
WARNING: WITNESS option enabled, expect reduced performance.
panic: pmap_init: page table page is out of range
cpuid = 0
KDB: enter: panic
[ thread pid 0 tid 0 ]
Stopped at  0xc011566a: movl$0,0xc04133b4
db 


So pmap_init problem is common for STABLE and CURRENT.


-- 
Best Regards,
Nasonov Sergey
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: does anyone have Xen running on an AMD system?

2011-01-13 Thread Sergey G Nasonov
On Thursday 13 January 2011 17:16:06 Gót András wrote:
 Is this an SMP kernel with more then 1 vcpus configured?
 
 (SMP: Added CPU 0 (BSP))
 
 Sergey G Nasonov wrote:
  On Wednesday 12 January 2011 20:35:38 Colin Percival wrote:
  Hi,
 
  On 01/12/11 05:01, Sergey G Nasonov wrote:
  I am sorry for intrusion. I have the same problem (pmap_init) running 
  FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is 
  IBM x3650 with intel Xeon 5405 
  panic: pmap_init: page table page is out of range
 
  FreeBSD VM has 1GB memory. And this problem does not appear when I reduce 
  amount of RAM to 512 MB. 
  Yeah, this is a completely separate bug from the one I'm trying to fix 
  right
  now -- good to know that it's easily reproduced, though, and very 
  interesting
  to hear that it depends on the amount of RAM you have.  Do you get the same
  panic with -CURRENT?  (I'm guessing you will given that the xen code is 
  very
  close to identical between 9.0 and 8.2, but always best to check...)
 
 
  
  Hi,
  
  CURRENT kernel goes to panic even with 512 MB RAM:
  
  
  WARNING: loader(8) metadata is missing!
  GDB: no debug ports present
  KDB: debugger backends: ddb
  KDB: current backend: ddb
  APIC: Using the MPTable enumerator.
  SMP: Added CPU 0 (BSP)
  Copyright (c) 1992-2011 The FreeBSD Project.
  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
  The Regents of the University of California. All rights reserved.
  FreeBSD is a registered trademark of The FreeBSD Foundation.
  FreeBSD 9.0-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011
  r...@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386
  WARNING: WITNESS option enabled, expect reduced performance.
  Xen reported: 1995.001 MHz processor.
  Timecounter ixen frequency 1953125 Hz quality 0
  CPU: Intel(R) Xeon(R) CPU   E5405  @ 2.00GHz (1995.00-MHz 686-class 
  CPU)
Origin = GenuineIntel  Id = 0x10676  Family = 6  Model = 17  Stepping = 
  6

  Features=0xbfe3fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE

  Features2=0xce33dSSE3,DTES64,MON,DS_CPL,VMX,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1
AMD Features=0x2000LM
AMD Features2=0x1LAHF
  Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries
  1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size
  1st-level data cache: 32 KB, 8-way set associative, 64 byte line size
  L2 cache: 6144 kbytes, 16-way associative, 64 bytes/line
  real memory  = 536870912 (512 MB)
  Physical memory chunk(s):
  0x0079b000 - 0x1f638fff, 518643712 bytes (126622 pages)
  avail memory = 515637248 (491 MB)
  ULE: setup cpu 0
  [XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0)
  [XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1)
  Event-channel device installed.
  mem: memory
  Pentium Pro MTRR support enabled
  null: null device, zero device
  io: I/O
  nfslock: pseudo-device
  random: entropy source, Software, Yarrow
  [XEN] xen_rtc_probe: probing Hypervisor RTC clock
  rtc0: Xen Hypervisor Clock on motherboard
  [XEN] xen_rtc_attach: attaching Hypervisor RTC clock
  rtc0: registered as a time-of-day clock (resolution 100us, adjustment 
  0.5s)
  xenstore0: XenStore on motherboard
  Device configuration finished.
  procfs registered
  Timecounters tick every 10.000 msec
  [XEN] hypervisor wallclock nudged; nudging TOD.
  lo0: bpf attached
  xenbusb_front0: Xen Frontend Devices on xenstore0
  
  
  Fatal trap 1: privileged instruction fault while in kernel mode
  cpuid = 0; apic id = 00
  instruction pointer= 0x21:0xc0334e5c
  stack pointer= 0x29:0xc21fec84
  frame pointer= 0x29:0xc21fec88
  code segment= base 0x0, limit 0xf, type 0x1b
  = DPL 1, pres 1, def32 xn0: Virtual Network Interface at device/vif/0 on 
  xenbusb_front0
  1, gran 1
  processor eflags= interrupt enabled, resume, IOPL = 0
  current process= 11 (idle: cpu0)
  [ thread pid 11 tid 13 ]
  Stopped at  outb_+0x6ac:monitor
  db 


No, this is FreeBSD CURRENT VM with single vCPU. 
Adding additional vCPU lead to another problem. For example:

WARNING: loader(8) metadata is missing!
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
SMP: Added CPU 1 (AP)
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011
r...@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386
WARNING: WITNESS option enabled, expect reduced performance.
Xen reported: 1994.998 MHz processor.
Timecounter ixen frequency 1953125 Hz quality 0
CPU: Intel(R) Xeon(R) CPU   E5405  @ 2.00GHz (1995.00-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 

Re: does anyone have Xen running on an AMD system?

2011-01-13 Thread Tobiasz Tworek

On 01/12/11 12:31, Tobiasz Tworek wrote:

I had tested latest curent version on my AMD Athlon II X4 Xen Server 6.5
and i have got panic. My output:

Hmm, that's odd.  I didn't think this bug affected HEAD.


Fatal trap 9: general protection fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer= 0x21:0xc032b311

Can you check (using addr2line) where 0xc032b311 is?

Thanks,

This is output of addr2line of address 0xc032b311

# addr2line -f -e kernel.debug 0xc032b311
cpu_idle_abdc1e
../../../i386/i386/machdep.c:1298

i will now try your patch for 8.2 to head and will post results.

Tobiasz


___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: does anyone have Xen running on an AMD system?

2011-01-13 Thread Gót András



Sergey G Nasonov wrote:

On Thursday 13 January 2011 17:16:06 Gót András wrote:

Is this an SMP kernel with more then 1 vcpus configured?

(SMP: Added CPU 0 (BSP))

Sergey G Nasonov wrote:

On Wednesday 12 January 2011 20:35:38 Colin Percival wrote:

Hi,

On 01/12/11 05:01, Sergey G Nasonov wrote:
I am sorry for intrusion. I have the same problem (pmap_init) running FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is IBM x3650 with intel Xeon 5405 
panic: pmap_init: page table page is out of range


FreeBSD VM has 1GB memory. And this problem does not appear when I reduce amount of RAM to 512 MB. 

Yeah, this is a completely separate bug from the one I'm trying to fix right
now -- good to know that it's easily reproduced, though, and very interesting
to hear that it depends on the amount of RAM you have.  Do you get the same
panic with -CURRENT?  (I'm guessing you will given that the xen code is very
close to identical between 9.0 and 8.2, but always best to check...)



Hi,

CURRENT kernel goes to panic even with 512 MB RAM:


WARNING: loader(8) metadata is missing!
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011
r...@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386
WARNING: WITNESS option enabled, expect reduced performance.
Xen reported: 1995.001 MHz processor.
Timecounter ixen frequency 1953125 Hz quality 0
CPU: Intel(R) Xeon(R) CPU   E5405  @ 2.00GHz (1995.00-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x10676  Family = 6  Model = 17  Stepping = 6
  
Features=0xbfe3fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  
Features2=0xce33dSSE3,DTES64,MON,DS_CPL,VMX,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1
  AMD Features=0x2000LM
  AMD Features2=0x1LAHF
Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries
1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size
1st-level data cache: 32 KB, 8-way set associative, 64 byte line size
L2 cache: 6144 kbytes, 16-way associative, 64 bytes/line
real memory  = 536870912 (512 MB)
Physical memory chunk(s):
0x0079b000 - 0x1f638fff, 518643712 bytes (126622 pages)
avail memory = 515637248 (491 MB)
ULE: setup cpu 0
[XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1)
Event-channel device installed.
mem: memory
Pentium Pro MTRR support enabled
null: null device, zero device
io: I/O
nfslock: pseudo-device
random: entropy source, Software, Yarrow
[XEN] xen_rtc_probe: probing Hypervisor RTC clock
rtc0: Xen Hypervisor Clock on motherboard
[XEN] xen_rtc_attach: attaching Hypervisor RTC clock
rtc0: registered as a time-of-day clock (resolution 100us, adjustment 
0.5s)
xenstore0: XenStore on motherboard
Device configuration finished.
procfs registered
Timecounters tick every 10.000 msec
[XEN] hypervisor wallclock nudged; nudging TOD.
lo0: bpf attached
xenbusb_front0: Xen Frontend Devices on xenstore0


Fatal trap 1: privileged instruction fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer= 0x21:0xc0334e5c
stack pointer= 0x29:0xc21fec84
frame pointer= 0x29:0xc21fec88
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 1, pres 1, def32 xn0: Virtual Network Interface at device/vif/0 on 
xenbusb_front0
1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process= 11 (idle: cpu0)
[ thread pid 11 tid 13 ]
Stopped at  outb_+0x6ac:monitor
db 



No, this is FreeBSD CURRENT VM with single vCPU. 
Adding additional vCPU lead to another problem. For example:


WARNING: loader(8) metadata is missing!
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
SMP: Added CPU 1 (AP)
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-CURRENT #5: Thu Jan 13 13:10:09 MSK 2011
r...@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386
WARNING: WITNESS option enabled, expect reduced performance.
Xen reported: 1994.998 MHz processor.
Timecounter ixen frequency 1953125 Hz quality 0
CPU: Intel(R) Xeon(R) CPU   E5405  @ 2.00GHz (1995.00-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x10676  Family = 6  Model = 17  Stepping = 6
Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries
1st-level instruction cache: 32 KB, 8-way set associative, 64 

Re: does anyone have Xen running on an AMD system?

2011-01-13 Thread Gót András
Do you use stock Xen or the Debian bundled one? However I'd suggest that boot 
from local disk (usb is also good) and use nfs only for guests. I'd also suggest 
that try 3.4.3.


If you could boot CURRENT and 8-RC2 on that, at least try it, it would help a 
little imho.




Martin Cracauer wrote:

FWIW, I have a Xen 4.x install on a Phenom II now and I can give out
accounts on there if it helps the cause.

BTW, did anyone succeed in making a Xen 4.x install with a
Debian/squeeze dom0 go through a diskless PXE boot? I can't use the
same kernel that works on local disk since it doesn't have root_nfs.
All my attempts to compile that very kernel with Debian's own config
and sources ends up with the screen goes blank after Xen messages
when entering dom0 kernel syndrome which indicates to me I am missing
some Dom0 support in that kernel.  But the precompiled one works.

Also, previously I had problems that the Xen scripts connecting the
DomU via an Ethernet bridge would intermittently disconnect the
physical Ethernet connection.  Which in the case of a diskless machine
stopped that very script ;-)

Anyone got any tips here? Not use Debian would be a way I suppose.
What do you guys have for Dom0? 


Martin

___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: does anyone have Xen running on an AMD system?

2011-01-13 Thread Colin Percival
On 01/13/11 14:35, Gót András wrote:
 Colin Percival wrote:
 This is a different panic (PR kern/152228).  To fix this one, set
 machdep.idle_mwait=0 in the loader.
 
 er, how could we set it from the Xen config side (or any side)? With
 Linux, in PV mode Xen just boots the kernel with some params.

I think putting it into the extra=... line in a xen domain config file works.
I'm using pv-grub, and with that I just add the config options after the kernel
path (e.g., kernel /boot/kernel/kernel machdep.idle_mwait=0,boot_verbose=1).

-- 
Colin Percival
Security Officer, FreeBSD | freebsd.org | The power to serve
Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: does anyone have Xen running on an AMD system?

2011-01-13 Thread Gót András

Colin Percival wrote:

On 01/13/11 14:35, Gót András wrote:

Colin Percival wrote:

This is a different panic (PR kern/152228).  To fix this one, set
machdep.idle_mwait=0 in the loader.

er, how could we set it from the Xen config side (or any side)? With
Linux, in PV mode Xen just boots the kernel with some params.


I think putting it into the extra=... line in a xen domain config file works.
I'm using pv-grub, and with that I just add the config options after the kernel
path (e.g., kernel /boot/kernel/kernel machdep.idle_mwait=0,boot_verbose=1).



Thanks, I've just find it here: http://wiki.freebsd.org/AdrianChadd/XenHackery

It boots fine with machdep.idle_mwait=0
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: does anyone have Xen running on an AMD system?

2011-01-12 Thread Gót András

So the results.

Xeon machine: boots fine until 832MB RAM, after that came the known 
error. I raised memory in 32MB steps, so 832MB is fine and 864MB causes 
the crash.


Opteron machine with 512MB (I think Colin wanted to debug this error not 
the memory related.):


CPU: Quad-Core AMD Opteron(tm) Processor 2376 (2300.09-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x100f42  Family = 10  Model = 4 
Stepping = 2


Features=0x1783fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT
  Features2=0x802009SSE3,MON,CX16,POPCNT
  AMD 
Features=0xee500800SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!
  AMD 
Features2=0x37ffLAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT

  TSC: P-state invariant
real memory  = 536870912 (512 MB)
avail memory = 515928064 (492 MB)
[XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1)
xs_probe: Probe retuns 0
xenstore0: XenStore on motherboard
[XEN] xen_rtc_probe: probing Hypervisor RTC clock
rtc0: Xen Hypervisor Clock on motherboard
[XEN] xen_rtc_attach: attaching Hypervisor RTC clock
xc0: Xen Console on motherboard
Timecounters tick every 10.000 msec
xenbusb_front0: Xen Frontend Devices on xenstore0
kernel trap 9 with interrupts disabled


Fatal trap 9: general protection fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer = 0x21:0xc0321241
stack pointer   = 0x29:0xc21ffc8c
frame pointer   = 0x29:0xc21ffc94
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 1, pres 1, def32 1, gran 1
processor eflags= resume, IOPL = 0
current process = 11 (idle: cpu0)
[thread pid 11 tid 13 ]
Stopped at  spinlock_exit+0xe1: hlt



Regards,
Andras


Sergey G Nasonov wrote:
I am sorry for intrusion. I have the same problem (pmap_init) running FreeBSD 8.2 r217259 i386 PV mode on Citrix XenServer 5.6. The server is IBM x3650 with intel Xeon 5405 


cpu_count: 4
   vendor: GenuineIntel
speed: 1995.001
modelname: Intel(R) Xeon(R) CPU   E5405  @ 2.00GHz
   family: 6
model: 23
 stepping: 6
flags: fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov 
pat clflush acpi mmx fxsr sse sse2 ss ht constant_tsc pni vmx ssse3 sse4_1
 features: 000ce33d-bfebfbff-0001-2800
features_after_reboot: 000ce33d-bfebfbff-0001-2800
physical_features: 000ce33d-bfebfbff-0001-2800
 maskable: base

WARNING: loader(8) metadata is missing!
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.2-PRERELEASE #4: Wed Jan 12 13:30:44 MSK 2011
r...@fbsd8x32.bcc.:/usr/obj/usr/src/sys/XEN i386
WARNING: WITNESS option enabled, expect reduced performance.
panic: pmap_init: page table page is out of range
cpuid = 0
KDB: enter: panic
[thread pid 0 tid 0 ]
Stopped at  0xc010ab0a: movl$0,0xc03e6f74
db 
db 
db 



FreeBSD VM has 1GB memory. And this problem does not appear when I reduce amount of RAM to 512 MB. 
Unfortunately, currently I dont have any servers with AMD Opteron CPU to test.



___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: does anyone have Xen running on an AMD system?

2011-01-12 Thread Colin Percival
On 01/12/11 05:33, Gót András wrote:
 kernel trap 9 with interrupts disabled
 
 Fatal trap 9: general protection fault while in kernel mode
 cpuid = 0; apic id = 00
 instruction pointer= 0x21:0xc0321241
 stack pointer= 0x29:0xc21ffc8c
 frame pointer= 0x29:0xc21ffc94
 code segment= base 0x0, limit 0xf, type 0x1b
 = DPL 1, pres 1, def32 1, gran 1
 processor eflags= resume, IOPL = 0
 current process= 11 (idle: cpu0)
 [thread pid 11 tid 13 ]
 Stopped at  spinlock_exit+0xe1: hlt

Yep, this is what I was looking for.  Can you try the attached patch (under
the same conditions to avoid the pmap_init panic) and let me know if this
problem goes away?

-- 
Colin Percival
Security Officer, FreeBSD | freebsd.org | The power to serve
Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid
Index: i386/i386/machdep.c
===
--- i386/i386/machdep.c	(revision 217272)
+++ i386/i386/machdep.c	(working copy)
@@ -2690,8 +2690,10 @@
 	thread0.td_pcb-pcb_fsd = PCPU_GET(fsgs_gdt)[0];
 	thread0.td_pcb-pcb_gsd = PCPU_GET(fsgs_gdt)[1];
 
+#if defined(XEN_PRIVILEGED)
 	if (cpu_probe_amdc1e())
 		cpu_idle_fn = cpu_idle_amdc1e;
+#endif
 }
 
 #else
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: does anyone have Xen running on an AMD system?

2011-01-12 Thread Tobiasz Tworek

Sory my bad i will atache path to curent and tomorow i will test it.

Tobiasz

In current patch is attached to file i386/i386/machdep.c.
There is no line #if defined(XEN_PRIVILEGED).

Tobiasz

I've attached Colin's patch. It may work on current also.

Tobiasz Tworek wrote:
I had tested latest curent version on my AMD Athlon II X4 Xen Server 
6.5 and i have got panic. My output:


WARNING: loader(8) metadata is missing!
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 
1994

The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-CURRENT #0: Wed Jan 12 20:14:15 CET 2011
r...@freebsdcurent:/usr/src/sys/i386/compile/XEN i386
WARNING: WITNESS option enabled, expect reduced performance.
Xen reported: 3013.708 MHz processor.
Timecounter ixen frequency 10 Hz quality 0
CPU: AMD Athlon(tm) II X4 640 Processor (3013.71-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x100f53  Family = 10  Model = 5  
Stepping = 3
  
Features=0x1783fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT 


  Features2=0x802009SSE3,MON,CX16,POPCNT
  AMD 
Features=0xee500800SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!
  AMD 
Features2=0x37ffLAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT 


  TSC: P-state invariant
Data TLB: 48 entries, fully associative
Instruction TLB: 32 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way 
associative
L2 internal cache: 512 kbytes, 64 bytes/line, 1 lines/tag, 8-way 
associative

real memory  = 536870912 (512 MB)
Physical memory chunk(s):
0x0077d000 - 0x1f638fff, 518766592 bytes (126652 pages)
avail memory = 515821568 (491 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
ULE: setup cpu 0
[XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1)
Event-channel device installed.
nfslock: pseudo-device
mem:memory
Pentium Pro MTRR support enabled
io:I/O
null:null device, zero device
random:entropy source, Software, Yarrow
[XEN] xen_rtc_probe: probing Hypervisor RTC clock
rtc0:Xen Hypervisor Clock  on motherboard
[XEN] xen_rtc_attach: attaching Hypervisor RTC clock
rtc0: registered as a time-of-day clock (resolution 100us, 
adjustment 0.5s)

Grant table initialized
xenbus0:Xen Devices  on motherboard
xc0:Xen Console  on motherboard
Device configuration finished.
procfs registered
Timecounters tick every 10.000 msec
kernel trap 9 with interrupts disabled


Fatal trap 9: general protection fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer= 0x21:0xc032b311
stack pointer= 0x29:0xlo0: bpf attached
c21fec8c
frame pointer= 0x29:0xc21fec94
code segment= base 0x0, limit 0xf, type [XEN] hypervisor 
wallclock nudged; nudging TOD.

0x1b
= DPL 1, pres 1, def32 1, gran 1
processor eflags= resume, IOPL = 0
current process= 11 (idle: cpu0)
[ thread pid 11 tid 13 ]
Stopped at  spinlock_exit+0xa1: hlt



Regards,
Tobiasz Tworek



On 01/12/11 05:33, Gót András wrote:

kernel trap 9 with interrupts disabled

Fatal trap 9: general protection fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer= 0x21:0xc0321241
stack pointer= 0x29:0xc21ffc8c
frame pointer= 0x29:0xc21ffc94
code segment= base 0x0, limit 0xf, type 0x1b
 = DPL 1, pres 1, def32 1, gran 1
processor eflags= resume, IOPL = 0
current process= 11 (idle: cpu0)
[thread pid 11 tid 13 ]
Stopped at  spinlock_exit+0xe1: hlt
Yep, this is what I was looking for.  Can you try the attached 
patch (under
the same conditions to avoid the pmap_init panic) and let me know 
if this

problem goes away?



___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org





___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: does anyone have Xen running on an AMD system?

2011-01-11 Thread Gót András

Hi,

I'll try to fire up a VPS on an Opteron 2376 soon. I'll use this image: 
FreeBSD-8.2-RC1-i386-disc1.iso


Regards,
Andras


Colin Percival wrote:

Hi all,

I'm looking for someone with a recent AMD system who has Xen running and/or can
install it.  I've had a report of a FreeBSD 8.x panic while booting on AMD, and
it looks very plausible to me, but I need to be able to reproduce it so that I
can get a patch tested.

If you have such a system, please let me know ASAP -- I'm hoping to get this fix
into 8.2-RELEASE, and there's only a few days left.


___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: does anyone have Xen running on an AMD system?

2011-01-11 Thread Gót András
I know there's no problem with simple HVM, so I'll compile a PV kernel and check 
it. (I hope at least.)


Colin Percival wrote:

Oops... I should have been a bit more specific.  The problem is when running
paravirtualized, not via HVM, so the standard install disk won't help.

On 01/11/11 11:18, Gót András wrote:

I'll try to fire up a VPS on an Opteron 2376 soon. I'll use this image:
FreeBSD-8.2-RC1-i386-disc1.iso

Regards,
Andras


Colin Percival wrote:

Hi all,

I'm looking for someone with a recent AMD system who has Xen running
and/or can
install it.  I've had a report of a FreeBSD 8.x panic while booting on
AMD, and
it looks very plausible to me, but I need to be able to reproduce it
so that I
can get a patch tested.

If you have such a system, please let me know ASAP -- I'm hoping to
get this fix
into 8.2-RELEASE, and there's only a few days left.





___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org