LWN: Comments on "The VMI virtualization interface" https://lwn.net/Articles/175706/ This is a special feed containing comments posted to the individual LWN article titled "The VMI virtualization interface". en-us Tue, 14 Oct 2025 17:34:44 +0000 Tue, 14 Oct 2025 17:34:44 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net The VMI virtualization interface https://lwn.net/Articles/176949/ https://lwn.net/Articles/176949/ zamsden Yes and no. It could be done - with lots of effort. UML requires running the kernel at CPL-3, which <br> is something not currently supported in the VMI interface. There are many other aspects, tied to <br> device emulation, that really are not appropriate in the UML world. And UML has more <br> complications due to the process address space model.<br> <p> That said, I think UML serves a very different purpose than VMI, although they could probably be <br> merged to work together, I'm not sure it is useful to either. UML is a great way to do kernel <br> development that isn't tied directly into the arch layers, and trying to tie the native kernel into UML <br> might complicate the other architectures that it supports.<br> Fri, 24 Mar 2006 05:41:43 +0000 The VMI virtualization interface https://lwn.net/Articles/175933/ https://lwn.net/Articles/175933/ xoddam My comment did *not* look like that in preview ... strange. <br> Fri, 17 Mar 2006 06:21:41 +0000 The VMI virtualization interface https://lwn.net/Articles/175928/ https://lwn.net/Articles/175928/ xoddam > It may be more natural to use something like Qemu as a base though > since it already supports all of the platform hardware emulation. If you're talking about running an unmodified Linux kernel inside a userspace emulator, surely Qemu can do that already -- no UML required? Would the VMI make it any easier to do so? Fri, 17 Mar 2006 06:20:32 +0000 Can UML use VMI? https://lwn.net/Articles/175925/ https://lwn.net/Articles/175925/ xoddam <font class="QuotedText">&gt; Would it be possible to reorganize UML as a VMI ROM, such that it </font><br> <font class="QuotedText">&gt; actually runs a regular kernel, </font><br> <br> With a solid VMI interface you should be able to run a 'regular' kernel <br> (that uses VMI) in userspace with the right 'thunking' layer, yes. <br> <br> <font class="QuotedText">&gt; ... and have it work essentially the same as the current design. </font><br> <br> It would have to be much simpler than the current design, because the <br> 'regular kernel' would expect to manage its processes' VM which would <br> have to be done entirely in software (and incur a big performance <br> penalty). I believe the current UML implementation has a (seriously <br> complicated) mapping of the UML kernel's processes onto host kernel <br> processes, for VM performance reasons. <br> <br> Xen and VMWare don't have this problem because unlike UML's host Linux <br> kernel, they are set up with the clients' VM in mind and are able to give <br> out portions of physical memory to be managed by each client through a <br> lightweight indirection of the low-level registers. <br> <br> A more likely scenario is that UML continues to use a heavily modified <br> child kernel. Whether it uses a 'VMI ROM' underneath makes little <br> difference (just moves bits of the patch around). <br> Fri, 17 Mar 2006 05:26:44 +0000 The VMI virtualization interface https://lwn.net/Articles/175895/ https://lwn.net/Articles/175895/ aliguori Yup. You need kernel support because you'll want to run the kernel in ring 1 which is normally not accessible to userspace.<br> <p> It may be more natural to use something like Qemu as a base though since it already supports all of the platform hardware emulation.<br> Thu, 16 Mar 2006 23:53:41 +0000 The VMI virtualization interface https://lwn.net/Articles/175835/ https://lwn.net/Articles/175835/ iabervon Would it be possible to reorganize UML as a VMI ROM, such that it actually runs a regular kernel, catches the request for the ROM (which the regular kernel isn't expecting to provide), return the UML routines, and have it work essentially the same as the current design.<br> <p> I suspect that it would be really helpful for debugging if you could run an unmodified kernel binary as a UML kernel.<br> Thu, 16 Mar 2006 18:11:47 +0000