[PATCH] kvm tools: Fix serial port probing

2011-12-09 Thread Sasha Levin
The process of probing the 8250 serial port is as follows: 1. Start detecting IRQs 2. Enable the IER register [At this point, the port is supposed to light the INTR]. 3. Stop detecting IRQs [At this point, the driver detects which IRQ belongs to that port]. 4. Disable IER register. Since we

Re: [PATCH] kvm tools: Fix serial port probing

2011-12-09 Thread Pekka Enberg
On Fri, Dec 9, 2011 at 1:16 PM, Sasha Levin levinsasha...@gmail.com wrote: The process of probing the 8250 serial port is as follows: 1. Start detecting IRQs 2. Enable the IER register [At this point, the port is supposed to light the INTR]. 3. Stop detecting IRQs [At this point, the driver

Re: [PATCH] kvm tools: Fix serial port probing

2011-12-09 Thread Ingo Molnar
* Pekka Enberg penb...@kernel.org wrote:                        dev-ier        = ioport__read8(data) 0x3f; +                       kvm__irq_line(kvm, dev-irq, dev-ier?1:0);                        break;                case UART_LCR:                        dev-lcr        =