Re: [Qemu-devel] [PATCH 03/18] QMP: Don't use do_info()

2010-09-29 Thread Markus Armbruster
Luiz Capitulino writes: > Since its inception, QMP has been using HMP's do_info() function > to run query commands. > > This was a bad choice, as it made do_info() more complex and > contributed to couple QMP and HMP. > > This commit fixes that by doing the following changes: > > 1. Introduce q

[Qemu-devel] [PATCH 03/18] QMP: Don't use do_info()

2010-09-16 Thread Luiz Capitulino
Since its inception, QMP has been using HMP's do_info() function to run query commands. This was a bad choice, as it made do_info() more complex and contributed to couple QMP and HMP. This commit fixes that by doing the following changes: 1. Introduce qmp_find_query_cmd() and use it to directl