]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: fix suspend/resume support
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 2 Jul 2008 14:02:11 +0000 (16:02 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 20 Jul 2008 09:42:37 +0000 (12:42 +0300)
commitc72ef0bcd66df67be824f0eda32eaf480d8dc4ce
tree7b4a148573e0e6df60682124b26de5d71af0fad3
parentfeb829ed9e2a14cfc7de22cbf9528d04f16eb7f4
KVM: SVM: fix suspend/resume support

On suspend the svm_hardware_disable function is called which frees all svm_data
variables. On resume they are not re-allocated. This patch removes the
deallocation of svm_data from the hardware_disable function to the
hardware_unsetup function which is not called on suspend.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/svm.c