From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LFkNA-0000Pu-7m for qemu-devel@nongnu.org; Thu, 25 Dec 2008 02:11:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LFkN7-0000Pd-Um for qemu-devel@nongnu.org; Thu, 25 Dec 2008 02:11:06 -0500 Received: from [199.232.76.173] (port=44426 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LFkN7-0000Pa-L8 for qemu-devel@nongnu.org; Thu, 25 Dec 2008 02:11:05 -0500 Received: from mx2.redhat.com ([66.187.237.31]:33946) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LFkN7-0005fk-7v for qemu-devel@nongnu.org; Thu, 25 Dec 2008 02:11:05 -0500 Message-ID: <49533131.4010006@redhat.com> Date: Thu, 25 Dec 2008 09:07:29 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Merging improvements from VirtualBox OSE into qemu? References: <49522F8D.4000203@turnkeylinux.org> <200812241336.01702.paul@codesourcery.com> <4952484F.6010406@turnkeylinux.org> In-Reply-To: <4952484F.6010406@turnkeylinux.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: turnkey-discuss@lists.turnkeylinux.org, Paul Brook Liraz Siri wrote: > I don't really understand the implementation VirtualBox uses to > accomplish running 64bit VM guests on a 32bit host. Is it possible > VirtualBox have figured out how to run 64bit instructions on a host > running in 32bit mode? (otherwise they'll need to be doing some kind of > emulation) > > There's nothing magical about it. Most likely they switch to 64-bit mode immediately before entering the guest, and switch back immediately after the guest exits. In effect their turning the host OS into a hybrid 32/64 bit kernel (with the vast majority of the code remaining 32-bits). -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.