From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: Memory image of kvm guest Date: Wed, 25 Jun 2008 16:04:23 +0200 Message-ID: <48625067.1000601@siemens.com> References: <48623A14.2000601@jikos.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Tomas Kouba Return-path: Received: from lizzard.sbs.de ([194.138.37.39]:24440 "EHLO lizzard.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756249AbYFYOE0 (ORCPT ); Wed, 25 Jun 2008 10:04:26 -0400 In-Reply-To: <48623A14.2000601@jikos.cz> Sender: kvm-owner@vger.kernel.org List-ID: Tomas Kouba wrote: > Hello, > is it possible to see and modify guest memory of the guest running under > kvm? > For example when I know the address of a kernel symbol, can I read the > memory > of the symbol in my application running on host? > > (I am quite new to KVM but similar things are possible in XEN via > xenctrl library calls). Even better: Inherited from QEMU, KVM provides a full-blown gdb backend. So you can do source-level debugging of your guest very comfortably. If you just want to get the content of some memory chunk: QEMU monitor, 'x' (as known from gdb, see also qemu/qemu-doc.html). But modification requires a gdb frontend again. Jan -- Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux