Changes in vm thread for image attach support
Image attach/detach