Re: VMs not booting (was: How to build with VMM_DEBUG)

2018-06-27 Thread Ax0n
Trying to spin up a diskless vmm with the latest bsd.rd:
[axon@transient vmm]$ doas vmctl start foo -c -b /bsd.rd -m 512m -i 1 -n
local
vmctl: starting without disks
Connected to /dev/ttyp3 (speed 115200)

[EOT]
[axon@transient vmm]$ dmesg | tail
Guest EPTP = 0x112d3001e
vmm_alloc_vpid: allocated VPID/ASID 1
vmm_fpurestore: guest attempted to set invalid bits in xcr0
vmm_free_vpid: freed VPID/ASID 1
vm_impl_init_vmx: created vm_map @ 0x80730600
vm_resetcpu: resetting vm 4 vcpu 0 to power on defaults
Guest EPTP = 0x112d3001e
vmm_alloc_vpid: allocated VPID/ASID 1
vmm_fpurestore: guest attempted to set invalid bits in xcr0
vmm_free_vpid: freed VPID/ASID 1


On Wed, Jun 27, 2018 at 4:56 AM, Ax0n  wrote:

> I don't have another box to run these on, but with Hexdump, it looks like
> these two particular VMs are:
> OpenBSD 6.1-current (GENERIC) #54: Fri Apr 14 13:51:22 MDT 2017
> OpenBSD 6.3 (GENERIC) #1: Sat Apr 21 13:49:17 CEST 2018
>
> Neither one boots.
>
>
> On Wed, Jun 27, 2018 at 12:58 AM, Mike Larkin 
> wrote:
>
>> On Tue, Jun 26, 2018 at 08:22:08AM -0500, Ax0n wrote:
>> > Finally got around to recompiling again. Sorry for the noise between the
>> > two VM start attempts -- I suspended it to head to the office.
>> >
>> > OpenBSD 6.3-current (GENERIC.MP) #1: Tue Jun 26 06:58:23 CDT 2018
>> > a...@transient.attlocal.net:/mnt/src/sys/arch/amd64/compile/
>> GENERIC.MP
>> > real mem = 8227655680 (7846MB)
>> > avail mem = 7902162944 (7536MB)
>> > mpath0 at root
>> > scsibus0 at mpath0: 256 targets
>> > mainbus0 at root
>> > bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe9d90 (47 entries)
>> > bios0: vendor Acer version "V1.07" date 11/07/2011
>> > bios0: Acer Aspire 5733Z
>> > acpi0 at bios0: rev 2
>> > acpi0: sleep states S0 S3 S4 S5
>> > acpi0: tables DSDT FACP ASF! HPET APIC MCFG SLIC BOOT ASPT DMAR SSDT
>> SSDT
>> > SSDT
>> > acpi0: wakeup devices AZAL(S3) P0P1(S4) EHC1(S3) USB1(S3) USB2(S3)
>> USB3(S3)
>> > USB4(S3) USB5(S3) USB6(S3) USB7(S3) RP01(S4) PEG5(S4)
>> > acpitimer0 at acpi0: 3579545 Hz, 24 bits
>> > acpihpet0 at acpi0: 14318179 Hz
>> > acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
>> > cpu0 at mainbus0: apid 0 (boot processor)
>> > cpu0: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.97 MHz
>> > cpu0:
>> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMO
>> V,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,
>> SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16
>> ,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,
>> LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
>> > cpu0: 256KB 64b/line 8-way L2 cache
>> > cpu0: smt 0, core 0, package 0
>> > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
>> > cpu0: apic clock running at 133MHz
>> > cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
>> > cpu1 at mainbus0: apid 1 (application processor)
>> > cpu1: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.43 MHz
>> > cpu1:
>> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMO
>> V,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,
>> SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16
>> ,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,
>> LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
>> > cpu1: 256KB 64b/line 8-way L2 cache
>> > cpu1: smt 1, core 0, package 0
>> > cpu2 at mainbus0: apid 4 (application processor)
>> > cpu2: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.43 MHz
>> > cpu2:
>> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMO
>> V,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,
>> SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16
>> ,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,
>> LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
>> > cpu2: 256KB 64b/line 8-way L2 cache
>> > cpu2: smt 0, core 2, package 0
>> > cpu3 at mainbus0: apid 5 (application processor)
>> > cpu3: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.43 MHz
>> > cpu3:
>> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMO
>> V,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,
>> SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16
>> ,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,
>> LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
>> > cpu3: 256KB 64b/line 8-way L2 cache
>> > cpu3: smt 1, core 2, package 0
>> > ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
>> > , remapped to apid 2
>> > acpimcfg0 at acpi0 addr 0xe000, bus 0-255
>> > acpiprt0 at acpi0: bus 0 (PCI0)
>> > acpiprt1 at acpi0: bus -1 (P0P2)
>> > acpiprt2 at acpi0: bus 3 (P0P1)
>> > acpiprt3 at acpi0: bus 1 (RP01)
>> > acpiprt4 at acpi0: bus 2 (RP02)
>> > acpiprt5 at acpi0: bus -1 (RP03)
>> > acpiprt6 at acpi0: bus -1 (RP04)
>> > acpiprt7 at acpi0: bus -1 (RP05)
>> > acpiprt8 at acpi0: bus -1 (RP06)
>> > acpiprt9 at acpi0: bus -1 (RP07)
>> > acpiprt10 at acpi0: bus -1 (RP08)
>> > acpiprt11 at acpi0: bus -1 (PEG5)
>> > acpiec0 at acpi0
>> > acpicpu0 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
>> > acpicpu1 at 

