kvm: Work around borken MSR_GET_INDEX_LIST
commitd9db889faf1bea70d36e31231bf324ae009c6344
authorJan Kiszka <jan.kiszka@web.de>
Thu, 2 Jul 2009 20:04:48 +0000 (2 22:04 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 10 Jul 2009 18:44:30 +0000 (10 13:44 -0500)
tree381d728eafc27d5d71a4b55490d85ab72a3aea97
parente6da76800041f9aadd0a3607bed99aaf59794560
kvm: Work around borken MSR_GET_INDEX_LIST

Allocate enough memory for KVM_GET_MSR_INDEX_LIST as older kernels shot
far beyond their limits, corrupting user space memory.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-i386/kvm.c