|
From: | Paolo Bonzini |
Subject: | Re: should ioapic_service really be modelling cpu writes? |
Date: | Fri, 11 Nov 2022 14:14:58 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 |
On 11/11/22 13:26, Alex Bennée wrote:
if (addr > 0xfff || !index) { switch (attrs.requester_type) { } MSIMessage msi = { .address = addr, .data = val }; apic_send_msi(&msi); return MEMTX_OK; }
which at least gets things booting properly. Does this seem like a better modelling of the APIC behaviour?
Yes and you don't even need the "if", just do MTRT_CPU vs everything else. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |