Received: from eggs.gnu.org ([2001:4830:134:3::10]:53519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm0u0-0006XY-DR for qemu-devel@nongnu.org; Mon, 19 Sep 2016 11:54:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bm0tx-0005sb-8G for qemu-devel@nongnu.org; Mon, 19 Sep 2016 11:54:40 -0400 Received: from gateway30.websitewelcome.com ([192.185.196.18]:56570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm0tx-0005jX-2B for qemu-devel@nongnu.org; Mon, 19 Sep 2016 11:54:37 -0400 Received: from cm2.websitewelcome.com (cm2.websitewelcome.com [192.185.178.13]) by gateway30.websitewelcome.com (Postfix) with ESMTP id B6810E6A2CE3E for ; Mon, 19 Sep 2016 10:54:22 -0500 (CDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) From: Stephen Bates In-Reply-To: <20160913022827.GD15800@lemon> Date: Mon, 19 Sep 2016 08:54:19 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <65FEEFCD-F0CB-4030-BA2D-3EDA87687158@raithlin.com> References: <20160913022827.GD15800@lemon> Subject: Re: [Qemu-devel] (no subject) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-devel@nongnu.org Hi Fam Thanks! Yes gdb provides one approach but I was wondering if there was somet= hing built in to QEMU monitor. Another application I can see for this would be to inject errors into the me= mory, This will be useful for testing new NVDIMM-P technology that builds NV= DIMMs out of material that is less reliable than DRAM... Cheers Stephen > On Sep 12, 2016, at 7:28 PM, Fam Zheng wrote: >=20 >> On Mon, 09/12 16:23, Stephen Bates wrote: >> Hi >=20 > Hi Stephen, >=20 >>=20 >> I sent this to qemu-discuss with no success so resending to qemu-devel. >>=20 >> I am doing some very low level OS design work and wanted to be able to >> alter some values in the physical memory of my QEMU guest. I can see quit= e >> a few ways to print/dump both physical and virtual addresses but nothing >> that can alter arbitrary physical/virtual addresses? >>=20 >> Does such a feature exist in Qemu and if it does are there pointers to >> documentation for it? >=20 > Have you tried the builtin gdbstub in QEMU? You can add "-s" to the QEMU > command line and then connect to it from gdb with "target remote :1234". T= here > you can inspect or change memory more easily. >=20 > Fam >=20 >>=20 >> I do see that we can use file backing for very large memory regions via >> the memory-backing-file option but I am not really trying to alter massiv= e >> regions of memory in this case. >>=20 >> Cheers >>=20 >> Stephen Bates >>=20