VMState testing

Signed-off-by: Sanidhya Kashyap <sanidhya.iiith@gmail.com>

using memory buffer for dumping the states

Signed-off-by: Sanidhya Kashyap <sanidhya.iiith@gmail.com>