hmp interface for kdump compressed format
Qiao Nuohan,
is there a reason why you did not implemented the HMP part for that format of kdump compressed format? After all this is a patch mostly for developers, so a HMP interface might come handy. Do you already have some patch in preparation or know somebody doing it?
Thanks a lot
Christian
Quoted 6 lines · Christian Borntraeger
Qiao Nuohan,
is there a reason why you did not implemented the HMP part for that format of kdump compressed format? After all this is a patch mostly for developers, so a HMP interface might come handy. Do you already have some patch in preparation or know somebody doing it?
http://thread.gmane.org/gmane.comp.emulators.qemu/249283/focus=250059
Laszlo
Two additional points:
Quoted 9 lines · Laszlo Ersek
Quoted 6 lines · Christian Borntraeger
Qiao Nuohan,
is there a reason why you did not implemented the HMP part for that format of kdump compressed format? After all this is a patch mostly for developers, so a HMP interface might come handy. Do you already have some patch in preparation or know somebody doing it?
http://thread.gmane.org/gmane.comp.emulators.qemu/249283/focus=250059
- HMP interface could be implemented as a fully new command of course,
- the feature being targeted at developers strikes me as a completely unexpected idea. The main goal in my understanding is to allow the management layer (libvirt) to save a compressed vmcore when the guest panicks, crashes, or the admin feels like it. For communication with another program, QMP is actually preferable.
So I'm certainly not against anyone adding a HMP interface too, but it cannot be an extension to the current HMP command (because it would break existing HMP command lines unless the HMP parser were reworked too), plus during review I saw no reason to stall the series even longer, for a side feature that I perceived to be of low importance (and I actually thought that Qiao Nuohan shared that notion).
Thanks
Laszlo
Quoted 12 lines · Laszlo Ersek
Quoted 6 lines · Christian Borntraeger
Qiao Nuohan,
is there a reason why you did not implemented the HMP part for that format of kdump compressed format? After all this is a patch mostly for developers, so a HMP interface might come handy. Do you already have some patch in preparation or know somebody doing it?
http://thread.gmane.org/gmane.comp.emulators.qemu/249283/focus=250059
Laszlo
So in essence: Due to the limitations of the command line parser we cannot add the format to the hmp command line.
So something like adding
dump_guest_memory_set_format <format>
would be the only possible solution with the hmp code as is. Correct? (If adding such a command is nice or not is another question)
Christian
Quoted 13 lines · Christian Borntraeger
Quoted 12 lines · Laszlo Ersek
Quoted 6 lines · Christian Borntraeger
Qiao Nuohan,
is there a reason why you did not implemented the HMP part for that format of kdump compressed format? After all this is a patch mostly for developers, so a HMP interface might come handy. Do you already have some patch in preparation or know somebody doing it?
http://thread.gmane.org/gmane.comp.emulators.qemu/249283/focus=250059
Laszlo
Quoted 7 lines
So in essence: Due to the limitations of the command line parser we cannot add the format to the hmp command line.
So something like adding
dump_guest_memory_set_format<format>would be the only possible solution with the hmp code as is. Correct?
Yes, one possibility would be to make the dump command stateful (= compression format), and to add a new command setting/getting that state.
Another option would be to leave the current command intact, and add an independent command that wouldn't take "begin", "end", nor "paging", but would take compression format.
Quoted 1 line
(If adding such a command is nice or not is another question)
Yep.
Thanks
Laszlo
Il 20/03/2014 22:28, Laszlo Ersek ha scritto:
Quoted 20 lines · Christian Borntraeger
Quoted 19 lines · Laszlo Ersek
Quoted 12 lines · Christian Borntraeger
Quoted 6 lines
Qiao Nuohan,
is there a reason why you did not implemented the HMP part for that format of kdump compressed format? After all this is a patch mostly for developers, so a HMP interface might come handy. Do you already have some patch in preparation or know somebody doing it?
http://thread.gmane.org/gmane.comp.emulators.qemu/249283/focus=250059
Laszlo
So in essence: Due to the limitations of the command line parser we cannot add the format to the hmp command line.
So something like adding
dump_guest_memory_set_format<format>
Quoted 8 lines
Quoted 1 line
would be the only possible solution with the hmp code as is. Correct?
Yes, one possibility would be to make the dump command stateful (= compression format), and to add a new command setting/getting that state.
Another option would be to leave the current command intact, and add an independent command that wouldn't take "begin", "end", nor "paging", but would take compression format.
Another possibility is to kill begin/length from the dump-guest-memory command. HMP is not stable, so if that's useful we can do it.
Paolo
Quoted 21 lines · Laszlo Ersek
Two additional points:
Quoted 9 lines · Laszlo Ersek
Quoted 6 lines · Christian Borntraeger
Qiao Nuohan,
is there a reason why you did not implemented the HMP part for that format of kdump compressed format? After all this is a patch mostly for developers, so a HMP interface might come handy. Do you already have some patch in preparation or know somebody doing it?
http://thread.gmane.org/gmane.comp.emulators.qemu/249283/focus=250059
- HMP interface could be implemented as a fully new command of course,
- the feature being targeted at developers strikes me as a completely unexpected idea. The main goal in my understanding is to allow the management layer (libvirt) to save a compressed vmcore when the guest panicks, crashes, or the admin feels like it. For communication with another program, QMP is actually preferable.
Quoted 6 lines
So I'm certainly not against anyone adding a HMP interface too, but it cannot be an extension to the current HMP command (because it would break existing HMP command lines unless the HMP parser were reworked too), plus during review I saw no reason to stall the series even longer, for a side feature that I perceived to be of low importance (and I actually thought that Qiao Nuohan shared that notion).
Yes, my main purpose is let "virsh dump --memory-only" can dump a small core that can be used to analyze kernel. So HMP is not that important to me.
Quoted 26 lines · Paolo Bonzini
Il 20/03/2014 22:28, Laszlo Ersek ha scritto:
Quoted 25 lines · Christian Borntraeger
Quoted 13 lines · Laszlo Ersek
Quoted 12 lines · Christian Borntraeger
Quoted 6 lines
Qiao Nuohan,
is there a reason why you did not implemented the HMP part for that format of kdump compressed format? After all this is a patch mostly for developers, so a HMP interface might come handy. Do you already have some patch in preparation or know somebody doing it?
http://thread.gmane.org/gmane.comp.emulators.qemu/249283/focus=250059
Laszlo
Quoted 7 lines
So in essence: Due to the limitations of the command line parser we cannot add the format to the hmp command line.
So something like adding
dump_guest_memory_set_format<format>would be the only possible solution with the hmp code as is. Correct?
Yes, one possibility would be to make the dump command stateful (= compression format), and to add a new command setting/getting that state.
Quoted 6 lines
Quoted 3 lines
Another option would be to leave the current command intact, and add an independent command that wouldn't take "begin", "end", nor "paging", but would take compression format.
Another possibility is to kill begin/length from the dump-guest-memory command. HMP is not stable, so if that's useful we can do it.
AFAIK, kdump-compressed format can only be analyzed by crash-utility right now. ELF is big but we still need it, then begin/length will help us save time and space when only part of the memory is need.
IMHO, a new HMP command will be a good choice and it is more simple than making dump format 'stateful'. I am not so clear about HMP, but I think the new HMP command can be 'dump-guest-memory-with-format', and still base on qmp_dump_guest_memory. If you guys like it, I will send a patch that add this command.
Quoted 5 lines
Paolo
Signature · 2 lines
Regards Qiao Nuohan
On 21/03/14 10:31, [email protected] wrote:
[....]
Quoted 11 lines
Quoted 6 lines
Quoted 3 lines
Another option would be to leave the current command intact, and add an independent command that wouldn't take "begin", "end", nor "paging", but would take compression format.
Another possibility is to kill begin/length from the dump-guest-memory command. HMP is not stable, so if that's useful we can do it.
AFAIK, kdump-compressed format can only be analyzed by crash-utility right now. ELF is big but we still need it, then begin/length will help us save time and space when only part of the memory is need.
Quoted 5 lines
IMHO, a new HMP command will be a good choice and it is more simple than making dump format 'stateful'. I am not so clear about HMP, but I think the new HMP command can be 'dump-guest-memory-with-format', and still base on
qmp_dump_guest_memory. If you guys like it, I will send a patch that add this command.
Yes, please do, if you find the time.
Maybe user "dump-guest-memory-format" or whatever comes up might be a better name, though. Thanks a lot
Christian
Quoted 30 lines · "[email protected]" <[email protected]> writes:
Quoted 22 lines · Laszlo Ersek
Two additional points:
Quoted 10 lines · Laszlo Ersek
Quoted 7 lines · Christian Borntraeger
Qiao Nuohan,
is there a reason why you did not implemented the HMP part for that format of kdump compressed format? After all this is a patch mostly for developers,
so a HMP interface might come handy. Do you already have some patch in preparation or know somebody doing it?http://thread.gmane.org/gmane.comp.emulators.qemu/249283/focus=250059
- HMP interface could be implemented as a fully new command of course,
- the feature being targeted at developers strikes me as a completely unexpected idea. The main goal in my understanding is to allow the management layer (libvirt) to save a compressed vmcore when the guest panicks, crashes, or the admin feels like it. For communication with another program, QMP is actually preferable.
Quoted 6 lines
So I'm certainly not against anyone adding a HMP interface too, but it cannot be an extension to the current HMP command (because it would break existing HMP command lines unless the HMP parser were reworked too), plus during review I saw no reason to stall the series even longer, for a side feature that I perceived to be of low importance (and I actually thought that Qiao Nuohan shared that notion).
Quoted 23 lines
Yes, my main purpose is let "virsh dump --memory-only" can dump a small core that can be used to analyze kernel. So HMP is not that important to me.
Quoted 18 lines · Paolo Bonzini
Il 20/03/2014 22:28, Laszlo Ersek ha scritto:
Quoted 17 lines · Christian Borntraeger
Quoted 16 lines · Laszlo Ersek
Quoted 9 lines · Christian Borntraeger
Quoted 7 lines
Qiao Nuohan,
is there a reason why you did not implemented the HMP part for that format of kdump compressed format? After all this is a patch mostly for developers,
so a HMP interface might come handy. Do you already have some patch in preparation or know somebody doing it?Quoted 4 lines
http://thread.gmane.org/gmane.comp.emulators.qemu/249283/focus=250059
Laszlo
So in essence: Due to the limitations of the command line parser we cannot add the format to the hmp command line.
Flags to select a format could perhaps work.
Quoted 21 lines
Quoted 9 lines
Quoted 9 lines
Quoted 5 lines
So something like adding
dump_guest_memory_set_format<format>would be the only possible solution with the hmp code as is. Correct?
Yes, one possibility would be to make the dump command stateful (= compression format), and to add a new command setting/getting that state.
Quoted 7 lines
Quoted 3 lines
Another option would be to leave the current command intact, and add an independent command that wouldn't take "begin", "end", nor "paging", but would take compression format.
Another possibility is to kill begin/length from the dump-guest-memory command.
HMP is not stable, so if that's useful we can do it.AFAIK, kdump-compressed format can only be analyzed by crash-utility right now. ELF is big but we still need it, then begin/length will help us save time and space when only part of the memory is need.
Quoted 5 lines
IMHO, a new HMP command will be a good choice and it is more simple than making dump format 'stateful'. I am not so clear about HMP, but I think the new HMP command can be 'dump-guest-memory-with-format', and still base on
qmp_dump_guest_memory. If you guys like it, I will send a patch that add this command.
Paolo encouraged you to *break* the existing HMP command instead of adding a new one. I'd like to second that.
Quoted 21 lines · Markus Armbruster
Quoted 21 lines
Quoted 21 lines
Quoted 9 lines
Quoted 9 lines
So something like adding
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
dump_guest_memory_set_format<format>
would be the only possible solution with the hmp code as is. Correct?
Yes, one possibility would be to make the dump command stateful (= compression format), and to add a new command setting/getting that state.
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Another option would be to leave the current command intact, and add an independent command that wouldn't take "begin", "end", nor "paging", but would take compression format.
Another possibility is to kill begin/length from the dump-guest-memory command.
HMP is not stable, so if that's useful we can do it.AFAIK, kdump-compressed format can only be analyzed by crash-utility right now. ELF is big but we still need it, then begin/length will help us save time and space when only part of the memory is need.
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
IMHO, a new HMP command will be a good choice and it is more simple than making dump format 'stateful'. I am not so clear about HMP, but I think the new HMP command can be 'dump-guest-memory-with-format', and still base on
qmp_dump_guest_memory. If you guys like it, I will send a patch that add this command.Paolo encouraged you to*break* the existing HMP command instead of adding a new one. I'd like to second that.
.
Hello markus,
I have finish my patch as I stated in my last mail, but something is wrong with my mail server, I have to wait a couple of days before sending the patch. You said you prefer *breaking* the existing HMP command. Since paging/begin/length is still usefull, would you please give some reason and I will consider that.
Signature · 2 lines
Regards Qiao Nuohan
Quoted 36 lines · "[email protected]" <[email protected]> writes:
Quoted 25 lines · Markus Armbruster
Quoted 25 lines
Quoted 25 lines
Quoted 17 lines
Quoted 17 lines
So something like adding
Quoted 15 lines
Quoted 15 lines
Quoted 5 lines
Quoted 5 lines
dump_guest_memory_set_format<format>
would be the only possible solution with the hmp code as
is. Correct?Yes, one possibility would be to make the dump command stateful (= compression format), and to add a new command
setting/getting that state.Another option would be to leave the current command intact,
and add an
independent command that wouldn't take "begin", "end", nor
"paging", but
would take compression format.Quoted 3 lines
Quoted 3 lines
Another possibility is to kill begin/length from the dump-guest-memory command.
HMP is not stable, so if that's useful we can do it.AFAIK, kdump-compressed format can only be analyzed by crash-utility right now. ELF is big but we still need it, then begin/length will help us save time and space when only part of the memory is need.
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
IMHO, a new HMP command will be a good choice and it is more simple than making dump format 'stateful'. I am not so clear about HMP, but I think the new HMP command can be 'dump-guest-memory-with-format', and still base on
qmp_dump_guest_memory. If you guys like it, I will send a patch that add this command.Paolo encouraged you to*break* the existing HMP command instead of adding a new one. I'd like to second that.
.
Quoted 7 lines
Hello markus,
I have finish my patch as I stated in my last mail, but something is wrong with my mail server, I have to wait a couple of days before sending the patch. You said you prefer *breaking* the existing HMP command. Since paging/begin/length is still usefull, would you please give some reason and I will consider that.
I'm encouraging you to design a HMP command that gives you all you need. Then call that dump-guest-memory, backward compatibility be damned.
Would
dump-guest-memory [-p] filename [[format] begin length]
do?
An alternative could be two commands:
dump-guest-memory filename [format [begin length]] dump-guest-memory-elf [-p] filename [begin length]
This bakes the restriction "paging, begin and length work only with format 'elf'" into the interface. Not sure that's a good idea, but I'm leaving that to folks who actually know something about this dumping business.
If you can find better command names, go right ahead. You could pick names that avoid incompatible change. I care about avoiding incompatible change to exotic HMP commands even less (a lot less, in fact) than about naming of exotic HMP commands.
Hello guys,
I have sent the patch, please check here:
http://lists.nongnu.org/archive/html/qemu-devel/2014-04/msg00018.html
Quoted 72 lines · Markus Armbruster
Quoted 36 lines · "[email protected]"<[email protected]> writes:
Quoted 25 lines · Markus Armbruster
Quoted 25 lines
Quoted 25 lines
Quoted 17 lines
Quoted 17 lines
So something like adding
Quoted 15 lines
Quoted 15 lines
Quoted 5 lines
Quoted 5 lines
dump_guest_memory_set_format<format>
would be the only possible solution with the hmp code as
is. Correct?Yes, one possibility would be to make the dump command stateful (= compression format), and to add a new command
setting/getting that state.Another option would be to leave the current command intact,
and add an
independent command that wouldn't take "begin", "end", nor
"paging", but
would take compression format.Quoted 3 lines
Quoted 3 lines
Another possibility is to kill begin/length from the dump-guest-memory command.
HMP is not stable, so if that's useful we can do it.AFAIK, kdump-compressed format can only be analyzed by crash-utility right now. ELF is big but we still need it, then begin/length will help us save time and space when only part of the memory is need.
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
IMHO, a new HMP command will be a good choice and it is more simple than making dump format 'stateful'. I am not so clear about HMP, but I think the new HMP command can be 'dump-guest-memory-with-format', and still base on
qmp_dump_guest_memory. If you guys like it, I will send a patch that add this command.Paolo encouraged you to*break* the existing HMP command instead of adding a new one. I'd like to second that.
.Quoted 7 lines
Hello markus,
I have finish my patch as I stated in my last mail, but something is wrong with my mail server, I have to wait a couple of days before sending the patch. You said you prefer *breaking* the existing HMP command. Since paging/begin/length is still usefull, would you please give some reason and I will consider that.
I'm encouraging you to design a HMP command that gives you all you need. Then call that dump-guest-memory, backward compatibility be damned.
Would
dump-guest-memory [-p] filename [[format] begin length]
do?
An alternative could be two commands:
dump-guest-memory filename [format [begin length]] dump-guest-memory-elf [-p] filename [begin length]
This bakes the restriction "paging, begin and length work only with format 'elf'" into the interface. Not sure that's a good idea, but I'm leaving that to folks who actually know something about this dumping business.
If you can find better command names, go right ahead. You could pick names that avoid incompatible change. I care about avoiding incompatible change to exotic HMP commands even less (a lot less, in fact) than about naming of exotic HMP commands.
.
Signature · 2 lines
Regards Qiao Nuohan