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)
commit8f74d8e16812d63639871b4e56409b08bdcb66fc
tree5004b63ab74194b615fc51c10528332e38a95348
parentb74323dc2b7b5690d18bc7934b98e4665e778a7b
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