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
