]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Simplify memory allocation
authorLaurent Vivier <Laurent.Vivier@bull.net>
Thu, 30 Aug 2007 12:56:21 +0000 (14:56 +0200)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:27 +0000 (10:18 +0200)
commitc037c3c9980250e28c0a6dc5ebda7229f5e20119
treeca8234bdcb71b7cc0955ef89ae5b028d19ca709e
parent121c583bed63c781b1ae647444d2b13b4c166c06
KVM: Simplify memory allocation

The mutex->splinlock convertion alllows us to make some code simplifications.
As we can keep the lock longer, we don't have to release it and then
have to check if the environment has not been modified before re-taking it. We
can remove kvm->busy and kvm->memory_config_version.

Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c