From owner-freebsd-virtualization@freebsd.org Thu Mar 30 12:59:28 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 45CB5D24286 for ; Thu, 30 Mar 2017 12:59:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2839A145 for ; Thu, 30 Mar 2017 12:59:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v2UCxRGs082715 for ; Thu, 30 Mar 2017 12:59:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 215972] Bhyve crash more then 1 cpu AMD Date: Thu, 30 Mar 2017 12:59:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: nbe@renzel.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Mar 2017 12:59:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215972 Nils Beyer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nbe@renzel.net --- Comment #8 from Nils Beyer --- Same behaviour here on a Ryzen 1700 and "FreeBSD 12.0-CURRENT #0 334829e6c(drm-next)-dirty". Setting vCPU count greater than 1 leads to random lock-ups of the Windows 10 VM. Two, sometimes three of the vCPUs are creating 100% load on the host system. Keyboard input via VNC doesn't work at all. "bhyve" itself writes: ---------------------------------------------------------------------------= ---- fbuf frame buffer base: 0xa43200000 [sz 16777216] rdmsr to register 0xc0010114 on vcpu 0 rdmsr to register 0xc0010114 on vcpu 1 wrmsr to register 0x10(0) on vcpu 1 rdmsr to register 0xc0010114 on vcpu 2 wrmsr to register 0x10(0) on vcpu 2 rdmsr to register 0xc0010114 on vcpu 3 wrmsr to register 0x10(0) on vcpu 3 wrmsr to register 0x10(0xcc75fcd2078) on vcpu 3 wrmsr to register 0x10(0xcc75fcd2078) on vcpu 0 wrmsr to register 0x10(0xcc75fcd2078) on vcpu 1 wrmsr to register 0x10(0xcc75fcd2078) on vcpu 2 atkbd data buffer full atkbd data buffer full atkbd data buffer full atkbd data buffer full atkbd data buffer full atkbd data buffer full atkbd data buffer full atkbd data buffer full atkbd data buffer full atkbd data buffer full atkbd data buffer full atkbd data buffer full atkbd data buffer full ---------------------------------------------------------------------------= ---- sysctls: ---------------------------------------------------------------------------= ---- #sysctl hw.vmm hw.vmm.npt.pmap_flags: 507 hw.vmm.svm.num_asids: 32768 hw.vmm.svm.disable_npf_assist: 0 hw.vmm.svm.features: 113919 hw.vmm.svm.vmcb_clean: 959 hw.vmm.vmx.vpid_alloc_failed: 0 hw.vmm.vmx.posted_interrupt_vector: -1 hw.vmm.vmx.cap.posted_interrupts: 0 hw.vmm.vmx.cap.virtual_interrupt_delivery: 0 hw.vmm.vmx.cap.invpcid: 0 hw.vmm.vmx.cap.monitor_trap: 0 hw.vmm.vmx.cap.unrestricted_guest: 0 hw.vmm.vmx.cap.pause_exit: 0 hw.vmm.vmx.cap.halt_exit: 0 hw.vmm.vmx.initialized: 0 hw.vmm.vmx.cr4_zeros_mask: 0 hw.vmm.vmx.cr4_ones_mask: 0 hw.vmm.vmx.cr0_zeros_mask: 0 hw.vmm.vmx.cr0_ones_mask: 0 hw.vmm.ept.pmap_flags: 0 hw.vmm.vrtc.flag_broken_time: 1 hw.vmm.ppt.devices: 0 hw.vmm.iommu.enable: 1 hw.vmm.iommu.initialized: 0 hw.vmm.bhyve_xcpuids: 136 hw.vmm.topology.cpuid_leaf_b: 1 hw.vmm.topology.cores_per_package: 4 hw.vmm.topology.threads_per_core: 1 hw.vmm.create: beavis hw.vmm.destroy: beavis hw.vmm.trace_guest_exceptions: 0 hw.vmm.ipinum: 251 hw.vmm.halt_detection: 1 ---------------------------------------------------------------------------= ---- started "bhyve" with: ---------------------------------------------------------------------------= ---- bhyve -c 4 -m 8G \=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 -w -H -A -P \=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 -s 0,amd_hostbridge \=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 -s 1,lpc \=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 -s 2,ahci-cd,/mnt/ryzen/iso/Windows10-PRO.de.iso \=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 -s 3,ahci-hd,/mnt/ryzen/vms/${NAME}/lun0.img \=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 -s 9,e1000,tap${ID} \=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 -s 29,fbuf,tcp=3D0.0.0.0:5901,w=3D1024,h=3D768,wait \=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 -s 30,xhci,tablet \=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 -l com1,/dev/nmdm0A \=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 ${NAME}=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 ---------------------------------------------------------------------------= ---- looking at the "ktrace -p" file, I see lots of: ---------------------------------------------------------------------------= ---- [...] 3826 vcpu 0 CALL ioctl(0x3,0xc0907601,0x7fffddbebe30) 3826 vcpu 3 RET ioctl 0 3826 vcpu 0 RET ioctl 0 3826 vcpu 0 CALL ioctl(0x3,0xc0907601,0x7fffddbebe30) 3826 vcpu 3 CALL ioctl(0x3,0xc0907601,0x7fffdd3e7e30) 3826 vcpu 2 CALL ioctl(0x3,0xc0907601,0x7fffdd5e8e30) 3826 vcpu 3 RET ioctl 0 3826 vcpu 3 CALL ioctl(0x3,0xc0907601,0x7fffdd3e7e30) 3826 vcpu 2 RET ioctl 0 3826 vcpu 3 RET ioctl 0 3826 vcpu 3 CALL ioctl(0x3,0xc0907601,0x7fffdd3e7e30) 3826 vcpu 0 RET ioctl 0 3826 vcpu 3 RET ioctl 0 3826 vcpu 3 CALL ioctl(0x3,0xc0907601,0x7fffdd3e7e30) 3826 vcpu 0 CALL ioctl(0x3,0xc0907601,0x7fffddbebe30) 3826 vcpu 3 RET ioctl 0 3826 vcpu 0 RET ioctl 0 3826 vcpu 2 CALL ioctl(0x3,0xc0907601,0x7fffdd5e8e30) 3826 vcpu 2 RET ioctl 0 3826 vcpu 3 CALL ioctl(0x3,0xc0907601,0x7fffdd3e7e30) 3826 vcpu 3 RET ioctl 0 3826 vcpu 0 CALL ioctl(0x3,0xc0907601,0x7fffddbebe30) 3826 vcpu 2 CALL ioctl(0x3,0xc0907601,0x7fffdd5e8e30) 3826 vcpu 2 RET ioctl 0 [...] ---------------------------------------------------------------------------= ---- Anything I can do to help debugging? --=20 You are receiving this mail because: You are the assignee for the bug.=