mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
x86, passthrough: Enhance guest's interrupt affinity setting.
When guest uses logical flat destionation mode for interrupt delivery, vector doesn't change but destionation also can change, so should enhance the check condition. Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
This commit is contained in:
1 parent
16d3c5de3c
commit
2a3b9a4f92
1 file changed
+2
-1
@@ -199,7 +199,8 @@ int pt_irq_create_bind_vtd(
|
||||
}
|
||||
|
||||
/* if pirq is already mapped as vmsi, update the guest data/addr */
|
||||
if ( hvm_irq_dpci->mirq[pirq].gmsi.gvec != pt_irq_bind->u.msi.gvec ) {
|
||||
if ( hvm_irq_dpci->mirq[pirq].gmsi.gvec != pt_irq_bind->u.msi.gvec ||
|
||||
hvm_irq_dpci->mirq[pirq].gmsi.gflags != pt_irq_bind->u.msi.gflags) {
|
||||
hvm_irq_dpci->mirq[pirq].gmsi.old_gvec =
|
||||
hvm_irq_dpci->mirq[pirq].gmsi.gvec;
|
||||
hvm_irq_dpci->mirq[pirq].gmsi.old_gflags =
|
||||
|
||||