rebased fork of http://github.com/jclulow/illumos-kvm