commit | bdea48e305389b3c8c0f786a317f9da984c16604 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Sun Jun 10 18:07:57 2012 +0300 |
committer | Avi Kivity <avi@redhat.com> | Mon Jul 09 14:19:02 2012 +0300 |
tree | 55f7789969d10b22ba6ea0e4f11f67dc422133e6 | |
parent | 96051572c819194c37a8367624b285be10297eca [diff] |
KVM: VMX: Fix interrupt exit condition during emulation Checking EFLAGS.IF is incorrect as we might be in interrupt shadow. If that is the case, the main loop will notice that and not inject the interrupt, causing an endless loop. Fix by using vmx_interrupt_allowed() to check if we can inject an interrupt instead. Signed-off-by: Avi Kivity <avi@redhat.com>