* Move all virtual device initialization to virtualbuffer package. * Factor out common eventcode helper logic into a new package.