KVM: MMU: bail out pagewalk on kvm_read_guest error
commita6085fbaf65ab09bfb5ec8d902d6d21680fe1895
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 14 Jan 2010 19:41:27 +0000 (14 17:41 -0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 25 Jan 2010 14:26:38 +0000 (25 12:26 -0200)
tree78e2ca9d3bc6d2ea81bb01952ef22cc9c17a7c9f
parentd72118cecabbb76b96b77107a50c74d1bb36c0c1
KVM: MMU: bail out pagewalk on kvm_read_guest error

Exit the guest pagetable walk loop if reading gpte failed. Otherwise its
possible to enter an endless loop processing the previous present pte.

Cc: stable@kernel.org
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/paging_tmpl.h