aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorAlexander Graf <[email protected]>2019-09-05 14:58:18 +0200
committerPaolo Bonzini <[email protected]>2019-09-10 16:39:34 +0200
commitfdcf756213756c23b533ca4974d1f48c6a4d4281 (patch)
treed59bf57056591970bb766196249a7575248ddbe9 /scripts/gdb/linux/modules.py
parentb6852ae75d4be5d3398a4a501443de221151fa9b (diff)
KVM: x86: Disable posted interrupts for non-standard IRQs delivery modes
We can easily route hardware interrupts directly into VM context when they target the "Fixed" or "LowPriority" delivery modes. However, on modes such as "SMI" or "Init", we need to go via KVM code to actually put the vCPU into a different mode of operation, so we can not post the interrupt Add code in the VMX and SVM PI logic to explicitly refuse to establish posted mappings for advanced IRQ deliver modes. This reflects the logic in __apic_accept_irq() which also only ever passes Fixed and LowPriority interrupts as posted interrupts into the guest. This fixes a bug I have with code which configures real hardware to inject virtual SMIs into my guest. Signed-off-by: Alexander Graf <[email protected]> Reviewed-by: Liran Alon <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Reviewed-by: Wanpeng Li <[email protected]> Cc: [email protected] Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions