]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/apic: Ensure own APIC use in apic_msr_{read,write}
authorBernhard Beschow <shentey@gmail.com>
Sun, 19 Oct 2025 21:03:01 +0000 (23:03 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 21 Oct 2025 18:16:47 +0000 (20:16 +0200)
commit337eece9c0a4b84cd2e34ed94b55efbad9f37a6b
treea670f53da823e0efbb28a71b061cc8417a9985b5
parent2fd15a24ca3b88531d66efb203d1f7f39d8519f5
hw/i386/apic: Ensure own APIC use in apic_msr_{read,write}

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 <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251019210303.104718-9-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/intc/apic.c
include/hw/i386/apic.h
target/i386/hvf/hvf.c
target/i386/tcg/system/misc_helper.c