Am 20. Oktober 2025 06:09:22 UTC schrieb "Philippe Mathieu-Daudé" <[email protected]>: >On 19/10/25 23:03, Bernhard Beschow wrote: >> Avoids the `current_cpu` global and seems more robust by not "forgetting" the >> own APIC and then re-determining it by cpu_get_current_apic() which uses the >> global. >> >> Signed-off-by: Bernhard Beschow <[email protected]> >> --- >> include/hw/i386/apic.h | 4 ++-- >> hw/intc/apic.c | 10 ++-------- >> target/i386/hvf/hvf.c | 4 ++-- >> target/i386/tcg/system/misc_helper.c | 4 ++-- >> 4 files changed, 8 insertions(+), 14 deletions(-) > >Good cleanup! > >Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Thanks! I think it would be possible to remove cpu_get_current_apic() entirely if each local APIC's memory region could be bound to the address space of each CPU. However, it seems that the respective root memory regions aren't prepared for that and I didn't want to go into this rabbit hole here in this context. Best regards, Bernhard
- [PATCH v3 02/10] hw/audio/pcspk: Add I/O trace eve... Bernhard Beschow
- Re: [PATCH v3 02/10] hw/audio/pcspk: Add I/O ... Philippe Mathieu-Daudé
- [PATCH v3 03/10] hw/rtc/mc146818rtc: Convert CMOS_... Bernhard Beschow
- Re: [PATCH v3 03/10] hw/rtc/mc146818rtc: Conv... Philippe Mathieu-Daudé
- [PATCH v3 06/10] hw/ide/ide-internal: Move dma_buf... Bernhard Beschow
- Re: [PATCH v3 06/10] hw/ide/ide-internal: Mov... Philippe Mathieu-Daudé
- [PATCH v3 05/10] hw/rtc/mc146818rtc: Assert correc... Bernhard Beschow
- Re: [PATCH v3 05/10] hw/rtc/mc146818rtc: Asse... Philippe Mathieu-Daudé
- [PATCH v3 08/10] hw/i386/apic: Ensure own APIC use... Bernhard Beschow
- Re: [PATCH v3 08/10] hw/i386/apic: Ensure own... Philippe Mathieu-Daudé
- Re: [PATCH v3 08/10] hw/i386/apic: Ensure... Bernhard Beschow
- [PATCH v3 09/10] hw/intc/apic: Pass APICCommonStat... Bernhard Beschow
- Re: [PATCH v3 09/10] hw/intc/apic: Pass APICC... Philippe Mathieu-Daudé
- Re: [PATCH v3 09/10] hw/intc/apic: Pass APICC... Philippe Mathieu-Daudé
- [PATCH v3 04/10] hw/rtc/mc146818rtc: Use ARRAY_SIZ... Bernhard Beschow
- Re: [PATCH v3 04/10] hw/rtc/mc146818rtc: Use ... Philippe Mathieu-Daudé
- Re: [PATCH v3 00/10] Cleanup patches, mostly PC-re... Philippe Mathieu-Daudé
- Re: [PATCH v3 00/10] Cleanup patches, mostly ... Philippe Mathieu-Daudé
