Skip to content
Commit 2ec17405 authored by Josh Triplett's avatar Josh Triplett Committed by Will Deacon
Browse files

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: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent e7b95bd4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment