Context switch library for ZeroVM