1. 24 9月, 2014 11 次提交
  2. 17 9月, 2014 6 次提交
  3. 16 9月, 2014 2 次提交
    • Z
      kvm: ioapic: conditionally delay irq delivery duringeoi broadcast · 184564ef
      Zhang Haoyu 提交于
      Currently, we call ioapic_service() immediately when we find the irq is still
      active during eoi broadcast. But for real hardware, there's some delay between
      the EOI writing and irq delivery.  If we do not emulate this behavior, and
      re-inject the interrupt immediately after the guest sends an EOI and re-enables
      interrupts, a guest might spend all its time in the ISR if it has a broken
      handler for a level-triggered interrupt.
      
      Such livelock actually happens with Windows guests when resuming from
      hibernation.
      
      As there's no way to recognize the broken handle from new raised ones, this patch
      delays an interrupt if 10.000 consecutive EOIs found that the interrupt was
      still high.  The guest can then make a little forward progress, until a proper
      IRQ handler is set or until some detection routine in the guest (such as
      Linux's note_interrupt()) recognizes the situation.
      
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NZhang Haoyu <zhanghy@sangfor.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      184564ef
    • G
      KVM: x86: Use kvm_make_request when applicable · 105b21bb
      Guo Hui Liu 提交于
      This patch replace the set_bit method by kvm_make_request
      to make code more readable and consistent.
      Signed-off-by: NGuo Hui Liu <liuguohui@gmail.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      105b21bb
  4. 11 9月, 2014 3 次提交
  5. 10 9月, 2014 9 次提交
  6. 05 9月, 2014 5 次提交
  7. 03 9月, 2014 4 次提交