Write out the guest core file
#include <qvm/guest.h>
int guest_write_core_file(struct guest_system *gsp)
For this function to produce a dump, you must specify the dump option in the hosting VM's configuration.
0 on success, or -1 if unsuccessful.