Skip to contentSkip to conversation

[Qemu-devel] [Fwd: Re: i8042 buffer size?]

Qemu-devel Tomasz Chmielewski 2 participants 6 messages May 20, 2009 – May 28, 2009

lore
Share & tools
lore
#0 lore raw

As a follow up to "i8042.c: No controller found..." thread - below are the scancodes which Linux receives, and a comment from a former i8042 Linux maintainer (Vojtech Pavlik fro SuSE Labs):

Quoted 6 lines
May 20 12:25:09: 18 81 7f 18 81 7f 18 8e 53 28 00 ff 28 00
May 20 13:45:43: 09 00 00 08 00 00 18 ff 00 18 ff 00 18 fe 01 08
May 20 13:57:06: 08 7f 7b 08 7f 00 08 26 00 28 00 fc 38 fe fa 38
Quoted 7 lines
May 20 14:01:55: 38 ea 97 28 00 ff 28 00 ff 28 00 ff 28 00 ff 28 00 ff 28 00 ff 38 ff ff 28 00 ff 28 00 ff 28 00
May 20 14:14:35: 28 00 ff 28 00 fe 28 00 f9 38 ff f7 28 00 f8 38 fd f2 38 f7 cb 38 fe f5 38 fc e3 38 fe f2 38 fe f2 38 fe f1 38 fe f0 38 fe f1 38 fe f2 38 fe f5 38 fe f5
May 20 14:15:01: 18 f9 01 18 ff 02 08 00 02 08 00 03 18 fe 06 18 fe 07 18 fc 09 18 fd 09 18 fb 09 18 fa 0a 18 fe 0b 18 fb 08 18 fe 07 18 ff 03 08 00 01 08 00 01 08 00 01 09 00 00 08 00 00 08 00 01 28 00 fe 38 ff ff 28 00 fe 18 ff 00 28 00 ff 18 ff 00 28 00 ff 18 ff 00 09 00 00 08 00 00 18 fb 00 18 f8 00 18 f9 00 18 fe 00 18 ff 01 18 fe 01 18 f9 02 18 fe 00 09 00 00
May 20 14:20:54: 09 00 00 08 00 00 18 ff 00 18 fc 00 18 fa 00 18 f9 00 18 f9 00 18 fa 00 18 f8 00 18 f7 00 18 f8 00 18 fa 00 18 fa 00 18 fa 00 18 fa 00 18 fc 00 18 fc 00 18 fd 00 38 ff ff 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 08 00 01 18 ff 00 18 ff 00 18 ff 01 18 ff 00 08 00 01 18 ff 00 18 fe 02 18 ff 00 18 ff 00 18 ff 01 18 fd 00 18 fd 00 18 fa 00 18 f7 00 18 f7 00 18 f4 00 18 f3 00 18 ef 00 18 ee 01 18 ed 03 18 ec 04 18 e9 02 08 7f 08 08 7f 00 08 44 00 09 00 00 19 fc 01 08 00 00 38 81 ff 18 92 00 

This looks seriously like uninitialized memory (12-bit FAT perhaps?) - and very much like a Qemu bug. It doesn't even make sense if interpreted as keyboard scancodes - 00 is reserved and ff is an error condition.

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#1 lore raw
Quoted 27 lines · Tomasz Chmielewski

As a follow up to "i8042.c: No controller found..." thread - below are the scancodes which Linux receives, and a comment from a former i8042 Linux maintainer (Vojtech Pavlik fro SuSE Labs):

Quoted 13 lines
May 20 12:25:09: 18 81 7f 18 81 7f 18 8e 53 28 00 ff 28 00
May 20 13:45:43: 09 00 00 08 00 00 18 ff 00 18 ff 00 18 fe 01 08
May 20 13:57:06: 08 7f 7b 08 7f 00 08 26 00 28 00 fc 38 fe fa 38
May 20 14:01:55: 38 ea 97 28 00 ff 28 00 ff 28 00 ff 28 00 ff 28 00 ff 28 00 ff 38 ff ff 28 00 ff 28 00 ff 28 00
May 20 14:14:35: 28 00 ff 28 00 fe 28 00 f9 38 ff f7 28 00 f8 38 fd f2 38 f7 cb 38 fe f5 38 fc e3 38 fe f2 38 fe f2 38 fe f1 38 fe f0 38 fe f1 38 fe f2 38 fe f5 38 fe f5
May 20 14:15:01: 18 f9 01 18 ff 02 08 00 02 08 00 03 18 fe 06 18 fe 07 18 fc 09 18 fd 09 18 fb 09 18 fa 0a 18 fe 0b 18 fb 08 18 fe 07 18 ff 03 08 00 01 08 00 01 08 00 01 09 00 00 08 00 00 08 00 01 28 00 fe 38 ff ff 28 00 fe 18 ff 00 28 00 ff 18 ff 00 28 00 ff 18 ff 00 09 00 00 08 00 00 18 fb 00 18 f8 00 18 f9 00 18 fe 00 18 ff 01 18 fe 01 18 f9 02 18 fe 00 09 00 00
May 20 14:20:54: 09 00 00 08 00 00 18 ff 00 18 fc 00 18 fa 00 18 f9 00 
Quoted 8 lines

