Re: boot panic with qemu, -current guest on a Linux host

2012-09-15 Thread LEVAI Daniel
Chris Cappuccio, 2012-08-31 21:44:32:
 somehow, your computer thinks C3_CPUID_HAS_RNG is valid, which would mean you 
 are \
 running the via_nano_setup routine, which means your cpu model is VIA Nano \
 processor, which is all just wrong. wtf?
 
  OpenBSD 5.2-current (GENERIC.MP) #6: Mon Aug 27 20:40:45 MDT 2012
  dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
  cpu0: AMD Phenom(tm) II X4 B50 Processor (AuthenticAMD 686-class, 512KB 
  L2 cac
  he) 3.11 GHz
  cpu0: 
  FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
  LUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,3DNOW2,3DNOW,SSE3,CX16,POPCNT,LAHF,CMPLEG,
  SVM,AMCR8,ABM,SSE4A,MASSE,3DNOWP
  real mem  = 536395776 (511MB)
  avail mem = 516698112 (492MB)
  mainbus0 at root
  bios0 at mainbus0: AT/286+ BIOS, date 06/23/99, BIOS32 rev. 0 @ 0xff046, 
  SMBIOS
  rev. 2.4 @ 0xfd900 (11 entries)
  bios0: vendor Bochs version Bochs date 01/01/2007
  bios0: Bochs Bochs
  acpi0 at bios0: rev 0
  acpi0: sleep states S3 S4 S5
  acpi0: tables DSDT FACP SSDT APIC HPET
  acpi0: wakeup devices
  acpitimer0 at acpi0: 3579545 Hz, 24 bits
  acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
  acpihpet0 at acpi0: 1 Hz
  acpiprt0 at acpi0: bus 0 (PCI0)
  mpbios0 at bios0: Intel MP Specification 1.4
  cpu0 at mainbus0: apid 0 (boot processor)
  kernel: protection fault trap, code=0
  Stopped at  viac3_rnd+0x9f: rdmsr
  viac3_rnd(d0b025a0,d09e3268,d08f384b,3,4) at viac3_rnd+0x9f
  amd64_errata(d0b025a0,d0b025a0,d0f8,d078eb77,d0b025a0) at 
  amd64_errata+0xb9
  
  cpu_init(d0b025a0,0,2000,0,d0bbbc04) at cpu_init+0x19
  cpu_attach(d164bfc0,d155e400,d0bbbc4c,d03ee29b,d078de30) at cpu_attach+0x297
  config_attach(d164bfc0,d09d45c0,d0bbbc4c,d078cb20,800,0,0,d08f3129,0,1,d09f21c0
  ,100f42,78bfbff) at config_attach+0x1bb
  mpbios_cpu(f51a5a9c,d16737c0,2,1,2) at mpbios_cpu+0x85
  mpbios_scan(d16737c0,d16737c0,d0bbbd60,d03ee29b,0) at mpbios_scan+0x2dc
  config_attach(d164bf80,d09d45a0,d0bbbd60,d0789d30,b) at config_attach+0x1bb
  biosattach(d164bfc0,d164bf80,d0bbbe58,d03ee29b,0) at biosattach+0x517
  config_attach(d164bfc0,d09d4560,d0bbbe58,d05afb60,3000) at 
  config_attach+0x
  1bb
  ddb{0}
  
  
  The host has an AMD Phenom(tm) II X4 B50 Processor.
  The guest OpenBSD tries to boot a -current bsd.mp. This works with other
  cpu types specified (like kvm32, or qemu32...), I just wanted to try out
  if the guest would be faster with the 'phenom' or 'host' cpu type.

Since it works with -stable (5.1), I'm attaching the -stable dmesg, maybe it
tells something to someone :)
Is there a commit, around which I should look, and try out reverting some
things that might pinpoint the change since -stable that triggers this
problem?

