From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3EsW-00068v-Vr for qemu-devel@nongnu.org; Mon, 22 Dec 2014 21:07:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3EsP-0008Fm-F1 for qemu-devel@nongnu.org; Mon, 22 Dec 2014 21:07:16 -0500 Received: from mail-pd0-f195.google.com ([209.85.192.195]:41390 helo=pdbfp1) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3EsP-0008FZ-8Y for qemu-devel@nongnu.org; Mon, 22 Dec 2014 21:07:09 -0500 Received: by pdbfp1 with SMTP id fp1so5496622pdb.8 for ; Mon, 22 Dec 2014 18:07:08 -0800 (PST) Message-ID: <5498CE42.4040509@gmail.com> Date: Tue, 23 Dec 2014 10:06:58 +0800 From: Zhang Haoyu MIME-Version: 1.0 References: <5497972A.4040203@gmail.com> <5497DD11.8040101@gmail.com> <5497E2E5.3030805@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [question] How to get the guest physical memory usage from host? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrey Korolyov Cc: qemu-devel On 2014/12/22 17:33, Andrey Korolyov wrote: >> Yes, it should depends on guest os implementation, >> because physical memory is managed by OS, which have the full knowledge of memory usage, >> so I'm afraid that windows dose not friendly support it. >> Could you detail the peeking techniques mentioned above? >> >> Thanks, >> Zhang Haoyu > > Generally I meant virDomainMemoryPeek, but nothing prevents you to > write code with same functionality, if libvirt usage is not preferred, > it is only about asking monitor for chunks of memory and parse them in > a proper way. > Thanks, Andrey.