]> xenbits.xensource.com Git - people/dariof/xen.git/commit
pass-through: adjust pIRQ migration
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Nov 2018 12:05:28 +0000 (13:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Nov 2018 12:05:28 +0000 (13:05 +0100)
commit782cf8ba467846b976db9365061298a81853a29f
tree5323464eaa7db321ebbe4f755e7b19745443a786
parente2d3f0e8d17c3333a43247b72ab2a805105f7caa
pass-through: adjust pIRQ migration

For one it is quite pointless to iterate over all pIRQ-s the domain has
when just one is being adjusted. Introduce hvm_migrate_pirq() as an
externally accessible function.

Additionally it is bogus to migrate the pIRQ to a vCPU different from
the one the event is supposed to be posted to - if anything, it might be
worth considering not to migrate the pIRQ at all in the posting case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/drivers/passthrough/io.c
xen/include/asm-x86/hvm/hvm.h