Re: [kvm-devel] sharing memory
Cam Macdonell wrote: Dor Laor wrote: 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 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/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] sharing memory
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? 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 hypercall.c Description: hypercall.c - 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 kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] sharing memory
Francesco Cipollone wrote: 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? 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. -- 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/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] 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? 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 kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] sharing memory
Dor Laor wrote: 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/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] 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 kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel