On 3 Sep 2019, at 17:29, Alexander Graf <graf@xxxxxxxxxx> wrote:
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 SVM PI logic to explicitly refuse to establish posted
mappings for advanced IRQ deliver modes.
This fixes a bug I have with code which configures real hardware to
inject virtual SMIs into my guest.
Signed-off-by: Alexander Graf <graf@xxxxxxxxxx>
Nit: I prefer to squash both commits into one that change both VMX & SVM.
As itâs exactly the same change.