]> xenbits.xensource.com Git - xen.git/commit
pt-irq fixes and improvements
authorJan Beulich <jbeulich@suse.com>
Mon, 16 Jun 2014 09:50:44 +0000 (11:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Jun 2014 09:50:44 +0000 (11:50 +0200)
commit568da4f8c43d2e5b614964c6aefd768de3e3af14
tree6c237b584bfe8b29276d0aa7d5f446a6b759e902
parent68c69978352adb5ab7c06598056f9eb88d7d6031
pt-irq fixes and improvements

Tools side:
- don't silently ignore unrecognized PT_IRQ_TYPE_* values
- respect that the interface type contains a union, making the code at
  once no longer depend on the hypervisor ignoring the bus field of the
  PCI portion of the interface structure)

Hypervisor side:
- don't ignore the PCI bus number passed in
- don't store values (gsi, link) calculated from other stored values
- avoid calling xfree() with a spin lock held where easily possible
- have pt_irq_destroy_bind() respect the passed in type
- scope reduction and constification of various variables
- use switch instead of if/else-if chains
- formatting

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Yang Zhang <yang.z.zhang@intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_domain.c
xen/arch/x86/physdev.c
xen/drivers/passthrough/io.c
xen/drivers/passthrough/vtd/x86/vtd.c
xen/include/asm-x86/hvm/io.h
xen/include/xen/hvm/irq.h