1. 01 3月, 2010 1 次提交
  2. 25 1月, 2010 1 次提交
    • A
      KVM: Fix race between APIC TMR and IRR · a5d36f82
      Avi Kivity 提交于
      When we queue an interrupt to the local apic, we set the IRR before the TMR.
      The vcpu can pick up the IRR and inject the interrupt before setting the TMR,
      and perhaps even EOI it, causing incorrect behaviour.
      
      The race is really insignificant since it can only occur on the first
      interrupt (usually following interrupts will not change TMR), but it's better
      closed than open.
      
      Fixed by reordering setting the TMR vs IRR.
      
      Cc: stable@kernel.org
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      a5d36f82
  3. 27 12月, 2009 1 次提交
  4. 03 12月, 2009 3 次提交
  5. 16 10月, 2009 1 次提交
  6. 04 10月, 2009 1 次提交
  7. 10 9月, 2009 15 次提交
  8. 10 6月, 2009 9 次提交
  9. 15 2月, 2009 1 次提交
  10. 31 12月, 2008 4 次提交
  11. 15 10月, 2008 3 次提交
    • J
      KVM: x86: Silence various LAPIC-related host kernel messages · 1b10bf31
      Jan Kiszka 提交于
      KVM-x86 dumps a lot of debug messages that have no meaning for normal
      operation:
       - INIT de-assertion is ignored
       - SIPIs are sent and received
       - APIC writes are unaligned or < 4 byte long
         (Windows Server 2003 triggers this on SMP)
      
      Degrade them to true debug messages, keeping the host kernel log clean
      for real problems.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      1b10bf31
    • M
      KVM: x86: do not execute halted vcpus · d7690175
      Marcelo Tosatti 提交于
      Offline or uninitialized vcpu's can be executed if requested to perform
      userspace work.
      
      Follow Avi's suggestion to handle halted vcpu's in the main loop,
      simplifying kvm_emulate_halt(). Introduce a new vcpu->requests bit to
      indicate events that promote state from halted to running.
      
      Also standardize vcpu wake sites.
      
      Signed-off-by: Marcelo Tosatti <mtosatti <at> redhat.com>
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      d7690175
    • M
      KVM: irq ack notification · f5244726
      Marcelo Tosatti 提交于
      Based on a patch from: Ben-Ami Yassour <benami@il.ibm.com>
      which was based on a patch from: Amit Shah <amit.shah@qumranet.com>
      
      Notify IRQ acking on PIC/APIC emulation. The previous patch missed two things:
      
      - Edge triggered interrupts on IOAPIC
      - PIC reset with IRR/ISR set should be equivalent to ack (LAPIC probably
      needs something similar).
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      CC: Amit Shah <amit.shah@qumranet.com>
      CC: Ben-Ami Yassour <benami@il.ibm.com>
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      f5244726