kvm: qemu: add cpu_unregister_io_memory and make io mem table index dynamic
commit01136c194406e69c93defe70f4d71bf865920837
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 11 Mar 2008 20:12:08 +0000 (11 17:12 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 16 Mar 2008 12:07:17 +0000 (16 14:07 +0200)
tree94279877b75cd84a53f0d7517a0a14277b78b079
parent402a4ff190f92d6a691e9d53a6420d9e305e6e1e
kvm: qemu: add cpu_unregister_io_memory and make io mem table index dynamic

So drivers can clear their mem io table entries on exit back to unassigned
state.

Also make the io mem index allocation dynamic.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
qemu/cpu-all.h
qemu/exec.c