OpenBSD Journal
Home : : Add Story : : Archives : : About : : Create Account : : Login :
g2k16 Hackathon Report: Mike Larkin on vmm + vmd progress
Contributed by pitrh on Mon Sep 5 10:16:10 2016 (GMT)
from the virtually puffed dept.

The first developer report from the just concluded g2k16 hackathon comes from Mike Larkin, who writes:

I worked on vmm/vmd. I had been sitting on a diff since Nantes that implements a real interrupt controller. This is so that we can have real hardclock interrupts and avoid the previous clock hack that made vmd(8) spin at 100% CPU usage.

Once I had that done, I cleaned up and refactored some vmd code, separating out each device into its own module/file. This made it easier for stefan@ to add asynchronous interrupt handling via libevent later in the week.

I next fixed the MSR (model specific register) bitmap. This is a giant mask that tells the processor which MSRs to allow the guest VM direct access to. Some are safe, some aren't, and some don't make sense at all in a VM. This bitmap is now locked down to just the minimial set of MSRs needed for well-behaved guest VMs (and those that aren't well behaved will think they are accessing off-limits MSRs but we just discard writes and return 0s on read).

I also removed some CPUID feature bits exposed to guest VMs, again removing things that aren't implemented or don't make sense in the guest VM (like the various thermal management/speedstep bits).

I wrapped up the week by dusting off my diff to provide a real BIOS inside the guest VM, that will make it easier to boot other types of guests by not having to go through vmd's ELF bootloader. This last bit did not get completed, and that's what I'm working on now.

Thanks to the organizers avsm and Gemma, it was a fun week.

Thanks for the report and all the awsome work on the virtualization system, Mike!

[topicopenbsd]

<< LLVM/Clang imported into -current | Reply | Flattened | Expanded | g2k16 Hackathon Report: Marc Espie on package signing evolution >>

Threshold: Help

Related Links
more by pitrh


  Re: g2k16 Hackathon Report: Mike Larkin on vmm + vmd progress (mod -2/128)
by Anonymous Coward (162.247.72.7) on Mon Sep 5 14:44:52 2016 (GMT)
  Thank you for all the work on VMM!

Are there any plans for DMA-remapping to protect physical hardware's memory from being accessed by other physical hardware, or is that already built in?

Hardware Assisted Remapping for Protection
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Re: g2k16 Hackathon Report: Mike Larkin on vmm + vmd progress (mod 5/123)
by Bobby Johnson (216.160.131.170) on Tue Sep 6 21:52:50 2016 (GMT)
  Sweet!

How ready for use is vmm / vmd at the moment? Will it be enabled by default in 6.1?
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

  Re: g2k16 Hackathon Report: Mike Larkin on vmm + vmd progress (mod 2/62)
by Adams Scot (182.182.120.96) (jazbajanoon@outlook.com) on Wed Oct 19 14:03:51 2016 (GMT)
  Thank you Pitrh for sharing about the post at http://essaymama.org/research-paper-help.html. Finally I have enough information about the g2k16 Hackathon Report, thanks for that.
  [ Show thread ] [ Reply to this comment ] [ Mod Up ] [ Mod Down ]

[ Home | Add Story | Archives | Polls | About ]

Copyright © 2004-2008 Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to April 2nd 2004 as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. Some icons from slashdot.org used with permission from Kathleen. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. Search engine is ht://Dig. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]