| commit | 2ec1740506eb94cb53a9532e15816ffe8245e25d | [log] [tgz] |
|---|---|---|
| author | Josh Triplett <josh@joshtriplett.org> | Thu Aug 06 19:39:59 2015 +0100 |
| committer | Will Deacon <will.deacon@arm.com> | Fri Aug 07 15:31:37 2015 +0100 |
| tree | a33a66ef5c35c2ade811d29f12f796ab330e7818 | |
| parent | e7b95bd430760d8b895520f54fdf9d19972904d2 [diff] |
kvm__emulate_io: Don't fall through from IO in to IO out if no handler If an IO port device has no io_in handler, kvm__emulate_io would fall through and call the io_out handler instead. Fix to only call the handler for the appropriate direction. If no handler exists, kvm__emulate_io will automatically treat it as an IO error (due to the default "ret = false"). Signed-off-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Will Deacon <will.deacon@arm.com>