]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm: Ignore PIC accesses
authorPekka Enberg <penberg@cs.helsinki.fi>
Sun, 11 Apr 2010 12:18:19 +0000 (15:18 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Sun, 11 Apr 2010 12:18:19 +0000 (15:18 +0300)
Fix up some dummy ioport ops so that we don't stop on PIC setup code in the
kernel.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
tools/kvm/ioport.c

index 8f50ffdd9cec037a2195107931c79e956e916fe7..251972d00032e8aed72faf374b1993927ff1e2f5 100644 (file)
@@ -53,10 +53,12 @@ static struct ioport_operations *ioport_ops[USHRT_MAX] = {
        [0x70]          = &cmos_ram_rtc_ops,
 
        /* 0x0020 - 0x003F - 8259A PIC 1 */
-       [0x21]          = &dummy_write_only_ioport_ops,
+       [0x20]          = &dummy_read_write_ioport_ops,
+       [0x21]          = &dummy_read_write_ioport_ops,
 
        /* 0x00A0 - 0x00AF - 8259A PIC 2 */
-       [0xA1]          = &dummy_write_only_ioport_ops,
+       [0xA0]          = &dummy_read_write_ioport_ops,
+       [0xA1]          = &dummy_read_write_ioport_ops,
 
        /* 0x00F0 - 0x00FF - Math co-processor */
        [0xF0]          = &dummy_write_only_ioport_ops,