OpenBSD 5.1 (GENERIC.MP) #188: Sun Feb 12 09:55:11 MST 2012
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: AMD Phenom(tm) II X4 B50 Processor (AuthenticAMD 686-class, 512KB L2 
cache) 3.11 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,3DNOW2,3DNOW,SSE3,CX16,POPCNT,LAHF,SVM,ABM,SSE4A
real mem  = 536399872 (511MB)
avail mem = 517509120 (493MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/23/99, BIOS32 rev. 0 @ 0xff046, SMBIOS 
rev. 2.4 @ 0xfd8c0 (11 entries)
bios0: vendor Bochs version Bochs date 01/01/2011
bios0: Bochs Bochs
acpi0 at bios0: rev 0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HPET SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
acpihpet0 at acpi0: 1 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 1009MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Phenom(tm) II X4 B50 Processor (AuthenticAMD 686-class, 512KB L2 
cache) 3.14 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,3DNOW2,3DNOW,SSE3,CX16,POPCNT,LAHF,SVM,ABM,SSE4A
mpbios0: bus 0 is type PCI   
mpbios0: bus 1 is type ISA   
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 11, 24 pins
bios0: ROM list: 0xc/0x8c00 0xc9000/0xa00 0xca000/0x2400 0xee800/0x1800!
vmt0 at mainbus0
vmware: open failed, eax=564d5868, ecx=001e, edx=5658
vmt0: failed to open backdoor RPC channel (TCLO protocol)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82441FX rev 0x02
pcib0 at pci0 dev 1 function 0 Intel 82371SB ISA rev 0x00
pciide0 at pci0 dev 1 function 1 Intel 82371SB IDE rev 0x00: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: QEMU HARDDISK
wd0: 16-sector PIO, LBA48, 15360MB, 31457280 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: QEMU, 

Re: boot panic with qemu, -current guest on a Linux host

2012-09-15 Thread LEVAI Daniel
On szo, szept 15, 2012 at 22:49:42 +0200, LEVAI Daniel wrote:
[...]
   OpenBSD 5.2-current (GENERIC.MP) #6: Mon Aug 27 20:40:45 MDT 2012
   dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
   cpu0: AMD Phenom(tm) II X4 B50 Processor (AuthenticAMD 686-class, 512KB 
   L2 cac
   he) 3.11 GHz
   cpu0: 
   FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
   LUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,3DNOW2,3DNOW,SSE3,CX16,POPCNT,LAHF,CMPLEG,
   SVM,AMCR8,ABM,SSE4A,MASSE,3DNOWP
   real mem  = 536395776 (511MB)
   avail mem = 516698112 (492MB)
   mainbus0 at root
   bios0 at mainbus0: AT/286+ BIOS, date 06/23/99, BIOS32 rev. 0 @ 0xff046, 
   SMBIOS
   rev. 2.4 @ 0xfd900 (11 entries)
   bios0: vendor Bochs version Bochs date 01/01/2007
   bios0: Bochs Bochs
   acpi0 at bios0: rev 0
   acpi0: sleep states S3 S4 S5
   acpi0: tables DSDT FACP SSDT APIC HPET
   acpi0: wakeup devices
   acpitimer0 at acpi0: 3579545 Hz, 24 bits
   acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
   acpihpet0 at acpi0: 1 Hz
   acpiprt0 at acpi0: bus 0 (PCI0)
   mpbios0 at bios0: Intel MP Specification 1.4
   cpu0 at mainbus0: apid 0 (boot processor)
   kernel: protection fault trap, code=0
   Stopped at  viac3_rnd+0x9f: rdmsr
   viac3_rnd(d0b025a0,d09e3268,d08f384b,3,4) at viac3_rnd+0x9f
   amd64_errata(d0b025a0,d0b025a0,d0f8,d078eb77,d0b025a0) at 
   amd64_errata+0xb9
   
   cpu_init(d0b025a0,0,2000,0,d0bbbc04) at cpu_init+0x19
   cpu_attach(d164bfc0,d155e400,d0bbbc4c,d03ee29b,d078de30) at 
   cpu_attach+0x297
   config_attach(d164bfc0,d09d45c0,d0bbbc4c,d078cb20,800,0,0,d08f3129,0,1,d09f21c0
   ,100f42,78bfbff) at config_attach+0x1bb
   mpbios_cpu(f51a5a9c,d16737c0,2,1,2) at mpbios_cpu+0x85
   mpbios_scan(d16737c0,d16737c0,d0bbbd60,d03ee29b,0) at mpbios_scan+0x2dc
   config_attach(d164bf80,d09d45a0,d0bbbd60,d0789d30,b) at 
   config_attach+0x1bb
   biosattach(d164bfc0,d164bf80,d0bbbe58,d03ee29b,0) at biosattach+0x517
   config_attach(d164bfc0,d09d4560,d0bbbe58,d05afb60,3000) at 
   config_attach+0x
   1bb
   ddb{0}
   
   
   The host has an AMD Phenom(tm) II X4 B50 Processor.
[...]

Well, who knew; even a broken watch is right two times a day :)
I've started to rummage through the openbsd-cvs mails, and searched for
a similar commit, and after 'viac3_rnd' didn't yield much result, the
next search, 'amd64_errata' was fruitful.

There were two commits back in March by jsg@, namely to
sys/arch/i386/i386/amd64errata.c(r1.3) and
sys/arch/i386/include/specialreg.h(r1.41) about some workaround for AMD.

Reverting these two little patches solved this issue on the i386 guest:

--- src/sys/arch/i386/include/specialreg.h  2011/11/03 00:53:44 1.40
+++ src/sys/arch/i386/include/specialreg.h  2012/03/27 06:59:46 1.41
@@ -1,4 +1,4 @@
-/* $OpenBSD: specialreg.h,v 1.40 2011/11/02 23:53:44 jsg Exp $ */
+/* $OpenBSD: specialreg.h,v 1.41 2012/03/27 05:59:46 jsg Exp $ */
 /* $NetBSD: specialreg.h,v 1.7 1994/10/27 04:16:26 cgd Exp $   */
 
 /*-
@@ -305,6 +305,9 @@
 #define MSR_GSBASE 0xc101  /* 64bit offset for gs: */
 #define MSR_KERNELGSBASE 0xc102/* storage for swapgs ins */
 #define MSR_INT_PEN_MSG0xc0010055  /* Interrupt pending 
message */
+
+#define MSR_DE_CFG 0xc0011029  /* Decode Configuration */
+#defineDE_CFG_721  0x0001  /* errata 721 */
 
 #define IPM_C1E_CMP_HLT0x1000
 #define IPM_SMI_CMP_HLT0x0800

