Received: from eggs.gnu.org ([2001:4830:134:3::10]:40260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkEGa-0000ZV-Gu for qemu-devel@nongnu.org; Fri, 31 Oct 2014 11:38:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjtHf-0008WU-Fd for qemu-devel@nongnu.org; Thu, 30 Oct 2014 13:13:24 -0400 Received: from mail-qg0-x230.google.com ([2607:f8b0:400d:c04::230]:40332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjtHf-0008WI-Bb for qemu-devel@nongnu.org; Thu, 30 Oct 2014 13:13:15 -0400 Received: by mail-qg0-f48.google.com with SMTP id q108so4356736qgd.35 for ; Thu, 30 Oct 2014 10:13:13 -0700 (PDT) Received: from [192.168.234.65] (lawn-gw.rutgers.edu. [128.6.168.245]) by mx.google.com with ESMTPSA id a97sm7192440qge.13.2014.10.30.10.13.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 10:13:13 -0700 (PDT) From: Shiva Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <64263E2E-9B84-4F4C-90BF-CC872557128D@gmail.com> Date: Thu, 30 Oct 2014 13:13:11 -0400 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: [Qemu-devel] Memory range addresses involved List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello=20 I am new to qemu development. I wanted to print the corresponding = addresses involved when a memory has been assigned to a virtual machine.=20= For example, when i invoke the following command qemu-system-i386 ubuntu.img -m 1G I need to be able to print the virtual addresses and physical addresses = involved. Like above 1G memory involved: Guest Virtual Addr =3D 0x12345678..to 0x87654321.. Guest Physical Addr =3D 0x23456781..to 0x74536733..(This is the one that = gets mapped to host virtual memory if my understanding is right). Note: Above numbers are just for explanation. When I looked into the source code of qemu, I see that this size = whatever we are mentioning here is assigned as a part of |ram_addr_t| = block. But I am not able to find as how to proceed to find the offset = for this size.Kindly help me in this regard at the earliest.