]> www.infradead.org Git - users/dwmw2/qemu.git/commit
gdbstub: init mon_chr through qemu_chr_alloc
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Wed, 10 Sep 2014 14:34:14 +0000 (18:34 +0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Sun, 4 Jan 2015 19:41:55 +0000 (13:41 -0600)
commitb5fc105016ce378cd2545c1f3dda9f0f5ead55f8
treea539435799d322ae6a2348e8afc23ea6529f4295
parente1cf5a23d10d623fda59c1c6c810a9f56776a5e5
gdbstub: init mon_chr through qemu_chr_alloc

This patch initializes monitor for gdbstub with the qemu_chr_alloc function
instead of just allocating the memory. Initialization function call
is required, because it also creates chr_write_lock mutex, which is used
when writing to this character device.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 462efe9e530e22b1b60aaf01716e1423cd94302c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
gdbstub.c