Re: Mapping guest memory from another process?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 03, 2013 at 07:56:33PM -0400, Cutter 409 wrote:
> I'm working on a tool that needs the ability to map the physical
> memory of a virtual machine into its own address space. With Xen, I
> can simply call xc_map_foreign_pages().
> 
> Is there something similar for KVM? So far, I can only figure out how
> to do it if I were the process that created the VM (then I could
> mmap() the handle of the virtual machine). Is there a way for an
> outside process to do this?

You can get QEMU to do a shared mapping of a files as guest RAM using
-mem-path and -mem-prealloc, see man qemu.

Stefan
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux