projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f21e79
)
KVM: Use kvm_arch_interrupt_allowed() instead of checking interrupt_window_open directly
author
Gleb Natapov
<gleb@redhat.com>
Tue, 21 Apr 2009 14:44:59 +0000
(17:44 +0300)
committer
Avi Kivity
<avi@redhat.com>
Wed, 10 Jun 2009 08:48:46 +0000
(11:48 +0300)
kvm_arch_interrupt_allowed() also checks IF so drop the check.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index a84c96a7ea5e67b1fbcf1049194c882eebb0c8a1..ae6250b1972671105a94609093d0eacbe49a15c8 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-3071,8
+3071,7
@@
static int dm_request_for_irq_injection(struct kvm_vcpu *vcpu,
{
return (!irqchip_in_kernel(vcpu->kvm) && !kvm_cpu_has_interrupt(vcpu) &&
kvm_run->request_interrupt_window &&
- vcpu->arch.interrupt_window_open &&
- (kvm_x86_ops->get_rflags(vcpu) & X86_EFLAGS_IF));
+ kvm_arch_interrupt_allowed(vcpu));
}
static void post_kvm_run_save(struct kvm_vcpu *vcpu,
@@
-3085,7
+3084,7
@@
static void post_kvm_run_save(struct kvm_vcpu *vcpu,
kvm_run->ready_for_interrupt_injection = 1;
else
kvm_run->ready_for_interrupt_injection =
- (
vcpu->arch.interrupt_window_open
&&
+ (
kvm_arch_interrupt_allowed(vcpu)
&&
!kvm_cpu_has_interrupt(vcpu));
}