Re: Using VMCI in the kernel

2008-12-05 Thread Min Xu (Hsu)
On Fri, 05 Dec 2008 Cam Macdonell wrote : > That is interesting. Linux has a new feature in 2.6.27 called kernel > shared memory that merges identical pages and marks them COW. If a > write occurs, then those pages are no longer shared and the writing VM > gets their own copy. At high level,

Re: Using VMCI in the kernel

2008-12-05 Thread Cam Macdonell
Min Xu (Hsu) wrote: > On Fri, 05 Dec 2008 Cam Macdonell wrote : >> Min Xu (Hsu) wrote: >>> On Fri, 05 Dec 2008 Cam Macdonell wrote : I can certainly see how a datagram model has some advantages. But, I'm trying to do caching and for this purpose using shared memory requires less c

Re: Using VMCI in the kernel

2008-12-05 Thread Min Xu (Hsu)
On Fri, 05 Dec 2008 Cam Macdonell wrote : > Min Xu (Hsu) wrote: > > On Fri, 05 Dec 2008 Cam Macdonell wrote : > >> I can certainly see how a datagram model has some advantages. But, I'm > >> trying to do caching and for this purpose using shared memory requires > >> less concurrent programming (

Re: Using VMCI in the kernel

2008-12-05 Thread Cam Macdonell
Min Xu (Hsu) wrote: > On Fri, 05 Dec 2008 Cam Macdonell wrote : >> I can certainly see how a datagram model has some advantages. But, I'm >> trying to do caching and for this purpose using shared memory requires >> less concurrent programming (threads, etc) and it reduces unnecessary >> copying

Re: Using VMCI in the kernel

2008-12-05 Thread Min Xu (Hsu)
On Fri, 05 Dec 2008 Cam Macdonell wrote : > I can certainly see how a datagram model has some advantages. But, I'm > trying to do caching and for this purpose using shared memory requires > less concurrent programming (threads, etc) and it reduces unnecessary > copying of the data. I'm looking

Re: Using VMCI in the kernel

2008-12-05 Thread Cam Macdonell
Min Xu (Hsu) wrote: > On Thu, 04 Dec 2008 Cam Macdonell wrote : >> Aaron Rolett wrote: >>> Hi Cam, >>> Are you talking about the VMCI Sockets interface from within the >>> kernel on linux? If so ... I don't think anyone has tried this yet ... >>> but I *think* it should mostly work. One thing

Re: Using VMCI in the kernel

2008-12-04 Thread Min Xu (Hsu)
On Thu, 04 Dec 2008 Cam Macdonell wrote : > Aaron Rolett wrote: > > Hi Cam, > > Are you talking about the VMCI Sockets interface from within the > > kernel on linux? If so ... I don't think anyone has tried this yet ... > > but I *think* it should mostly work. One thing that might need a litt

Re: Using VMCI in the kernel

2008-12-04 Thread Cam Macdonell
Aaron Rolett wrote: > Hi Cam, > Are you talking about the VMCI Sockets interface from within the > kernel on linux? If so ... I don't think anyone has tried this yet ... > but I *think* it should mostly work. One thing that might need a little > work is registering the dynamic address family

Re: Using VMCI in the kernel

2008-12-03 Thread Aaron Rolett
Hi Cam, Are you talking about the VMCI Sockets interface from within the kernel on linux? If so ... I don't think anyone has tried this yet ... but I *think* it should mostly work. One thing that might need a little work is registering the dynamic address family value since that is

Using VMCI in the kernel

2008-12-03 Thread Cam Macdonell
Hi, I was curious if it is possible to use VMCI from the kernel? I have a kernel module that I would like to have communicate with another VM. While some may brand this as insane. I was curious if it is possible. Thanks, Cam --