--- src/sys/arch/i386/i386/amd64errata.c2008/06/26 06:42:10 1.2
+++ src/sys/arch/i386/i386/amd64errata.c2012/03/27 06:59:46 1.3
@@ -1,4 +1,4 @@
-/* $OpenBSD: amd64errata.c,v 1.2 2008/06/26 05:42:10 ray Exp $ */
+/* $OpenBSD: amd64errata.c,v 1.3 2012/03/27 05:59:46 jsg Exp $ */
 /* $NetBSD: errata.c,v 1.6 2007/02/05 21:05:45 ad Exp $*/
 
 /*-
@@ -64,6 +64,8 @@ typedef struct errata {
 typedef enum cpurev {
BH_E4, CH_CG, CH_D0, DH_CG, DH_D0, DH_E3, DH_E6, JH_E1,
JH_E6, SH_B0, SH_B3, SH_C0, SH_CG, SH_D0, SH_E4, SH_E5,
+   DR_BA, DR_B2, DR_B3, RB_C2, RB_C3, BL_C2, BL_C3, DA_C2,
+   DA_C3, HY_D0, HY_D1, HY_D1_G34R1,  PH_E0, LN_B0,
OINK
 } cpurev_t;
 
@@ -78,6 +80,11 @@ static const u_int cpurevs[] = {
SH_CG, 0xf4a, SH_CG, 0xf5a, SH_CG, 0xf7a,
SH_D0, 0x0010f40, SH_D0, 0x0010f50, SH_D0, 0x0010f70,
SH_E4, 0x0020f51, SH_E4, 0x0020f71, SH_E5, 0x0020f42,
+   DR_BA, 0x0100f2a, DR_B2, 0x0100f22, DR_B3, 0x0100f23,
+   RB_C2, 0x0100f42, RB_C3, 0x0100f43, BL_C2, 0x0100f52,
+   BL_C3, 0x0100f53, DA_C2, 0x0100f62, DA_C3, 0x0100f63,
+   HY_D0, 0x0100f80, HY_D1, 0x0100f81, HY_D1_G34R1, 0x0100f91,
+   PH_E0, 0x0100fa0, LN_B0, 0x0300f10,
OINK
 };
 
@@ -117,6 +124,11 @@ static const uint8_t amd64_errata_set8[] = {
SH_D0, SH_D0, SH_D0, SH_E4, SH_E4, SH_E5, OINK
 };
 
+static const uint8_t 

Re: boot panic with qemu, -current guest on a Linux host

2012-09-01 Thread LEVAI Daniel
On p, aug 31, 2012 at 14:44:32 -0700, Chris Cappuccio wrote:
 somehow, your computer thinks C3_CPUID_HAS_RNG is valid, which would
 mean you are running the via_nano_setup routine, which means your cpu
 model is VIA Nano processor, which is all just wrong. wtf?

Yes, this is definitely not a VIA cpu. Passing phenom or host to qemu's
-cpu option produces the same result (as below). Also, it doesn't matter
if I use bsd or bsd.mp.

 
 LEVAI Daniel [l...@ecentrum.hu] wrote:
[...]
  OpenBSD 5.2-current (GENERIC.MP) #6: Mon Aug 27 20:40:45 MDT 2012
  dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
  cpu0: AMD Phenom(tm) II X4 B50 Processor (AuthenticAMD 686-class, 512KB 
  L2 cac
  he) 3.11 GHz
  cpu0: 
  FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
  LUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,3DNOW2,3DNOW,SSE3,CX16,POPCNT,LAHF,CMPLEG,
  SVM,AMCR8,ABM,SSE4A,MASSE,3DNOWP
[...]
  viac3_rnd(d0b025a0,d09e3268,d08f384b,3,4) at viac3_rnd+0x9f
  amd64_errata(d0b025a0,d0b025a0,d0f8,d078eb77,d0b025a0) at 
  amd64_errata+0xb9
  
  cpu_init(d0b025a0,0,2000,0,d0bbbc04) at cpu_init+0x19
  cpu_attach(d164bfc0,d155e400,d0bbbc4c,d03ee29b,d078de30) at cpu_attach+0x297
  config_attach(d164bfc0,d09d45c0,d0bbbc4c,d078cb20,800,0,0,d08f3129,0,1,d09f21c0
  ,100f42,78bfbff) at config_attach+0x1bb
  mpbios_cpu(f51a5a9c,d16737c0,2,1,2) at mpbios_cpu+0x85
  mpbios_scan(d16737c0,d16737c0,d0bbbd60,d03ee29b,0) at mpbios_scan+0x2dc
  config_attach(d164bf80,d09d45a0,d0bbbd60,d0789d30,b) at config_attach+0x1bb
  biosattach(d164bfc0,d164bf80,d0bbbe58,d03ee29b,0) at biosattach+0x517
  config_attach(d164bfc0,d09d4560,d0bbbe58,d05afb60,3000) at 
  config_attach+0x
  1bb
  ddb{0}
  
  
  The host has an AMD Phenom(tm) II X4 B50 Processor.
[...]

Well, running trace in ddb gives me a few more lines, but I doubt it counts:

...
biosattach(d164bfc0,d164bf80,d0bbbe58,d03ee29b,0) at biosattach+0x517
config_attach(d164bfc0,d09d4560,d0bbbe58,d05afb60,3000) at config_attach+0x
1bb
mainbus_attach(0,d164bfc0,0,d09d2020,0) at mainbus_attach+0x4e
config_attach(0,d09d2020,0,0,d0a462c0) at config_attach+0x1bb
config_rootfound(d08f25ac,0,0,d03dea51,0) at config_rootfound+0x46
cpu_configure(d0b025a0,1,1000,cff3f000,1) at cpu_configure+0x29
main(d02004cd,d02004d5,0,0,0) at main+0x3fb

Should I mess around more in ddb?


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: boot panic with qemu, -current guest on a Linux host

2012-08-31 Thread Chris Cappuccio
somehow, your computer thinks C3_CPUID_HAS_RNG is valid, which would mean you 
are running the via_nano_setup routine, which means your cpu model is VIA Nano 
processor, which is all just wrong. wtf?

LEVAI Daniel [l...@ecentrum.hu] wrote:
 Hi!
 
 
 I'm just curious if this is something that could get fixed (or maybe
 danced around):
 
 @linux $ qemu-kvm -enable-kvm -cpu host -smp 2 -m 512 \
   -hda openbsd-current.img \
   -net nic,model=e1000,macaddr=52:54:00:12:34:56 \
   -net tap,ifname=tap0,script=no,downscript=no -curses
 
 iPXE v1.0.0-591-g7aee315
 iPXE (http://ipxe.org) 00:03.0 C900 PCI2.10 PnP PMM+1FFC82A0+1FF882A0 C900
 
 
 Booting from Hard Disk...
 Using drive 0, partition 3.
 Loading...
 probing: pc0 com0 apm pci mem[637K 510M a20=on]
 disk: hd0+
  OpenBSD/i386 BOOT 3.18
 boot
 booting hd0a:/bsd: 8354720+1102340 [52+376992+363706]=0x9b9ca8
 entry point at 0x200120
 
 [ using 741124 bytes of bsd ELF symbol table ]
 Copyright (c) 1982, 1986, 1989, 1991, 1993
 The Regents of the University of California.  All rights reserved.
 Copyright (c) 1995-2012 OpenBSD. All rights reserved.  http://www.OpenBSD.org
 
 OpenBSD 5.2-current (GENERIC.MP) #6: Mon Aug 27 20:40:45 MDT 2012
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
 cpu0: AMD Phenom(tm) II X4 B50 Processor (AuthenticAMD 686-class, 512KB L2 
 cac
 he) 3.11 GHz
 cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
 LUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,3DNOW2,3DNOW,SSE3,CX16,POPCNT,LAHF,CMPLEG,
 SVM,AMCR8,ABM,SSE4A,MASSE,3DNOWP
 real mem  = 536395776 (511MB)
 avail mem = 516698112 (492MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 06/23/99, BIOS32 rev. 0 @ 0xff046, 
 SMBIOS
 rev. 2.4 @ 0xfd900 (11 entries)
 bios0: vendor Bochs version Bochs date 01/01/2007
 bios0: Bochs Bochs
 acpi0 at bios0: rev 0
 acpi0: sleep states S3 S4 S5
 acpi0: tables DSDT FACP SSDT APIC HPET
 acpi0: wakeup devices
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 acpihpet0 at acpi0: 1 Hz
 acpiprt0 at acpi0: bus 0 (PCI0)
 mpbios0 at bios0: Intel MP Specification 1.4
 cpu0 at mainbus0: apid 0 (boot processor)
 kernel: protection fault trap, code=0
 Stopped at  viac3_rnd+0x9f: rdmsr
 viac3_rnd(d0b025a0,d09e3268,d08f384b,3,4) at viac3_rnd+0x9f
 amd64_errata(d0b025a0,d0b025a0,d0f8,d078eb77,d0b025a0) at 
 amd64_errata+0xb9
 
 cpu_init(d0b025a0,0,2000,0,d0bbbc04) at cpu_init+0x19
 cpu_attach(d164bfc0,d155e400,d0bbbc4c,d03ee29b,d078de30) at cpu_attach+0x297
 config_attach(d164bfc0,d09d45c0,d0bbbc4c,d078cb20,800,0,0,d08f3129,0,1,d09f21c0
 ,100f42,78bfbff) at config_attach+0x1bb
 mpbios_cpu(f51a5a9c,d16737c0,2,1,2) at mpbios_cpu+0x85
 mpbios_scan(d16737c0,d16737c0,d0bbbd60,d03ee29b,0) at mpbios_scan+0x2dc
 config_attach(d164bf80,d09d45a0,d0bbbd60,d0789d30,b) at config_attach+0x1bb
 biosattach(d164bfc0,d164bf80,d0bbbe58,d03ee29b,0) at biosattach+0x517
 config_attach(d164bfc0,d09d4560,d0bbbe58,d05afb60,3000) at 
 config_attach+0x
 1bb
 ddb{0}
 
 
 The host has an AMD Phenom(tm) II X4 B50 Processor.
 The guest OpenBSD tries to boot a -current bsd.mp. This works with other
 cpu types specified (like kvm32, or qemu32...), I just wanted to try out
 if the guest would be faster with the 'phenom' or 'host' cpu type.
 
 Has anyone experimented with this kind of or similar setup?
 
 
 Daniel
 
 -- 
 L?VAI D?niel
 PGP key ID = 0x83B63A8F
 Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F

-- 
Keep them laughing half the time, scared of you the other half. And always keep 
them guessing. -- Clair George



boot panic with qemu, -current guest on a Linux host

2012-08-29 Thread LEVAI Daniel
Hi!


I'm just curious if this is something that could get fixed (or maybe
danced around):

@linux $ qemu-kvm -enable-kvm -cpu host -smp 2 -m 512 \
  -hda openbsd-current.img \
  -net nic,model=e1000,macaddr=52:54:00:12:34:56 \
  -net tap,ifname=tap0,script=no,downscript=no -curses

iPXE v1.0.0-591-g7aee315
iPXE (http://ipxe.org) 00:03.0 C900 PCI2.10 PnP PMM+1FFC82A0+1FF882A0 C900


Booting from Hard Disk...
Using drive 0, partition 3.
Loading...
probing: pc0 com0 apm pci mem[637K 510M a20=on]
disk: hd0+
 OpenBSD/i386 BOOT 3.18
boot
booting hd0a:/bsd: 8354720+1102340 [52+376992+363706]=0x9b9ca8
entry point at 0x200120

[ using 741124 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2012 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.2-current (GENERIC.MP) #6: Mon Aug 27 20:40:45 MDT 2012
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: AMD Phenom(tm) II X4 B50 Processor (AuthenticAMD 686-class, 512KB L2 cac
he) 3.11 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
LUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,3DNOW2,3DNOW,SSE3,CX16,POPCNT,LAHF,CMPLEG,
SVM,AMCR8,ABM,SSE4A,MASSE,3DNOWP
real mem  = 536395776 (511MB)
avail mem = 516698112 (492MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/23/99, BIOS32 rev. 0 @ 0xff046, SMBIOS
rev. 2.4 @ 0xfd900 (11 entries)
bios0: vendor Bochs version Bochs date 01/01/2007
bios0: Bochs Bochs
acpi0 at bios0: rev 0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HPET
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
acpihpet0 at acpi0: 1 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
kernel: protection fault trap, code=0
Stopped at  viac3_rnd+0x9f: rdmsr
viac3_rnd(d0b025a0,d09e3268,d08f384b,3,4) at viac3_rnd+0x9f
amd64_errata(d0b025a0,d0b025a0,d0f8,d078eb77,d0b025a0) at amd64_errata+0xb9

cpu_init(d0b025a0,0,2000,0,d0bbbc04) at cpu_init+0x19
cpu_attach(d164bfc0,d155e400,d0bbbc4c,d03ee29b,d078de30) at cpu_attach+0x297
config_attach(d164bfc0,d09d45c0,d0bbbc4c,d078cb20,800,0,0,d08f3129,0,1,d09f21c0
,100f42,78bfbff) at config_attach+0x1bb
mpbios_cpu(f51a5a9c,d16737c0,2,1,2) at mpbios_cpu+0x85
mpbios_scan(d16737c0,d16737c0,d0bbbd60,d03ee29b,0) at mpbios_scan+0x2dc
config_attach(d164bf80,d09d45a0,d0bbbd60,d0789d30,b) at config_attach+0x1bb
biosattach(d164bfc0,d164bf80,d0bbbe58,d03ee29b,0) at biosattach+0x517
config_attach(d164bfc0,d09d4560,d0bbbe58,d05afb60,3000) at config_attach+0x
1bb
ddb{0}


The host has an AMD Phenom(tm) II X4 B50 Processor.
The guest OpenBSD tries to boot a -current bsd.mp. This works with other
cpu types specified (like kvm32, or qemu32...), I just wanted to try out
if the guest would be faster with the 'phenom' or 'host' cpu type.

Has anyone experimented with this kind of or similar setup?


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F