1. A computing device for performing flexible code acceleration, the computing device comprising: a physical memory having stored therein a plurality of instructions; a processor to execute the plurality of instructions to establish an accelerator virtual device, an accelerator virtual device operating system driver, and a virtual machine, wherein: the virtual machine is to, using the accelerator virtual device operating system driver, (i) initialize the accelerator virtual device to facilitate the acceleration of a software code and (ii) allocate a portion of the physical memory as memory-mapped input/output for accessing the accelerator virtual device; and the accelerator virtual device is to determine whether a bytecode of a software code to be accelerated is an operating system-dependent bytecode.