| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH]fix VMX "xm console" issue
 Yu, Ping Y wrote: This is true. Maybe a small patch is needed.Looking at the qemu code to create a PTY device, it's not quite optimal. For instance, it's not suggested that you pass a name parameter to openpty() b/c it's unclear what's a safe size of the buffer. Instead, ptsname() should be called on the slave fd.You are right. Currently, there is no control for VMX pty. Following your direction I made a patch and it sounds OK in testing.I think the right fix is to tcsetattr() a cfmakeraw() on the slave PTY fd after openpty() is called in vl.c. Otherwise, it's quite possible (and likely) to get strange buffering behavior depending on the terminal attributes that are inherited when ioemu is spawned. Excellent! Looks good to me. Regards, Anthony Liguori _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |