Bug 200397 - [bhyve] bhyve crashes in Linux KVM on AMD Host
Summary: [bhyve] bhyve crashes in Linux KVM on AMD Host
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.1-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 20:17 UTC by Joseph Mulloy
Modified: 2015-10-20 23:50 UTC (History)
1 user (show)

See Also:


Attachments
Full Output from FreeBSD bhyve KVM Guest hypervisor (4.29 KB, text/plain)
2015-05-22 20:17 UTC, Joseph Mulloy
no flags Details
Info about the openSUSE13.2 KVM Host System (3.60 KB, text/plain)
2015-05-22 20:19 UTC, Joseph Mulloy
no flags Details
Full Output from FreeBSD bhyve KVM Guest hypervisor (11.37 KB, text/plain)
2015-05-22 20:20 UTC, Joseph Mulloy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Mulloy 2015-05-22 20:17:53 UTC
Created attachment 157052 [details]
Full Output from FreeBSD bhyve KVM Guest hypervisor

I setup a KVM guest on my AMD openSUSE 13.2 desktop to play around with bhyve on CURRENT/STABLE. On the latest snapshots (20150520) for both 10.2-STABLE and 11-CURRENT bhyve crashes when I try to start a 10.1-RELEASE guest. It's possible that there is some setting I can tweak on the VM to prevent the crash. I'll attach the full output from the FreeBSD guest I'm trying to run bhyve on as well as info about the Linux host system.
                                         
root@bhyve10:/usr/local/vmrc/vm/vm0 # /usr/sbin/bhyve -c 1 -m 1024 -A -H -s 0,hostbridge -s 2,ahci-hd,/usr/local/vmrc/vm//vm0/vm0.img -s 3:0,virtio-net,tap8000 -s 5,lpc -l com1,stdio vm0                                                                                
                                                                                                                                     
Copyright (c) 1992-2014 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 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014
    root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
CPU: AMD Phenom(tm) II X6 1090T Processor (3214.12-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x100fa0  Family = 0x10  Model = 0xa  Stepping = 0
  Features=0x1783ab7f<FPU,VME,DE,PSE,TSC,MSR,PAE,CX8,APIC,SEP,PGE,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x80802001<SSE3,CX16,POPCNT,HV>
  AMD Features=0xe6500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f3<LAHF,CMP,CR8,ABM,SSE4A,MAS,Prefetch>
real memory  = 1073741824 (1024 MB)
avail memory = 1008115712 (961 MB)
vm exit[0]
        reason          SVM
        rip             0xffffffff80e392e8
        inst_length     0
        exitcode        0x400
        exitinfo1       0x4
        exitinfo2       0xfee000f0
Abort (core dumped)
root@bhyve10:/usr/local/vmrc/vm/vm0 #
Comment 1 Joseph Mulloy 2015-05-22 20:19:11 UTC
Created attachment 157053 [details]
Info about the openSUSE13.2 KVM Host System
Comment 2 Joseph Mulloy 2015-05-22 20:20:20 UTC
Created attachment 157054 [details]
Full Output from FreeBSD bhyve KVM Guest hypervisor

Added additional info
Comment 3 gmaessch 2015-10-07 14:32:09 UTC
20 19 18 17 16 14 ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16
12 11 10 9 8 Assertion failed: (iov[0].iov_len >= tlen), function rx_iov_trim, file /usr/src/usr.sbin/bhyve/pci_virtio_net.c, line 270.
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2015-10-20 23:50:23 UTC
Canonicalize assignment.