KVM: VMX: Limit iterations with emulator_invalid_guest_state
authorAvi Kivity <avi@redhat.com>
Thu, 7 Jun 2012 14:08:48 +0000 (17:08 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 9 Jul 2012 11:19:01 +0000 (14:19 +0300)
commitb8405c184b4ef3abcebc5cf2211215944d6e2acc
tree13c52fe08f9f14e425bd8202a2f2e1d135196731
parentf0495f9b9992f80f82b14306946444b287193390
KVM: VMX: Limit iterations with emulator_invalid_guest_state

Otherwise, if the guest ends up looping, we never exit the srcu critical
section, which causes synchronize_srcu() to hang.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c