kvm,8250: Cleanup receive emulation
commite1b055120772a41f71addce3ba3d0400a7d0c17f
authorPekka Enberg <penberg@kernel.org>
Mon, 10 Jan 2011 22:06:28 +0000 (11 00:06 +0200)
committerPekka Enberg <penberg@kernel.org>
Tue, 11 Jan 2011 14:49:50 +0000 (11 16:49 +0200)
treed59a5aae6ff559f948beef6b87b4ae63758fb4b2
parent3f0681b618f122d1bb4b594e553d77c44840d5c9
kvm,8250: Cleanup receive emulation

This patch cleans up receive emulation by separating the stdin polling and
reading logic from the interrupt logic. The patch also fixes the interrupt
injection code to inject one type of interrupt at a time.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/8250-serial.c