From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzLpo-0005Cz-M8 for qemu-devel@nongnu.org; Tue, 24 Jun 2014 04:12:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzLpf-00056T-LA for qemu-devel@nongnu.org; Tue, 24 Jun 2014 04:12:08 -0400 Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:42038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzLpf-00056C-E9 for qemu-devel@nongnu.org; Tue, 24 Jun 2014 04:11:59 -0400 Received: by mail-lb0-f176.google.com with SMTP id w7so5949198lbi.21 for ; Tue, 24 Jun 2014 01:11:57 -0700 (PDT) Message-ID: <53A932CC.9070908@gmail.com> Date: Tue, 24 Jun 2014 12:11:56 +0400 From: Sergey Fedorov MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Writing into guest memory from qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Shubham Gupta , qemu-devel@nongnu.org Hi, Maybe you are trying to write into read-only, device MMIO or unassigned address? You can launch qemu with '-S' and then try 'info mtree' qemu monitor command to see the memory mapping. // Sergey On 24.06.2014 11:20, Shubham Gupta wrote: > Hello > > I am attempting to write into the guest memory state (before the guest > is launched) using the cpu_physical_memory_write function. While some > values are being correctly written into the guest memory (confirmed by > a cpu_physical_memory_read just after the write), some are not. Is > there an explanation for this behavior? Or am I using the wrong > function to accomplish what I want? Thanks in advance. > > Shubham Gupta