]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] KVM: Recover after an arch module load failure
authorYoshimi Ichiyanagi <ichiyanagi.yoshimi@lab.ntt.co.jp>
Sat, 6 Jan 2007 00:36:24 +0000 (16:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:22 +0000 (23:55 -0800)
commite097f35ce58eb8d687f3a300247cf1a978fcea39
treed6d35f79744a7ec1b507c26b00ffd76effd1198e
parentd3b2c33860d4acdfe3ac29b40b03e655eb8d1e2c
[PATCH] KVM: Recover after an arch module load failure

If we load the wrong arch module, it leaves behind kvm_arch_ops set, which
prevents loading of the correct arch module later.

Fix be not setting kvm_arch_ops until we're sure it's good.

Signed-off-by: Yoshimi Ichiyanagi <ichiyanagi.yoshimi@lab.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/kvm/kvm_main.c