On Tue, Nov 9, 2010 at 2:22 PM, Wouter Coene <[email protected]> wrote: > Hi, > > I'm looking into porting Linux's Kernel Virtual Machine (KVM) host to > OpenBSD. Under Linux, KVM and the user-space virtual machine share a > datastructure containing the state of the virtual CPU. This structure is > owned by the kernel, and accessed from userland by mmap()'ing the file > handle referring to the KVM virtual CPU. > > However, the OpenBSD kernel only allows mmap()'ing files that are vnodes. Is > it worth the trouble to implement the KVM virtual CPU handle as a vnode with > all the boilerplate that comes with that? Or is there perhaps an easier way > (preferrably one that doesn't break source-compatibility with Linux's KVM > too much)? > > Thanks in advance for any help, > Wouter Coene > >
you can mmap character devices provided that the driver implements the interface.