Re: VMs not booting (was: How to build with VMM_DEBUG)

2018-06-27 Thread Ax0n
I don't have another box to run these on, but with Hexdump, it looks like
these two particular VMs are:
OpenBSD 6.1-current (GENERIC) #54: Fri Apr 14 13:51:22 MDT 2017
OpenBSD 6.3 (GENERIC) #1: Sat Apr 21 13:49:17 CEST 2018

Neither one boots.


On Wed, Jun 27, 2018 at 12:58 AM, Mike Larkin  wrote:

> On Tue, Jun 26, 2018 at 08:22:08AM -0500, Ax0n wrote:
> > Finally got around to recompiling again. Sorry for the noise between the
> > two VM start attempts -- I suspended it to head to the office.
> >
> > OpenBSD 6.3-current (GENERIC.MP) #1: Tue Jun 26 06:58:23 CDT 2018
> > a...@transient.attlocal.net:/mnt/src/sys/arch/amd64/compile/
> GENERIC.MP
> > real mem = 8227655680 (7846MB)
> > avail mem = 7902162944 (7536MB)
> > mpath0 at root
> > scsibus0 at mpath0: 256 targets
> > mainbus0 at root
> > bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe9d90 (47 entries)
> > bios0: vendor Acer version "V1.07" date 11/07/2011
> > bios0: Acer Aspire 5733Z
> > acpi0 at bios0: rev 2
> > acpi0: sleep states S0 S3 S4 S5
> > acpi0: tables DSDT FACP ASF! HPET APIC MCFG SLIC BOOT ASPT DMAR SSDT SSDT
> > SSDT
> > acpi0: wakeup devices AZAL(S3) P0P1(S4) EHC1(S3) USB1(S3) USB2(S3)
> USB3(S3)
> > USB4(S3) USB5(S3) USB6(S3) USB7(S3) RP01(S4) PEG5(S4)
> > acpitimer0 at acpi0: 3579545 Hz, 24 bits
> > acpihpet0 at acpi0: 14318179 Hz
> > acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> > cpu0 at mainbus0: apid 0 (boot processor)
> > cpu0: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.97 MHz
> > cpu0:
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
> CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,
> PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,
> CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,
> LONG,LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
> > cpu0: 256KB 64b/line 8-way L2 cache
> > cpu0: smt 0, core 0, package 0
> > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> > cpu0: apic clock running at 133MHz
> > cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
> > cpu1 at mainbus0: apid 1 (application processor)
> > cpu1: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.43 MHz
> > cpu1:
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
> CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,
> PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,
> CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,
> LONG,LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
> > cpu1: 256KB 64b/line 8-way L2 cache
> > cpu1: smt 1, core 0, package 0
> > cpu2 at mainbus0: apid 4 (application processor)
> > cpu2: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.43 MHz
> > cpu2:
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
> CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,
> PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,
> CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,
> LONG,LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
> > cpu2: 256KB 64b/line 8-way L2 cache
> > cpu2: smt 0, core 2, package 0
> > cpu3 at mainbus0: apid 5 (application processor)
> > cpu3: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.43 MHz
> > cpu3:
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
> CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,
> PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,
> CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,
> LONG,LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
> > cpu3: 256KB 64b/line 8-way L2 cache
> > cpu3: smt 1, core 2, package 0
> > ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
> > , remapped to apid 2
> > acpimcfg0 at acpi0 addr 0xe000, bus 0-255
> > acpiprt0 at acpi0: bus 0 (PCI0)
> > acpiprt1 at acpi0: bus -1 (P0P2)
> > acpiprt2 at acpi0: bus 3 (P0P1)
> > acpiprt3 at acpi0: bus 1 (RP01)
> > acpiprt4 at acpi0: bus 2 (RP02)
> > acpiprt5 at acpi0: bus -1 (RP03)
> > acpiprt6 at acpi0: bus -1 (RP04)
> > acpiprt7 at acpi0: bus -1 (RP05)
> > acpiprt8 at acpi0: bus -1 (RP06)
> > acpiprt9 at acpi0: bus -1 (RP07)
> > acpiprt10 at acpi0: bus -1 (RP08)
> > acpiprt11 at acpi0: bus -1 (PEG5)
> > acpiec0 at acpi0
> > acpicpu0 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> > acpicpu1 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> > acpicpu2 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> > acpicpu3 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> > "pnp0c14" at acpi0 not configured
> > acpibat0 at acpi0: BAT0 model "Li_Ion_4000mA " serial 78da type Lion oem
> > "SANYO "
> > acpiac0 at acpi0: AC unit online
> > acpibtn0 at acpi0: PWRB
> > acpibtn1 at acpi0: LID0
> > acpibtn2 at acpi0: SLPB
> > acpicmos0 at acpi0
> > "ETD0500" at acpi0 not configured
> > "PNP0C14" at acpi0 not configured
> > "PNP0C14" at acpi0 not configured
> > acpivideo0 at acpi0: GFX0
> > acpivout0 at acpivideo0: DD03
> > acpivideo1 at acpi0: VGA_
> > cpu0: Enhanced SpeedStep 2527 MHz: speeds: 2533, 2399, 2266, 2133, 1999,
> > 1866, 1733, 1599, 1466, 1333, 1199 MHz
> > pci0 at mainbus0 

