From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFRjH-00086H-Jd for qemu-devel@nongnu.org; Sun, 16 Oct 2011 10:30:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFRjG-00058k-ER for qemu-devel@nongnu.org; Sun, 16 Oct 2011 10:30:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFRjG-00058c-5I for qemu-devel@nongnu.org; Sun, 16 Oct 2011 10:30:18 -0400 Message-ID: <4E9AEA75.3090801@redhat.com> Date: Sun, 16 Oct 2011 16:30:13 +0200 From: Avi Kivity MIME-Version: 1.0 References: <4E9A3F22.6030105@rwth-aachen.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Cooperative BBL execution due to binary translation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: "felix.matenaar@rwth-aachen" , qemu-devel@nongnu.org On 10/16/2011 02:06 PM, Blue Swirl wrote: > > > > c = get_executable_memory(1Gb) > > set(c, OPCODE_NOP, sizeof c) > > jmp_into c > > Not really, we don't care very much about such timing problems. > Translation is limited so that the intermediate buffer does not > overflow, also page boundaries may not be crossed. If an instruction > may cause a fault, it will terminate the block. On x86 an instruction may cross page boundary. So an instruction that begins in one page may be interpreted differently depending on the contents of the second page. But I see that the code handles it cleverly. -- error compiling committee.c: too many arguments to function