diff options
author | Yang Zhang <yang.z.zhang@Intel.com> | 2013-04-11 07:21:39 -0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2013-04-15 22:20:34 -0400 |
commit | f3bff6318fa0f54956b02ed451d9b120441006ea (patch) | |
tree | 3a4e541963bd4b0c1338cd705d10af4b8b71a265 /virt/kvm | |
parent | 106069193ce501ea68649037bde7ea50ed492948 (diff) |
KVM: Force vmexit with virtual interrupt delivery
Need the EOI to track interrupt deliver status, so force vmexit
on EOI for rtc interrupt when enabling virtual interrupt delivery.
Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/ioapic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index 9d76baa78e89..76528fff252d 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c | |||
@@ -189,7 +189,7 @@ void kvm_ioapic_calculate_eoi_exitmap(struct kvm_vcpu *vcpu, | |||
189 | if (!e->fields.mask && | 189 | if (!e->fields.mask && |
190 | (e->fields.trig_mode == IOAPIC_LEVEL_TRIG || | 190 | (e->fields.trig_mode == IOAPIC_LEVEL_TRIG || |
191 | kvm_irq_has_notifier(ioapic->kvm, KVM_IRQCHIP_IOAPIC, | 191 | kvm_irq_has_notifier(ioapic->kvm, KVM_IRQCHIP_IOAPIC, |
192 | index))) { | 192 | index) || index == RTC_GSI)) { |
193 | if (kvm_apic_match_dest(vcpu, NULL, 0, | 193 | if (kvm_apic_match_dest(vcpu, NULL, 0, |
194 | e->fields.dest_id, e->fields.dest_mode)) | 194 | e->fields.dest_id, e->fields.dest_mode)) |
195 | __set_bit(e->fields.vector, (unsigned long *)eoi_exit_bitmap); | 195 | __set_bit(e->fields.vector, (unsigned long *)eoi_exit_bitmap); |