From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W638h-0004jY-G1 for qemu-devel@nongnu.org; Wed, 22 Jan 2014 14:07:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W638Z-0001c8-3Q for qemu-devel@nongnu.org; Wed, 22 Jan 2014 14:07:03 -0500 Received: from mail-qc0-x234.google.com ([2607:f8b0:400d:c01::234]:63353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W638Y-0001c4-V5 for qemu-devel@nongnu.org; Wed, 22 Jan 2014 14:06:55 -0500 Received: by mail-qc0-f180.google.com with SMTP id i17so1084004qcy.25 for ; Wed, 22 Jan 2014 11:06:54 -0800 (PST) Sender: Richard Henderson Message-ID: <52E016C9.3010608@twiddle.net> Date: Wed, 22 Jan 2014 11:06:49 -0800 From: Richard Henderson MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] best way to implement a "memclear" type instruction in TCG? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , QEMU Developers On 01/22/2014 10:58 AM, Peter Maydell wrote: > In theory we could just find the pointer to the memory QEMU is backing > the guest RAM with and call memset on it... That's more or less what we do for the s390 insn XC. See mem_helper.c, especially mvc_fast_memset. r~