]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commit
fix multiple pci-attach/pci-detach by removing meaningless irq_index
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 1 Sep 2008 09:34:37 +0000 (10:34 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 3 Sep 2008 10:36:04 +0000 (11:36 +0100)
commitbe7277d93e3e417188b076fa78085284593fc317
treebfa8bbaa6b93bd17a9cb0d458a6e3edf2d5211d3
parent9fb12c7d45b5ffec154fa666c9ea9814f7c409a4
fix multiple pci-attach/pci-detach by removing meaningless irq_index

For HVM guest, we can't do pci-attach/pci-detach for >64 times due to
the meaningless checking in pci_register_device(). This patches
removes it.

With the patches, I [Dexuan] made a test of 300 times of attach/detach
and everything works well.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
(cherry picked from commit 990348aa4d6b55d2d2d1aa60b33385cb77c78052)
hw/pci.c
hw/pci.h