qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] KVMonitor-like technology
@ 2015-12-02  3:24 Mike Guidry
  0 siblings, 0 replies; only message in thread
From: Mike Guidry @ 2015-12-02  3:24 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1568 bytes --]

I have a project where I would like to inspect a QEMU Guest.  I came across
KVMonitor and really like some of the concepts.

I'd like to use shared memory/file backed memory to read guest memory
immediately using CR3 for Guest->Host memory address translation.

Has anyone has experience doing this?  I first changed qemu_try_memalign()
and realized that its for local memory allocations, usually.  I proceeded
to change other functions, and came across qemu_anon_ram_alloc() which
seemed to be where the larger (gigabyte) allocations were heading.  I
enabled prealloc and finally began getting the allocations I wanted...

I'm curious if anyone has any other suggestions than to use shm_open()
here.  I wanted to quickly hack this together and realized I cannot list
shared memory regions on OSX, so I dumped them to files.  My question is:
 I realize there is file-back for 'Large TLB,' although I didn't much
success converting that function for non-TLB based file systems.  I
considered doing mkramfs (with modified kernel for larger amounts, such as
larger shared memory is necessary), and putting the file system on top.  I
really haven't decided if I wanted to add another 'type' of backend, or to
quickly modify one of these.

 Am i missing some feature that may allow me to handle this quickly?  I
even considered using LD_PRELOAD to quickly hijack and enable all memory
under shared memory for reading guest VM memory from another process.  I
just have to ensure I have the CR3 context at all times of the particular
process I'd like to  read.

Thanks,
Mike

[-- Attachment #2: Type: text/html, Size: 1776 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-02  3:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-02  3:24 [Qemu-devel] KVMonitor-like technology Mike Guidry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).