From owner-freebsd-virtualization@freebsd.org Wed Apr 12 08:58:40 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 A7196D38BB1 for ; Wed, 12 Apr 2017 08:58:40 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id C9394164; Wed, 12 Apr 2017 08:58:39 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id LAA01660; Wed, 12 Apr 2017 11:57:32 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1cyE5k-000Brj-K5; Wed, 12 Apr 2017 11:57:32 +0300 To: freebsd-virtualization@FreeBSD.org, Peter Grehan From: Andriy Gapon Subject: dos in bhyve Message-ID: <30abb88b-0c86-2dd6-902b-ee0867ce380d@FreeBSD.org> Date: Wed, 12 Apr 2017 11:56:11 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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: Wed, 12 Apr 2017 08:58:40 -0000 I wonder if anyone was able to run any DOS variant in bhyve. I tried FreeDOS using BHYVE_UEFI_CSM firmware, but it seems to just hang. I also tried adding a frame buffer device, it seems that there is some reaction to key presses (RET) sent via VNC, but the screen stays black, so it's impossible to tell if there are any prompts and what happens. In any case, after a few RET-s the guest crashes with a triple fault. Seems like that happens when it enables paging. Some data from the VM state after the crash. Last instructions: mov %eax,%cr0 mov $0x110000,%edi <=========== triple fault here cr0[0] 0x0000000080000033 cr3[0] 0x0000000000115000 cr4[0] 0x00000000000006a0 I wonder if it's the value of CR4 that causes the trouble (PAE bit set). -- Andriy Gapon