OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 2:12 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: MSI-X messages trigger "Invalid access at addr 0xFEE00000"
PostPosted: Thu Oct 28, 2021 7:33 pm 
Offline

Joined: Thu Oct 28, 2021 7:23 pm
Posts: 1
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:
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: 8infy, SemrushBot [Bot] and 65 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group