On Wed, Apr 05, 2017 at 12:46:27PM +1000, Jason Tubnor wrote:
> Hi,
> 
> Just wondering if anyone else is seeing the same issue I am booting a
> 6.1-snapshot in bhyve?  In preparation for the 6.1 pending release, I have
> tried to spin up 6.1-snap to iron out any issues in bhyve but I don't get
> very far into the installation process:
> 
> ----
> 
> Copyright (c) 1982, 1986, 1989, 1991, 1993
>         The Regents of the University of California.  All rights reserved.
> Copyright (c) 1995-2017 OpenBSD. All rights reserved.
> https://www.OpenBSD.org
> 
> OpenBSD 6.1 (RAMDISK_CD) #19: Sat Apr  1 13:49:18 MDT 2017
>     dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
> real mem = 251658240 (240MB)
> avail mem = 240402432 (229MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf101f (10 entries)
> bios0: vendor BHYVE version "1.00" date 03/14/2014
> bios0: bhyve BHYVE
> acpi0 at bios0: rev 2
> acpi0: tables DSDT APIC FACP HPET MCFG
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Xeon(R) CPU E5-1620 v3 @ 3.50GHz, 3491.87 MHz
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
> H,MMX,FXSR,SSE,SSE2,SS,HTT,PBE,SSE3,PCLMUL,DTES64,DS-CPL,SSSE3,SDBG,FMA3,CX16
> ,xTPR,PCID,DCA,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,PA
> GE1GB,LONG,LAHF,ABM,ITSC,FSGSBASE,BMI1,AVX2,BMI2,ERMS,INVPCID,ARAT
> cpu0: 256KB 64b/line 8-way L2 cache
> rdmsr to register 0xc80 on vcpu 0
>                                  fatal protection fault in supervisor mode
> trap type 4 code 0 rip ffffffff811c1d17 cs 8 rflags 202 cr2  0 cpl e rsp
> ffffffff81a05940
> panic: trap type 4, code=0, pc=ffffffff811c1d17
> 
> The operating system has halted.
> Please press any key to reboot.
> 
> -----
> 
> Is anyone able to shed light on this?  I can confirm that 6.0-stable
> installed and runs fine as a guest on this host:

That MSR is IA32_DEBUG_INTERFACE.

        /*
         * Attempt to disable Silicon Debug and lock the configuration
         * if it's enabled and unlocked.
         */
        if (!strcmp(cpu_vendor, "GenuineIntel") &&
            (cpu_ecxfeature & CPUIDECX_SDBG)) {
                uint64_t msr;

                msr = rdmsr(IA32_DEBUG_INTERFACE);
                if ((msr & IA32_DEBUG_INTERFACE_ENABLE) &&
                    (msr & IA32_DEBUG_INTERFACE_LOCK) == 0) {
                        msr &= IA32_DEBUG_INTERFACE_MASK;
                        msr |= IA32_DEBUG_INTERFACE_LOCK;
                        wrmsr(IA32_DEBUG_INTERFACE, msr);
                } else if (msr & IA32_DEBUG_INTERFACE_ENABLE)
                        printf("%s: cannot disable silicon debug\n",
                            ci->ci_dev->dv_xname);
        }

If they don't support SDBG they should be masking the cpuid bit.

> 
> -----
> OpenBSD 6.0 (GENERIC.MP) #2: Wed Oct 12 07:46:27 AEDT 2016
>     mrbuil...@cybermen.ar18.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 2130030592 (2031MB)
> avail mem = 2061062144 (1965MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x7fb6a000 (10 entries)
> bios0: vendor BHYVE version "1.00" date 03/14/2014
> acpi0 at bios0: rev 2
> acpi0: sleep states S5
> acpi0: tables DSDT FACP HPET APIC MCFG SPCR
> acpi0: wakeup devices
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpihpet0 at acpi0: 10000000 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Xeon(R) CPU E5-1620 v3 @ 3.50GHz, 3491.95 MHz
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
> H,MMX,FXSR,SSE,SSE2,SS,HTT,PBE,SSE3,PCLMUL,DTES64,DS-CPL,SSSE3,FMA3,CX16,xTPR
> ,PCID,DCA,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,PAGE1GB
> ,LONG,LAHF,ABM,ITSC,FSGSBASE,BMI1,AVX2,BMI2,ERMS,INVPCID,ARAT
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: CPU supports MTRRs but not enabled by BIOS
> cpu0: apic clock running at 134MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Xeon(R) CPU E5-1620 v3 @ 3.50GHz, 3499.42 MHz
> cpu1:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
> H,MMX,FXSR,SSE,SSE2,SS,HTT,PBE,SSE3,PCLMUL,DTES64,DS-CPL,SSSE3,FMA3,CX16,xTPR
> ,PCID,DCA,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,PAGE1GB
> ,LONG,LAHF,ABM,ITSC,FSGSBASE,BMI1,AVX2,BMI2,ERMS,INVPCID,ARAT
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 0, package 1
> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
> acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
> acpiprt0 at acpi0: bus 0 (PC00)
> "PNP0303" at acpi0 not configured
> "PNP0F03" at acpi0 not configured
> "PNP0501" at acpi0 not configured
> "PNP0501" at acpi0 not configured
> pvbus0 at mainbus0: bhyve
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 unknown vendor 0x1275 product 0x1275 rev 0x00
> unknown vendor 0xfb5d product 0x40fb (class display subclass VGA, rev 0x00)
> at pci0 dev 2 function 0 not configured
> ahci0 at pci0 dev 3 function 0 "Intel 82801H AHCI" rev 0x00: apic 2 int 16,
> AHCI 1.3
> ahci0: port 0: 6.0Gb/s
> scsibus1 at ahci0: 32 targets
> cd0 at scsibus1 targ 0 lun 0: <BHYVE, BHYVE DVD-ROM, 001> ATAPI 5/cdrom
> removable
> ahci1 at pci0 dev 4 function 0 "Intel 82801H AHCI" rev 0x00: apic 2 int 17,
> AHCI 1.3
> ahci1: port 0: 6.0Gb/s
> scsibus2 at ahci1: 32 targets
> sd0 at scsibus2 targ 0 lun 0: <ATA, BHYVE SATA DISK, 001> SCSI3 0/direct
> fixed t10.ATA_BHYVE_SATA_DISK_BHYVE-4AF5-4FB1-76AA
> sd0: 9216MB, 512 bytes/sector, 18874368 sectors, thin
> virtio0 at pci0 dev 5 function 0 "Qumranet Virtio Network" rev 0x00
> vio0 at virtio0: address 00:a0:98:81:81:c6
> virtio0: msix shared
> virtio1 at pci0 dev 6 function 0 "Qumranet Virtio Network" rev 0x00
> vio1 at virtio1: address 00:a0:98:6d:12:d0
> virtio1: msix shared
> pcib0 at pci0 dev 31 function 0 "Intel 82371SB ISA" rev 0x00
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> pms0 at pckbc0 (aux slot)
> wsmouse0 at pms0 mux 0
> efifb0 at mainbus0: 1920x1200, 32bpp
> wsdisplay0 at efifb0 mux 1: console (std, vt100 emulation), using wskbd0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> root on sd0a (e5bd839db3a8f165.a) swap on sd0b dump on sd0b
> -----
> 
> Thanks in advance!

Reply via email to