Re: [Qemu-devel] [PATCH v4 6/7] qmp: add pmemload command

2018-08-17 Thread Simon Ruderich
On Thu, Aug 16, 2018 at 03:01:31PM -0500, Eric Blake wrote: >> +} >> +if (!has_size) { >> +struct stat s; >> +if (fstat(fd, &s)) { >> +error_setg_errno(errp, errno, "could not fstat fd to get size"); >> +goto exit; >> +} >> +size = s.s

Re: [Qemu-devel] [PATCH v4 6/7] qmp: add pmemload command

2018-08-16 Thread Eric Blake
On 08/16/2018 04:01 AM, Simon Ruderich wrote: Adapted patch from Baojun Wang [1] with the following commit message: I found this could be useful to have qemu-softmmu as a cross debugger (launch with -s -S command line option), then if we can have a command to load guest physical m

[Qemu-devel] [PATCH v4 6/7] qmp: add pmemload command

2018-08-16 Thread Simon Ruderich
Adapted patch from Baojun Wang [1] with the following commit message: I found this could be useful to have qemu-softmmu as a cross debugger (launch with -s -S command line option), then if we can have a command to load guest physical memory, we can use cross gdb to do some target d