1. An apparatus comprising: a memory; a hardware buffer; and a processor, including a set of cores, wherein the processor is configured to: convert guest code to native code; store converted guest code into a code cache portion of the processor; maintain the hardware buffer configured for tracking respective locations of converted code in a code cache, wherein the hardware buffer is updated based on a respective access to a respective location in the memory associated with a respective location of converted guest code in the code cache; and perform a request to modify the respective location in the memory associated with the respective access after accessing the hardware buffer, wherein the processor is configured to raise an exception if the request is to modify a location in memory associated with a location in the code cache that comprises converted guest code and wherein the memory comprises a table associated with the hardware buffer for tracking converted code present in the code cache, including tracking modifications to guest code, a type of exception to take in response to modifications to guest code, and whether the guest code has been converted to native code.