sharing memory
Hy,
I'm writing my thesis on Virtualizzation and it's application to security.
Now for Xen Hypervisor there are a lot of application already developed (like XenRim, XenFit, XenKimono) and very nice ideas... I want to transfer these ideas on Kvm...but is a little bit harder than i thought.
So the firs treat was to do an application in the "host" machine that comunicate in some way with another application in the "guest" machine (the VM). I've tried to use the Libvirt function...but they're designed principally to work with Xen...
So I guest how i can read the memory of a VM ?!
Must I interface my application in the host machine directly with the Qemu ?
There is a better solution supported by KVM to implement shared memory between VMs or between VMs and "host" system?
Thank you for your time
Francesco
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel
Hy,
I'm writing my thesis on Virtualizzation and it's application to security.
Now for Xen Hypervisor there are a lot of application already developed (like XenRim, XenFit, XenKimono) and very nice ideas...
I want to transfer these ideas on Kvm...but is a little bit harder than i thought.
So the firs treat was to do an application in the "host" machine that comunicate in some way with another application in the "guest" machine (the VM).
I've tried to use the Libvirt function...but they're designed principally to work with Xen...
So I guest how i can read the memory of a VM ?!
Must I interface my application in the host machine directly with the Qemu ?
There is a better solution supported by KVM to implement shared memory between VMs or between VMs and "host" system?
You have the following options:
1. A plain tcp/ip from guest to host (you probably considered that ahh)
2. We have a virtual device in qemu called vmchannel it is visible as pci device in the guest.
Currently they communicate using port io, it will soon change to
virtio interace (shared memry).
It is goo for guest-host communication.
3. A 9p interface is developed too by Eric Van Hensbergen, it is work in progress.
You're free to add your own.
Thank you for your time
Francesco
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel
Quoted 11 lines · Dor Laor
You have the following options:
1. A plain tcp/ip from guest to host (you probably considered that ahh)
2. We have a virtual device in qemu called vmchannel it is visible as pci device in the guest.Currently they communicate using port io, it will soon change to
virtio interace (shared memry).It is goo for guest-host communication.
Hi Dor,
How is VMChannel setup to be used? Does it require using the KVM kernel in the guest or is
there a less intrusive way to use it?
Thanks,
Cam
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Quoted 10 lines
Quoted 3 lines
You have the following options:
1. A plain tcp/ip from guest to host (you probably considered that
ahh)
Quoted 6 lines
2. We have a virtual device in qemu called vmchannel it is visible as pci device in the guest.
Currently they communicate using port io, it will soon change to
virtio interace (shared memry).
Quoted 6 lines
Quoted 2 lines
It is goo for guest-host communication.
Hi Dor,
How is VMChannel setup to be used? Does it require using the KVM
kernel
Quoted 3 lines
in the guest or is
there a less intrusive way to use it?
You don't need a special kernel in the guest. You need to use the vmchannel in qemu,
by adding -vmchannel parameter. It requires a format of di:[PCI)VENDOR_ID],QEMU_DEVICE where QEMU_DEVICE is standard qemu device format, e.g. file/socket/..
In the guest you need the matching pci driver. Currently you can you the attached one,
I'm not sure if it is uptodate. Soon we'll post a device that uses virtio for the vmchannel.
-Dor
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel
Quoted 8 lines · Francesco Cipollone
Hy,
I'm writing my thesis on Virtualizzation and it's application to security. Now for Xen Hypervisor there are a lot of application already developed (like XenRim, XenFit, XenKimono) and very nice ideas... I want to transfer these ideas on Kvm...but is a little bit harder than i thought.
So the firs treat was to do an application in the "host" machine that comunicate in some way with another application in the "guest" machine
Quoted 9 lines
(the VM).
I've tried to use the Libvirt function...but they're designed principally to work with Xen...
So I guest how i can read the memory of a VM ?!
Must I interface my application in the host machine directly with the Qemu ?
There is a better solution supported by KVM to implement shared memory between VMs or between VMs and "host" system?
kvm will soon support an interface to mmap() a file to a VM. You could then mmap one file to several virtual machines and thus achieve shared memory. It would also work with system V shared memory.
Signature · 8 lines
Any sufficiently difficult bug is indistinguishable from a feature. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Quoted 6 lines · Dor Laor
In the guest you need the matching pci driver. Currently you can you the attached one,
I'm not sure if it is uptodate. Soon we'll post a device that uses virtio for the vmchannel.
-Dor
Would the existing hypercall.c that is in kvm-userspace/drivers/ work as well. What is the difference?
Thanks,
Cam
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Quoted 8 lines · Cam Macdonell
Quoted 6 lines · Dor Laor
In the guest you need the matching pci driver. Currently you can you the attached one,
I'm not sure if it is uptodate. Soon we'll post a device that uses virtio for the vmchannel.
-Dor
Quoted 6 lines
Would the existing
hypercall.cthat is in kvm-userspace/drivers/ work as well. What is the difference?Thanks,
Cam
The existing hypercall driver should do the work too. Actually I forgot about it when I posted the new one.
The one I sent might be half baked, you might be better of with the drivers/hypercal.c
Anyway we will soon rebase it over virtio.
-Dor
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/