From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CVpcp-0007Xb-RI for qemu-devel@nongnu.org; Sun, 21 Nov 2004 06:11:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CVpck-0007Wm-1Q for qemu-devel@nongnu.org; Sun, 21 Nov 2004 06:11:22 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVpcj-0007Wf-8F for qemu-devel@nongnu.org; Sun, 21 Nov 2004 06:11:17 -0500 Received: from [64.233.184.195] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CVpTL-0001Uq-Ed for qemu-devel@nongnu.org; Sun, 21 Nov 2004 06:01:35 -0500 Received: by wproxy.gmail.com with SMTP id 69so222806wra for ; Sun, 21 Nov 2004 03:01:34 -0800 (PST) Message-ID: Date: Sun, 21 Nov 2004 12:01:34 +0100 From: Piotras Subject: Re: [Qemu-devel] Qemu code copy In-Reply-To: <419EE215.5000701@chesstrain.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20041119181328.2C58638183@rekin11.go2.pl> <419EE215.5000701@chesstrain.com> Reply-To: Piotras , 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 Hi! Code copy works by executing original code blocks (no translation is performed) when possible. If the block contains memory access instruction, it can be executed in code-copy mode only when virtual memory of emulated CPU is visible as qemu process virtual memory. This is what qemu-fast does with mmap. I think that in practice nearly all code blocks contain memory access instructions. If so, it's not worth to enable code-copy for qemu-soft. Probably it's possible to build simple code translator that would translate only memory access instructions and execute most of the other instructions natively. Regards, Piotrek On Fri, 19 Nov 2004 22:20:05 -0800, Shivkumar Shivaji wrote: > Is there anything preventing qemu regular (not qemu-fast) from using > code-copy? Currently, code copy only works on hard mmu. Is there a way > to enable it on the regular qemu?