From owner-freebsd-virtualization@freebsd.org Fri Jul 19 16:02:43 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8E6FEA61C7 for ; Fri, 19 Jul 2019 16:02:43 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mx1.shrew.net (mx1.shrew.net [38.97.5.131]) (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 B944C73C54 for ; Fri, 19 Jul 2019 16:02:42 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mail.shrew.net (mail.shrew.prv [10.24.10.20]) by mx1.shrew.net (8.15.2/8.15.2) with ESMTP id x6JFt4Gs015687 for ; Fri, 19 Jul 2019 10:55:04 -0500 (CDT) (envelope-from mgrooms@shrew.net) Received: from [10.16.32.30] (unknown [172.126.77.65]) by mail.shrew.net (Postfix) with ESMTPSA id 901E6195E0A for ; Fri, 19 Jul 2019 10:54:59 -0500 (CDT) Subject: Re: New video BIOS for bhyve To: freebsd-virtualization@freebsd.org References: <0fdcfd552f08bb1b135a45a79a6e91b4@www.gulbra.net> From: Matthew Grooms Message-ID: Date: Fri, 19 Jul 2019 10:54:58 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <0fdcfd552f08bb1b135a45a79a6e91b4@www.gulbra.net> Content-Language: en-US X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.shrew.net [10.24.10.10]); Fri, 19 Jul 2019 10:55:04 -0500 (CDT) X-Rspamd-Queue-Id: B944C73C54 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of mgrooms@shrew.net designates 38.97.5.131 as permitted sender) smtp.mailfrom=mgrooms@shrew.net X-Spamd-Result: default: False [-3.17 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; URI_COUNT_ODD(1.00)[3]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; MX_GOOD(-0.01)[cached: mx1.shrew.net]; NEURAL_HAM_SHORT(-0.90)[-0.901,0]; RCVD_IN_DNSWL_NONE(0.00)[131.5.97.38.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; IP_SCORE(-0.96)[ip: (-9.32), ipnet: 38.0.0.0/8(2.81), asn: 174(1.77), country: US(-0.05)]; DMARC_NA(0.00)[shrew.net]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:174, ipnet:38.0.0.0/8, country:US]; MID_RHS_MATCH_FROM(0.00)[] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Fri, 19 Jul 2019 16:02:43 -0000 On 7/19/2019 10:41 AM, Henrik Gulbrandsen wrote: > On 2019-07-19 16:43, Matthew Grooms wrote: >>> There was already a video BIOS with dormant support for VGA, but I >>> could >>> not use that, because the X11 int10 module runs a real-mode x86 >>> emulator >>> that aborts when it tries to enter the C code running in protected >>> mode. >> >> I wonder if this could be related to your CPU not supporting >> unrestricted guest mode? I know it's required for some bhyve >> functionality. > > No, the int10 module runs the BIOS code on a software CPU. > Protected mode is simply not implemented. > I see. Well, I assume the code you reference worked without aborting at some point. There is a related SOC idea project mentioned here ... https://wiki.freebsd.org/SummerOfCodeIdeas#VGA_emulation_improvements_for_bhyve -Matthew