]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Fix 64-bit paging breakage on x86_32
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Wed, 27 Apr 2011 22:08:36 +0000 (07:08 +0900)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:39:58 +0000 (08:39 -0400)
commitc9658f7d6a9c232ba05ad6f78df4f823e37c6c75
tree5004b63ab74194b615fc51c10528332e38a95348
parentbebb0dab6560a04540ac6c6340e2aed5e5984d80
KVM: MMU: Fix 64-bit paging breakage on x86_32

Fix regression introduced by
  commit e30d2a170506830d5eef5e9d7990c5aedf1b0a51
  KVM: MMU: Optimize guest page table walk

On x86_32, get_user() does not support 64-bit values and we fail to
build KVM at the point of 64-bit paging.

This patch fixes this by using get_user() twice for that condition.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Reported-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h