1. 07 4月, 2011 13 次提交
  2. 01 4月, 2011 4 次提交
    • I
      piix_pci: load path clean up · afe3ef1d
      Isaku Yamahata 提交于
      The previous patch didn't change the behavior when load,
      it resulted in ugly code. This patch cleans it up.
      
      With this patch, pic irq lines are manipulated when loaded.
      It is expected that it won't change the behaviour because
      the interrupts are level: at the moment e.g. pci devices already
      reassert interrupts on load.
      
      Test:
      - rung linux as guest and use flooding ping (ping -f) to host
        in order to trigger interrupts for e1000 emulated.
      - savevm/loadvm and see guest kept running after loadvm.
      
      To be honest, I'm not sure that ping -f caused enough interrupts
      because Linux e1000 driver supports NAPI.
      TODO: test more OSes, stress test with save/load, live-migration
      Signed-off-by: NIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      afe3ef1d
    • I
      piix_pci: optimize set irq path · ab431c28
      Isaku Yamahata 提交于
      optimize irq routing in piix_pic.c which has been a TODO.
      So far piix3 tracks each pirq level and checks whether a given pic pins is
      asserted by seeing if each pirq is mapped into the pic pin.
      This is independent on irq routing, but data path is on slow path.
      
      Given that irq routing is rarely changed and asserting pic pins is on
      data path, the path that asserts pic pins should be optimized and
      chainging irq routing should be on slow path.
      The new behavior with this patch series is to use bitmap which is addressed
      by pirq and pic pins with a given irq routing.
      When pirq is asserted, the bitmap is set and see if the pic pins is
      asserted by checking the bitmaps.
      When irq routing is changed, rebuild the bitmap and re-assert pic pins.
      
      test:
      - create VM with 4 e1000 nics in different pci slots
        (i.e. fn=0 for each e1000)
        Thus those e1000's INTA are connected to each PIRQ[A-D].
      - run linux as guest and saw each devices triggers interrupt
        by seeing /proc/interrupts. And then confirmed that each PIRQ[A-D]
        surely asserted interrupts.
        Because irq 10 and 11 are shared by 4 e1000's, it only one NIC is activated
        with ifconfig ethN up/down when counting interrupts.
      
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      ab431c28
    • I
      piix_pci: eliminate PIIX3State::pci_irq_levels · e735b55a
      Isaku Yamahata 提交于
      PIIX3State::pci_irq_levels are redundant which is already tracked by
      PCIBus layer. So eliminate them.
      
      Cc: Juan Quintela <quintela@redhat.com>
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      e735b55a
    • I
      pci: add accessor function to get irq levels · 9ddf8437
      Isaku Yamahata 提交于
      Introduce accessor function to know INTx levels.
      It will be used later by q35.
      Although piix_pci tracks the intx line levels, it can be eliminated
      by this helper function.
      
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      9ddf8437
  3. 29 3月, 2011 9 次提交
  4. 26 3月, 2011 4 次提交
  5. 25 3月, 2011 2 次提交
  6. 24 3月, 2011 2 次提交
  7. 23 3月, 2011 2 次提交
  8. 22 3月, 2011 4 次提交