8 ms·
Fun fact: qemu (actually the sgabios in qemu) sends the ESC [ 6 n sequence to query the terminal and waits for 0.26 seconds for a response before timing out. I
by rwmj 8y ago
Fun fact: qemu (actually the sgabios in qemu) sends the ESC [ 6 n sequence to query the terminal and waits for 0.26 seconds for a response before timing out.
In libguestfs I added code to "answer" this query, to shave 260 milliseconds off boot times:
https://github.com/libguestfs/libguestfs/blob/0d0b5511309182f163ae263e862ddb0235780917/lib/conn-socket.c#L369 https://github.com/libguestfs/libguestfs/blob/0d0b5511309182...