]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commit
passthrough: move pci_read_intx() and pci_intx()
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 4 Jan 2010 17:47:03 +0000 (17:47 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 4 Jan 2010 17:47:03 +0000 (17:47 +0000)
commitf058b3c3548336677f58ec694c1a5e5cc7b5d845
tree997da1178bd5f44a4dfa909c873d5c78f66ca03a
parent12d0187099adeb242eb7c232a0f3bf9d153716c3
passthrough: move pci_read_intx() and pci_intx()

Move pci_read_intx() and pci_intx() to above pt_irqpin_reg_init().
This is requred for a subsequent patch where pt_irqpin_reg_init()
calls pci_read_intx().

Cc: Tom Rotenberg <tom.rotenberg@gmail.com>
Cc: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
[patch 1/2] qemu-xen: pass-through: move pci_read_intx() and pci_intx()

From:

[patch 0/2] qemu-xen: pass-through: always use hw intx
pass-through: always use hw intx and always get it from the same place

The assumption that function zero always uses INTA tuns out not
to be true in the wild. This leaves us with three options.

1) Always use INTA

   This was the case before multi-function pass-through was possible.
   But with the advent of multi-function pass-through this may lead
   to excessive virtual GSI sharing.

2) Fix emulation to use INTA for function zero

3) Always use the hardware value for INTx

There doesn't seem to be much between 2) and 3) but the latter seems
slightly cleaner so I advocate that approach.
hw/pass-through.c