qvmd: fix segfault

Do not crash if the data sent from client is invalid

Reviewed-by: huntxu <mhuntxu@gmail.com>
Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
qvmd: Fix endless loop

It a serious bug that we enter a endless loop, this patch fixes it.

Reviewed-by: huntxu <mhuntxu@gmail.com>
Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
qvmd: raise a warning message if event is not supported

Reviewed-by: huntxu <mhuntxu@gmail.com>
Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
qvmd: Fix a possible memleak

GError maybe leaked if qvmd_handle_client_data() return FALSE

Reviewed-by: huntxu <mhuntxu@gmail.com>
Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
vm_control: Fix building warning

Fix the following warning:

  CC       libqvm_la-vm_control.lo
vm_control.c: In function ‘cmdline_build_cpu’:
vm_control.c:53:13: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]

Reviewed-by: huntxu <mhuntxu@gmail.com>
Signed-off-by: Dunrong Huang <riegamaths@gmail.com>