Re: Mapping guest memory from another process?

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

 



Thanks, I'll try that. Do you know of any way to get at the VCPU
structure from another process? I'm looking to have an event triggered
from the guest which will notify my application. In Xen I use an event
channel, and then I can call a function to retrieve the relevant VCPU
context.

On Wed, Sep 4, 2013 at 10:35 AM, Cutter 409 <cutter409@xxxxxxxxx> wrote:
> Thanks, I'll try that. Do you know of any way to get at the VCPU structure
> from another process? I'm looking to have an event triggered from the guest
> which will notify my application. In Xen I use an event channel, and then I
> can call a function to retrieve the relevant VCPU context.
>
>
> On Wed, Sep 4, 2013 at 4:47 AM, Stefan Hajnoczi <stefanha@xxxxxxxxx> wrote:
>>
>> 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