kvmvapic: add ioport read accessor
commit0c1cd0ae2a4faabeb948b9a07ea1696e853de174
authorMarcelo Tosatti <mtosatti@redhat.com>
Sun, 5 May 2013 20:51:49 +0000 (5 17:51 -0300)
committerGleb Natapov <gleb@redhat.com>
Mon, 6 May 2013 11:52:26 +0000 (6 14:52 +0300)
tree6e07bcd89e421efbb1fe57dd71aa4f320f6ddde1
parent467b34689d277fa56c09ad07ca0f08d7d7539f6d
kvmvapic: add ioport read accessor

Necessary since memory region accessor assumes read and write
methods are registered. Otherwise reading I/O port 0x7e segfaults.

https://bugzilla.redhat.com/show_bug.cgi?id=954306

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
hw/i386/kvmvapic.c