From owner-freebsd-virtualization@freebsd.org Sun Jul 31 17:27:43 2016 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 40EC5BA98DE for ; Sun, 31 Jul 2016 17:27:43 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 04AFD165A for ; Sun, 31 Jul 2016 17:27:42 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id 2FB4020AC12B for ; Mon, 1 Aug 2016 03:27:26 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id 278322804D8 for ; Mon, 1 Aug 2016 03:27:26 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id iaHkBVaKAciA for ; Mon, 1 Aug 2016 03:27:26 +1000 (AEST) Received: from [192.168.1.169] (c-50-131-190-8.hsd1.ca.comcast.net [50.131.190.8]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id 460CC2804D7; Mon, 1 Aug 2016 03:27:23 +1000 (AEST) Subject: Re: Bhyve To: kumara rathnavel , freebsd-virtualization@freebsd.org References: From: Peter Grehan Message-ID: Date: Sun, 31 Jul 2016 10:27:28 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=c5Dpel1l c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=KizCzvWM+ZNP07iIuOu4gA==:17 a=N659UExz7-8A:10 a=7z1cN_iqozsA:10 a=Ns2tSlmEzMZskS1gC0kA:9 wl=host:3 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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: Sun, 31 Jul 2016 17:27:43 -0000 Hi Kumar, > I have just started developing something in FreeBSD. I have done few > changes in the memory part. Before that i just want to confirm that for the > guest machines for the system memory there is only one object used. If the > memory is greater than he lowmem remaining is allocated in highmem. The > memory between these two is used for MMIO which is a separate object. It isn't really an object but a hole in the address space. Any access to that region results in an EPT-violation exit from the VM, and a trip through the bhyve instruction emulation path. > When I did few changes FreeBSD vm booted fine. But when i tried windows it was > vm_run error and value is EFAULT. The EFAULT is because of the GPA that > belongs to the MMIO region and the exact value is 4276093104 and fails in > the function vm_handle_inst_emul. I would like to know why is this > different in both the cases. 4276093104 is 0xfee000b0, which is local APIC EOI register. There haven't been any issues with accessing this from Windows in the past - is this an earlier version than Vista ? (e.g. server 2k3) later, Peter.