From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8E30C7618F for ; Fri, 19 Jul 2019 19:42:56 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9BE562085A for ; Fri, 19 Jul 2019 19:42:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9BE562085A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bugs.launchpad.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:47606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoXp7-0001ZM-5o for qemu-devel@archiver.kernel.org; Fri, 19 Jul 2019 14:41:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41442) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoXob-0001FK-Rh for qemu-devel@nongnu.org; Fri, 19 Jul 2019 14:41:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoXoS-0007o9-9f for qemu-devel@nongnu.org; Fri, 19 Jul 2019 14:41:05 -0400 Received: from indium.canonical.com ([91.189.90.7]:51438) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hoXoR-0007i3-PX for qemu-devel@nongnu.org; Fri, 19 Jul 2019 14:40:59 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1hoXoI-0004Us-6F for ; Fri, 19 Jul 2019 18:40:50 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 2E47F2E8070 for ; Fri, 19 Jul 2019 18:40:50 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 19 Jul 2019 18:30:55 -0000 From: Roman Bolshakov <1818937@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=New; importance=Undecided; assignee=None; X-Launchpad-Bug-Tags: crash hvf macos X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: bwibking cuser2 roolebo X-Launchpad-Bug-Reporter: Chen Zhang (cuser2) X-Launchpad-Bug-Modifier: Roman Bolshakov (roolebo) References: <155192472106.28960.15645485731508389788.malonedeb@chaenomeles.canonical.com> Message-Id: <156356105528.9330.9881638879450652903.malone@chaenomeles.canonical.com> X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="19010"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 0ca76a147b3ff5c212aff690ca090bc0210a9e4a X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 91.189.90.7 Subject: [Qemu-devel] [Bug 1818937] Re: Crash with HV_ERROR on macOS host X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1818937 <1818937@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" I'm looking into the issue... HV_ERROR is a high-level return value and doesn't give enough details about the nature of the error. The error is returned from vmexit handler in AppleHV.kext (which implements kernel part of Hypervisor.framework). Perhaps we should extract more data from the VMCS and print it before aborting the execution. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1818937 Title: Crash with HV_ERROR on macOS host Status in QEMU: New Bug description: On macOS host running Windows 10 guest, qemu crashed with error message: Error: HV_ERROR. Host: macOS Mojave 10.14.3 (18D109) Late 2014 Mac mini presumably Core i5= 4278U. QEMU: git commit a3e3b0a7bd5de211a62cdf2d6c12b96d3c403560 QEMU parameter: qemu-system-x86_64 -m 3000 -drive file=3Ddisk.img,if=3Dvi= rtio,discard=3Dunmap -accel hvf -soundhw hda -smp 3 thread list Process 56054 stopped thread #1: tid =3D 0x2ffec8, 0x00007fff48d0805a vImage`vLookupTable_Pla= nar16 + 970, queue =3D 'com.apple.main-thread' thread #2: tid =3D 0x2ffecc, 0x00007fff79d6d7de libsystem_kernel.dylib`= __psynch_cvwait + 10 thread #3: tid =3D 0x2ffecd, 0x00007fff79d715aa libsystem_kernel.dylib`= __select + 10 thread #4: tid =3D 0x2ffece, 0x00007fff79d71d9a libsystem_kernel.dylib`= __sigwait + 10 * thread #6: tid =3D 0x2ffed0, 0x00007fff79d7023e libsystem_kernel.dylib`= __pthread_kill + 10, stop reason =3D signal SIGABRT thread #7: tid =3D 0x2ffed1, 0x00007fff79d6d7de libsystem_kernel.dylib`= __psynch_cvwait + 10 thread #8: tid =3D 0x2ffed2, 0x00007fff79d6d7de libsystem_kernel.dylib`= __psynch_cvwait + 10 thread #11: tid =3D 0x2fff34, 0x00007fff79d6a17a libsystem_kernel.dylib= `mach_msg_trap + 10, name =3D 'com.apple.NSEventThread' thread #30: tid =3D 0x300c04, 0x00007fff79e233f8 libsystem_pthread.dyli= b`start_wqthread thread #31: tid =3D 0x300c16, 0x00007fff79e233f8 libsystem_pthread.dyli= b`start_wqthread thread #32: tid =3D 0x300c17, 0x0000000000000000 thread #33: tid =3D 0x300c93, 0x00007fff79d6d7de libsystem_kernel.dylib= `__psynch_cvwait + 10 = Crashed thread: * thread #6, stop reason =3D signal SIGABRT * frame #0: 0x00007fff79d7023e libsystem_kernel.dylib`__pthread_kill + = 10 frame #1: 0x00007fff79e26c1c libsystem_pthread.dylib`pthread_kill + 2= 85 frame #2: 0x00007fff79cd91c9 libsystem_c.dylib`abort + 127 frame #3: 0x000000010baa476d qemu-system-x86_64`assert_hvf_ok(ret=3D<= unavailable>) at hvf.c:106 [opt] frame #4: 0x000000010baa4c8f qemu-system-x86_64`hvf_vcpu_exec(cpu=3D0= x00007f8e5283de00) at hvf.c:681 [opt] frame #5: 0x000000010b988423 qemu-system-x86_64`qemu_hvf_cpu_thread_f= n(arg=3D0x00007f8e5283de00) at cpus.c:1636 [opt] frame #6: 0x000000010bd9dfce qemu-system-x86_64`qemu_thread_start(arg= s=3D) at qemu-thread-posix.c:502 [opt] frame #7: 0x00007fff79e24305 libsystem_pthread.dylib`_pthread_body + = 126 frame #8: 0x00007fff79e2726f libsystem_pthread.dylib`_pthread_start += 70 frame #9: 0x00007fff79e23415 libsystem_pthread.dylib`thread_start + 13 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1818937/+subscriptions