18 f9 00 18 fa 00 18 f8 00 18 f7 00 18 f8 00 18 fa 00 18 fa 00 18 fa 00 18 fa 00 18 fc 00 18 fc 00 18 fd 00 38 ff ff 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 08 00 01 18 ff 00 18 ff 00 18 ff 01 18 ff 00 08 00 01 18 ff 00 18 fe 02 18 ff 00 18 ff 00 18 ff 01 18 fd 00 18 fd 00 18 fa 00 18 f7 00 18 f7 00 18 f4 00 18 f3 00 18 ef 00 18 ee 01 18 ed 03 18 ec 04 18 e9 02 08 7f 08 08 7f 00 08 44 00 09 00 00 19 fc 01 08 00 00 38 81 ff 18 92 00

Quoted 3 lines

This looks seriously like uninitialized memory (12-bit FAT perhaps?) - and very much like a Qemu bug. It doesn't even make sense if interpreted as keyboard scancodes - 00 is reserved and ff is an error condition.

Tomasz,

Can you provide a recipe on how to reproduce this?

#2 lore raw
Quoted 8 lines · Marcelo Tosatti
Quoted 4 lines
Quoted 1 line

18 ff 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 08 00 01 18 ff 00 18 ff 00 18 ff 01 18 ff 00 08 00 01 18 ff 00 18 fe 02 18 ff 00 18 ff 00 18 ff 01 18 fd 00 18 fd 00 18 fa 00 18 f7 00 18 f7 00 18 f4 00 18 f3 00 18 ef 00 18 ee 01 18 ed 03 18 ec 04 18 e9 02 08 7f 08 08 7f 00 08 44 00 09 00 00 19 fc 01 08 00 00 38 81 ff 18 92 00

This looks seriously like uninitialized memory (12-bit FAT perhaps?) - and very much like a Qemu bug. It doesn't even make sense if interpreted as keyboard scancodes - 00 is reserved and ff is an error condition.

Tomasz,

Can you provide a recipe on how to reproduce this?

I used it with KVM, but it doesn't look KVM specific. I'll see if it happens with "pure" Qemu.

To reproduce:

- start a guest; connect to VNC
- type on the keyboard (just tap as much keys as you can) as you see BIOS, bootloader, Linux booting
- if it didn't work on the first time, reboot the guest, type on the keyboard, change windows with your mouse etc. (make the VNC window "always on top" usually helps to have focus)

I can reproduce it almost always.

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#3 lore raw
Quoted 11 lines · Tomasz Chmielewski
Quoted 7 lines · Marcelo Tosatti
Quoted 4 lines
Quoted 1 line

18 ff 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 08 00 01 18 ff 00 18 ff 00 18 ff 01 18 ff 00 08 00 01 18 ff 00 18 fe 02 18 ff 00 18 ff 00 18 ff 01 18 fd 00 18 fd 00 18 fa 00 18 f7 00 18 f7 00 18 f4 00 18 f3 00 18 ef 00 18 ee 01 18 ed 03 18 ec 04 18 e9 02 08 7f 08 08 7f 00 08 44 00 09 00 00 19 fc 01 08 00 00 38 81 ff 18 92 00

This looks seriously like uninitialized memory (12-bit FAT perhaps?) - and very much like a Qemu bug. It doesn't even make sense if interpreted as keyboard scancodes - 00 is reserved and ff is an error condition.

Tomasz,
Can you provide a recipe on how to reproduce this?

I used it with KVM, but it doesn't look KVM specific. I'll see if it happens with "pure" Qemu.

I just reproduced it with "pure" Qemu, no kqemu or kvm module.

I booted off SystemRescueCd: http://www.sysresccd.org/Download

The system was started with this command line:

/usr/bin/qemu -boot d -m 256 -cdrom '/usr/src/systemrescuecd-x86-1.2.0.iso' -net nic,vlan=0 -net user,vlan=0 -localtime &

I was just tapping the keys on the keyboard during BIOS phase, bootloader and kernel booting.

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#4 lore raw
Quoted 6 lines · Tomasz Chmielewski
Quoted 4 lines
Quoted 2 lines

Tomasz,
Can you provide a recipe on how to reproduce this?

I used it with KVM, but it doesn't look KVM specific. I'll see if it happens with "pure" Qemu.

I just reproduced it with "pure" Qemu, no kqemu or kvm module.

Hi Marcelo,

Were you able to reproduce it on your system?

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#5 lore raw
Quoted 5 lines · Tomasz Chmielewski
Quoted 3 lines · Tomasz Chmielewski
Quoted 3 lines
Quoted 2 lines

Tomasz,
Can you provide a recipe on how to reproduce this?

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

I used it with KVM, but it doesn't look KVM specific. I'll see if it happens with "pure" Qemu.

I just reproduced it with "pure" Qemu, no kqemu or kvm module.

Hi Marcelo,

Were you able to reproduce it on your system?

Tomasz,

Haven't got around to it yet, but haven't forgot either.