Re: [Qemu-devel] [PATCH] gdbstub: init mon_chr through qemu_chr_alloc

2014-09-11 Thread Paolo Bonzini
Il 10/09/2014 16:34, Pavel Dovgalyuk ha scritto: > 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 char

[Qemu-devel] [PATCH] gdbstub: init mon_chr through qemu_chr_alloc

2014-09-10 Thread Pavel Dovgalyuk
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 --- gdbst