]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Add MMIO address mapper
authorSasha Levin <levinsasha928@gmail.com>
Tue, 17 May 2011 12:08:00 +0000 (15:08 +0300)
committerPekka Enberg <penberg@kernel.org>
Tue, 17 May 2011 15:14:19 +0000 (18:14 +0300)
commit88732a797e0c193cd05981b6f262cd2195be85d6
treed388c65bd6899055f0662f500b85b021be5a96e6
parent10b2a522aeddd797b2741d513e7db76435f5b82c
kvm tools: Add MMIO address mapper

When we have a MMIO exit, we need to find which device
has registered to use the accessed MMIO space.

The mapper maps ranges of guest physical addresses to
callback functions.

Implementation is based on an interval red-black tree.

Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/kvm.h
tools/kvm/mmio.c