1. A method, comprising: receiving, by a hypervisor associated with a device, guest operating system code that includes an instruction to switch from a current stack to a new stack, the current stack and the new stack being provided in hardware associated with the device; providing, by the hypervisor and to a guest page table associated with the hypervisor, a query for writable pages provided in proximity to the new stack; receiving, by the hypervisor associated with the device and from the guest page table, the writable pages provided in proximity to the new stack, the writable pages being received based on the query; providing, by the hypervisor associated with the device, test instructions to the new stack in order to determine whether one or more faults occur; and switching, by the hypervisor associated with the device, from a current stack to the new stack when no faults occur based on the test instructions, the current stack being provided in the hardware associated with the device.