Re: VMs not booting (was: How to build with VMM_DEBUG)

2018-06-26 Thread Mike Larkin
On Tue, Jun 26, 2018 at 08:22:08AM -0500, Ax0n wrote:
> Finally got around to recompiling again. Sorry for the noise between the
> two VM start attempts -- I suspended it to head to the office.
> 
> OpenBSD 6.3-current (GENERIC.MP) #1: Tue Jun 26 06:58:23 CDT 2018
> a...@transient.attlocal.net:/mnt/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8227655680 (7846MB)
> avail mem = 7902162944 (7536MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe9d90 (47 entries)
> bios0: vendor Acer version "V1.07" date 11/07/2011
> bios0: Acer Aspire 5733Z
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP ASF! HPET APIC MCFG SLIC BOOT ASPT DMAR SSDT SSDT
> SSDT
> acpi0: wakeup devices AZAL(S3) P0P1(S4) EHC1(S3) USB1(S3) USB2(S3) USB3(S3)
> USB4(S3) USB5(S3) USB6(S3) USB7(S3) RP01(S4) PEG5(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.97 MHz
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 133MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.43 MHz
> cpu1:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 1, core 0, package 0
> cpu2 at mainbus0: apid 4 (application processor)
> cpu2: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.43 MHz
> cpu2:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
> cpu2: 256KB 64b/line 8-way L2 cache
> cpu2: smt 0, core 2, package 0
> cpu3 at mainbus0: apid 5 (application processor)
> cpu3: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.43 MHz
> cpu3:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
> cpu3: 256KB 64b/line 8-way L2 cache
> cpu3: smt 1, core 2, package 0
> ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
> , remapped to apid 2
> acpimcfg0 at acpi0 addr 0xe000, bus 0-255
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (P0P2)
> acpiprt2 at acpi0: bus 3 (P0P1)
> acpiprt3 at acpi0: bus 1 (RP01)
> acpiprt4 at acpi0: bus 2 (RP02)
> acpiprt5 at acpi0: bus -1 (RP03)
> acpiprt6 at acpi0: bus -1 (RP04)
> acpiprt7 at acpi0: bus -1 (RP05)
> acpiprt8 at acpi0: bus -1 (RP06)
> acpiprt9 at acpi0: bus -1 (RP07)
> acpiprt10 at acpi0: bus -1 (RP08)
> acpiprt11 at acpi0: bus -1 (PEG5)
> acpiec0 at acpi0
> acpicpu0 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> acpicpu1 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> acpicpu2 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> acpicpu3 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> "pnp0c14" at acpi0 not configured
> acpibat0 at acpi0: BAT0 model "Li_Ion_4000mA " serial 78da type Lion oem
> "SANYO "
> acpiac0 at acpi0: AC unit online
> acpibtn0 at acpi0: PWRB
> acpibtn1 at acpi0: LID0
> acpibtn2 at acpi0: SLPB
> acpicmos0 at acpi0
> "ETD0500" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> acpivideo0 at acpi0: GFX0
> acpivout0 at acpivideo0: DD03
> acpivideo1 at acpi0: VGA_
> cpu0: Enhanced SpeedStep 2527 MHz: speeds: 2533, 2399, 2266, 2133, 1999,
> 1866, 1733, 1599, 1466, 1333, 1199 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core Host" rev 0x02
> inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x02
> drm0 at inteldrm0
> intagp0 at inteldrm0
> agp0 at intagp0: aperture at 0xc000, size 0x1000
> inteldrm0: msi
> inteldrm0: 1366x768, 32bpp
> wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> "Intel 3400 MEI" rev 0x06 at pci0 dev 22 function 0 not configured
> ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: 

Re: VMs not booting (was: How to build with VMM_DEBUG)

2018-06-26 Thread Ax0n
Finally got around to recompiling again. Sorry for the noise between the
two VM start attempts -- I suspended it to head to the office.

OpenBSD 6.3-current (GENERIC.MP) #1: Tue Jun 26 06:58:23 CDT 2018
a...@transient.attlocal.net:/mnt/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8227655680 (7846MB)
avail mem = 7902162944 (7536MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe9d90 (47 entries)
bios0: vendor Acer version "V1.07" date 11/07/2011
bios0: Acer Aspire 5733Z
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP ASF! HPET APIC MCFG SLIC BOOT ASPT DMAR SSDT SSDT
SSDT
acpi0: wakeup devices AZAL(S3) P0P1(S4) EHC1(S3) USB1(S3) USB2(S3) USB3(S3)
USB4(S3) USB5(S3) USB6(S3) USB7(S3) RP01(S4) PEG5(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.97 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 133MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.43 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.43 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2527.43 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 2, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
, remapped to apid 2
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P2)
acpiprt2 at acpi0: bus 3 (P0P1)
acpiprt3 at acpi0: bus 1 (RP01)
acpiprt4 at acpi0: bus 2 (RP02)
acpiprt5 at acpi0: bus -1 (RP03)
acpiprt6 at acpi0: bus -1 (RP04)
acpiprt7 at acpi0: bus -1 (RP05)
acpiprt8 at acpi0: bus -1 (RP06)
acpiprt9 at acpi0: bus -1 (RP07)
acpiprt10 at acpi0: bus -1 (RP08)
acpiprt11 at acpi0: bus -1 (PEG5)
acpiec0 at acpi0
acpicpu0 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
acpicpu1 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
acpicpu2 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
acpicpu3 at acpi0: C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
"pnp0c14" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "Li_Ion_4000mA " serial 78da type Lion oem
"SANYO "
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID0
acpibtn2 at acpi0: SLPB
acpicmos0 at acpi0
"ETD0500" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD03
acpivideo1 at acpi0: VGA_
cpu0: Enhanced SpeedStep 2527 MHz: speeds: 2533, 2399, 2266, 2133, 1999,
1866, 1733, 1599, 1466, 1333, 1199 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core Host" rev 0x02
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x02
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0: msi
inteldrm0: 1366x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 3400 MEI" rev 0x06 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 2 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 3400 HD Audio" rev 0x05: msi
azalia0: codecs: Realtek ALC272
audio0 at 

Re: VMs not booting (was: How to build with VMM_DEBUG)

2018-06-24 Thread Mike Larkin
On Sun, Jun 24, 2018 at 01:41:47AM -0500, Ax0n wrote:
> On Sat, Jun 23, 2018 at 3:54 PM, Ax0n  wrote:
> 
> >
> > FWIW, that patch didn't apply cleanly to a fresh pull of the tree from
> > GitHub. I know it's not OFFICIALLY -CURRENT for realsies but it's what I
> > have been using on this laptop for months. It sounds like it was probably
> > patched against -STABLE? I didn't read the entire thread on bugs@. I have
> > tried with 3 daily snapshots in a row and I'm having the same problem. I
> > haven't actually fired up vmm in a few weeks, so I'm not sure exactly when
> > it quit working. I'm re-building with VMM_DEBUG first.
> >
> > Mike, I'll send all relevant info (dmesg, vmd -dvvv, vm.conf) to bugs@
> > once I have it, unless this sounds like an ongoing thing you probably have
> > on your radar already. I'm not in a huge rush, so I can wait a bit if you
> > think you have something that'll make it into -CURRENT in a while.
> >
> 
> Following up and cc bugs@ I built the system with VMM_DEBUG enabled.
> 

This does not look like the output from a kernel with VMM_DEBUG enabled. You'll
be seeing all sorts of debug output to dmesg as the VM starts, runs, and
ultimately in your case aborts.

-ml

> >Synopsis:  vmm(4) VMs fail to start: ioctl failed: Invalid argument
> >Category:  amd64
> >Environment:
> System  : OpenBSD 6.3
> Details : OpenBSD 6.3-current (GENERIC.MP) #49: Sat Jun 23
> 09:32:05 MDT 2018
>  dera...@amd64.openbsd.org:
> /usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
> Architecture: OpenBSD.amd64
> Machine : amd64
> >Description:
> VMs fail to boot.
> [axon@transient ~]$ doas vmd -dvvv
> startup
> /etc/vm.conf:4: switch "local" registered
> /etc/vm.conf:8: switch "internal" registered
> /etc/vm.conf:12: switch "wired" registered
> vm_register: registering vm 1
> /etc/vm.conf:28: vm "OBSD-Stable.vm" registered (disabled)
> vm_register: registering vm 2
> /etc/vm.conf:41: vm "OBSD-Stable-alt.vm" registered (disabled)
> vm_register: registering vm 3
> /etc/vm.conf:53: vm "OBSDSnap64.vm" registered (disabled)
> config_setconfig: setting config
> vm_priv_brconfig: interface bridge0 description switch1-local
> vm_priv_brconfig: interface bridge1 description switch2-internal
> vm_priv_brconfig: interface bridge0 description switch3-wired
> vmd_configure: not creating vm OBSD-Stable.vm (disabled)
> vmd_configure: not creating vm OBSD-Stable-alt.vm (disabled)
> vmd_configure: not creating vm OBSDSnap64.vm (disabled)
> config_getconfig: priv retrieving config
> config_getconfig: control retrieving config
> config_getconfig: vmm retrieving config
> vm_opentty: vm OBSDSnap64.vm tty /dev/ttyp3 uid 1000 gid 4 mode 620
> vm_register: registering vm 3
> vm_priv_ifconfig: interface tap0 description vm3-if0-OBSDSnap64.vm
> vm_priv_ifconfig: switch "local" interface bridge0 add tap0
> OBSDSnap64.vm: started vm 3 successfully, tty /dev/ttyp3
> loadfile_bios: loaded BIOS image
> run_vm: initializing hardware for vm OBSDSnap64.vm
> pic_set_elcr: setting level triggered mode for irq 3
> pic_set_elcr: setting level triggered mode for irq 5
> pic_set_elcr: setting level triggered mode for irq 6
> virtio_init: vm "OBSDSnap64.vm" vio0 lladdr fe:e1:ba:d0:eb:ac
> pic_set_elcr: setting level triggered mode for irq 7
> run_vm: starting vcpu threads for vm OBSDSnap64.vm
> vcpu_reset: resetting vcpu 0 for vm 2
> run_vm: waiting on events for VM OBSDSnap64.vm
> vcpu_run_loop: vm 2 / vcpu 0 run ioctl failed: Invalid argument
> vmm_sighdlr: handling signal 20
> vmm_sighdlr: attempting to terminate vm 3
> terminate_vm: terminating vmid 2
> vmm_sighdlr: calling vm_remove
> vm_remove: removing vm id 3 from running config
> vm_remove: calling vm_stop
> vm_stop: stopping vm 3
> vmd_dispatch_vmm: handling TERMINATE_EVENT for vm id 3 ret 22
> vmd_dispatch_vmm: about to stop vm id 3
> vm_stop: stopping vm 3
> vm_opentty: vm OBSDSnap64.vm tty /dev/ttyp4 uid 1000 gid 4 mode 620
> vm_register: registering vm 3
> vm_priv_ifconfig: interface tap0 description vm3-if0-OBSDSnap64.vm
> vm_priv_ifconfig: switch "local" interface bridge0 add tap0
> OBSDSnap64.vm: started vm 3 successfully, tty /dev/ttyp4
> loadfile_bios: loaded BIOS image
> run_vm: initializing hardware for vm OBSDSnap64.vm
> pic_set_elcr: setting level triggered mode for irq 3
> pic_set_elcr: setting level triggered mode for irq 5
> pic_set_elcr: setting level triggered mode for irq 6
> virtio_init: vm "OBSDSnap64.vm" vio0 lladdr fe:e1:ba:d0:eb:ac
> pic_set_elcr: setting level triggered mode for irq 7
> run_vm: starting vcpu threads for vm OBSDSnap64.vm
> vcpu_reset: resetting vcpu 0 for vm 3
> run_vm: waiting on events for VM OBSDSnap64.vm
> vcpu_run_loop: vm 3 / vcpu 0 run ioctl failed: Invalid argument
> vmm_sighdlr: handling signal 20
> vmm_sighdlr: attempting to terminate vm 3
> terminate_vm: terminating vmid 3
> vmm_sighdlr: calling vm_remove
> vm_remove: removing vm id 3 from running config
> 

VMs not booting (was: How to build with VMM_DEBUG)

2018-06-24 Thread Ax0n
On Sat, Jun 23, 2018 at 3:54 PM, Ax0n  wrote:

>
> FWIW, that patch didn't apply cleanly to a fresh pull of the tree from
> GitHub. I know it's not OFFICIALLY -CURRENT for realsies but it's what I
> have been using on this laptop for months. It sounds like it was probably
> patched against -STABLE? I didn't read the entire thread on bugs@. I have
> tried with 3 daily snapshots in a row and I'm having the same problem. I
> haven't actually fired up vmm in a few weeks, so I'm not sure exactly when
> it quit working. I'm re-building with VMM_DEBUG first.
>
> Mike, I'll send all relevant info (dmesg, vmd -dvvv, vm.conf) to bugs@
> once I have it, unless this sounds like an ongoing thing you probably have
> on your radar already. I'm not in a huge rush, so I can wait a bit if you
> think you have something that'll make it into -CURRENT in a while.
>

Following up and cc bugs@ I built the system with VMM_DEBUG enabled.

>Synopsis:  vmm(4) VMs fail to start: ioctl failed: Invalid argument
>Category:  amd64
>Environment:
System  : OpenBSD 6.3
Details : OpenBSD 6.3-current (GENERIC.MP) #49: Sat Jun 23
09:32:05 MDT 2018
 dera...@amd64.openbsd.org:
/usr/src/sys/arch/amd64/compile/GENERIC.MP

Architecture: OpenBSD.amd64
Machine : amd64
>Description:
VMs fail to boot.
[axon@transient ~]$ doas vmd -dvvv
startup
/etc/vm.conf:4: switch "local" registered
/etc/vm.conf:8: switch "internal" registered
/etc/vm.conf:12: switch "wired" registered
vm_register: registering vm 1
/etc/vm.conf:28: vm "OBSD-Stable.vm" registered (disabled)
vm_register: registering vm 2
/etc/vm.conf:41: vm "OBSD-Stable-alt.vm" registered (disabled)
vm_register: registering vm 3
/etc/vm.conf:53: vm "OBSDSnap64.vm" registered (disabled)
config_setconfig: setting config
vm_priv_brconfig: interface bridge0 description switch1-local
vm_priv_brconfig: interface bridge1 description switch2-internal
vm_priv_brconfig: interface bridge0 description switch3-wired
vmd_configure: not creating vm OBSD-Stable.vm (disabled)
vmd_configure: not creating vm OBSD-Stable-alt.vm (disabled)
vmd_configure: not creating vm OBSDSnap64.vm (disabled)
config_getconfig: priv retrieving config
config_getconfig: control retrieving config
config_getconfig: vmm retrieving config
vm_opentty: vm OBSDSnap64.vm tty /dev/ttyp3 uid 1000 gid 4 mode 620
vm_register: registering vm 3
vm_priv_ifconfig: interface tap0 description vm3-if0-OBSDSnap64.vm
vm_priv_ifconfig: switch "local" interface bridge0 add tap0
OBSDSnap64.vm: started vm 3 successfully, tty /dev/ttyp3
loadfile_bios: loaded BIOS image
run_vm: initializing hardware for vm OBSDSnap64.vm
pic_set_elcr: setting level triggered mode for irq 3
pic_set_elcr: setting level triggered mode for irq 5
pic_set_elcr: setting level triggered mode for irq 6
virtio_init: vm "OBSDSnap64.vm" vio0 lladdr fe:e1:ba:d0:eb:ac
pic_set_elcr: setting level triggered mode for irq 7
run_vm: starting vcpu threads for vm OBSDSnap64.vm
vcpu_reset: resetting vcpu 0 for vm 2
run_vm: waiting on events for VM OBSDSnap64.vm
vcpu_run_loop: vm 2 / vcpu 0 run ioctl failed: Invalid argument
vmm_sighdlr: handling signal 20
vmm_sighdlr: attempting to terminate vm 3
terminate_vm: terminating vmid 2
vmm_sighdlr: calling vm_remove
vm_remove: removing vm id 3 from running config
vm_remove: calling vm_stop
vm_stop: stopping vm 3
vmd_dispatch_vmm: handling TERMINATE_EVENT for vm id 3 ret 22
vmd_dispatch_vmm: about to stop vm id 3
vm_stop: stopping vm 3
vm_opentty: vm OBSDSnap64.vm tty /dev/ttyp4 uid 1000 gid 4 mode 620
vm_register: registering vm 3
vm_priv_ifconfig: interface tap0 description vm3-if0-OBSDSnap64.vm
vm_priv_ifconfig: switch "local" interface bridge0 add tap0
OBSDSnap64.vm: started vm 3 successfully, tty /dev/ttyp4
loadfile_bios: loaded BIOS image
run_vm: initializing hardware for vm OBSDSnap64.vm
pic_set_elcr: setting level triggered mode for irq 3
pic_set_elcr: setting level triggered mode for irq 5
pic_set_elcr: setting level triggered mode for irq 6
virtio_init: vm "OBSDSnap64.vm" vio0 lladdr fe:e1:ba:d0:eb:ac
pic_set_elcr: setting level triggered mode for irq 7
run_vm: starting vcpu threads for vm OBSDSnap64.vm
vcpu_reset: resetting vcpu 0 for vm 3
run_vm: waiting on events for VM OBSDSnap64.vm
vcpu_run_loop: vm 3 / vcpu 0 run ioctl failed: Invalid argument
vmm_sighdlr: handling signal 20
vmm_sighdlr: attempting to terminate vm 3
terminate_vm: terminating vmid 3
vmm_sighdlr: calling vm_remove
vm_remove: removing vm id 3 from running config
vm_remove: calling vm_stop
vm_stop: stopping vm 3
vmd_dispatch_vmm: handling TERMINATE_EVENT for vm id 3 ret 22
vmd_dispatch_vmm: about to stop vm id 3
vm_stop: stopping vm 3


Contents of vm.conf:

switch "local" {
interface bridge0
}

switch "internal" {
interface bridge1
}

switch "wired" {
interface bridge0
}

# OpenBSD Stable
vm "OBSD-Stable.vm" {