Here is an updated patch. All of the code is the same but I added docs in doc/ref/vm.texi. - Dave