MSI-X messages trigger "Invalid access at addr 0xFEE00000"

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
FWest98
Posts: 1
Joined: Thu Oct 28, 2021 7:23 pm

MSI-X messages trigger "Invalid access at addr 0xFEE00000"

Post by FWest98 »

I have been pulling my hair out for 4 hours today with this extremely odd issue. I'm trying to implement MSI-X for my VirtIO network driver, but the interrupts are never triggered. Instead, when running QEMU with "-d guest_errors", it will warn me about an "Invalid access at addr 0xFEE00000, size 4, region '(null)', reason: rejected", triggered every time the network device would trigger MSI-X (after transmitting a packet and upon receiving one). I have no clue what causes this issue; it seems like the given Message Address is correct (based on other examples I found online), but still it doesn't work.

This is the code to set the MSI-X table entry:

Code: Select all

entry->msg_addr = 0xFEE00000 | (this_cpu->cpu_id << 12); // cpu_id is the LAPIC cpu_id which is 0 in my singlecore test; the LAPIC ID is also 0
entry->msg_data = int_number; // 64 in this case, tried other values without success
entry->vec_ctrl = 0; // unmasking
I think my LAPIC works fine, since I have set up the timer which fires regular interrupts. I have added the interrupt vectors to my IDT, and their ISR should log output. But clearly, they are not triggered. Are there any specific requirements to my LAPIC setup to get MSI-X working?

What is my mistake here? Anything obvious I'm missing?
Post Reply