mirror of https://github.com/torvalds/linux.git
Restore an IRTE back to host control (remapped or posted MSI mode) if the *new* GSI route prevents posting the IRQ directly to a vCPU, regardless of the GSI routing type. Updating the IRTE if and only if the new GSI is an MSI results in KVM leaving an IRTE posting to a vCPU. The dangling IRTE can result in interrupts being incorrectly delivered to the guest, and in the worst case scenario can result in use-after-free, e.g. if the VM is torn down, but the underlying host IRQ isn't freed. Fixes: |
||
|---|---|---|
| .. | ||
| capabilities.h | ||
| hyperv.c | ||
| hyperv.h | ||
| hyperv_evmcs.c | ||
| hyperv_evmcs.h | ||
| main.c | ||
| nested.c | ||
| nested.h | ||
| pmu_intel.c | ||
| posted_intr.c | ||
| posted_intr.h | ||
| run_flags.h | ||
| sgx.c | ||
| sgx.h | ||
| vmcs.h | ||
| vmcs12.c | ||
| vmcs12.h | ||
| vmcs_shadow_fields.h | ||
| vmenter.S | ||
| vmx.c | ||
| vmx.h | ||
| vmx_onhyperv.c | ||
| vmx_onhyperv.h | ||
| vmx_ops.h | ||
| x86_ops.h | ||