> 在 2016年5月20日,19:08,Paolo Bonzini <pbonz...@redhat.com> 写道:
> 
> 
> 
>> On 20/05/2016 04:41, xiaoqiang zhao wrote:
>> 
>> It seems that qemu_char_get_next_serial()  call the qemu_chr_fe_claim,
>> which is also called by
>> qdev_prop_set_chr ! This cause chr->avail_connectinos less than 1. as
>> the error message said:
>> "it's in use".
>> A stright fix is to call the qemu_chr_fe_release after
>> qemu_char_get_next_serial and the call the
>> qdev_prop_set_chr, the error is gone! I have test with your test cases
>> and it works.
>> 
>> Or another way, can we modify qemu_char_get_next_serial and just skip
>> the call of qemu_chr_fe_claim?
> 
> You can replace calls to qemu_char_get_next_serial() with direct access
> to serial_hds[0], serial_hds[1], etc.  Please do this for etrax_ser too.
> 
> Paolo
> 

OK,fix in the next version!


Reply via email to