1. A method to consolidate computation tasks associated with a plurality of virtual machines that run on one or more host devices, comprising: forming a pipeline that includes at least a first core and a second core, after having detected a pipeline formation condition; identifying a first set of operations of a first virtual machine that runs on a first host device that are similar to a second set of operations of a second virtual machine that runs on a second host device; identifying a third set of operations of the first virtual machine that are similar to a fourth set of operations of the second virtual machine; dispatching the first set of operations and the second set of operations to the first core of the pipeline for execution; and dispatching the third set of operations and the fourth set of operations to the second core of the pipeline for execution.