whpx: i386: ignore send_msi to interrupt vector 0
Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr> Link: https://lore.kernel.org/r/20260223233950.96076-28-mohamed@unpredictable.fr Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Mohamed Mediouni committed
Feb 24, 2026 at 00:39 UTC
9533cc6d360415e88935bcf0808771357b8faf56
1 file changed
+5
target/i386/whpx/whpx-apic.c
+5
@@ -192,6 +192,11 @@ static void whpx_send_msi(MSIMessage *msg)
192
uint8_t trigger_mode = (data >> MSI_DATA_TRIGGER_SHIFT) & 0x1;
193
uint8_t delivery = (data >> MSI_DATA_DELIVERY_MODE_SHIFT) & 0x7;
194
195
+ if (vector == 0) {
196
+ warn_report("Ignoring request for interrupt vector 0");
197
+ return;
198
+ }
199
+
200
WHV_INTERRUPT_CONTROL interrupt = {
201
/* Values correspond to delivery modes */
202
.Type = delivery,