i386/tcg: implement x2APIC registers MSR access
authorBui Quang Minh <minhquangbui99@gmail.com>
Thu, 11 Jan 2024 15:43:58 +0000 (22:43 +0700)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 14 Feb 2024 11:09:32 +0000 (06:09 -0500)
commitb2101358e591c9f0a93739dd3aee72935a79af80
treee7de8fbcf49e117033327de565ed8818124ac0e3
parentbad38726e9dc52d840d151a1ba38b5614b521feb
i386/tcg: implement x2APIC registers MSR access

This commit creates apic_register_read/write which are used by both
apic_mem_read/write for MMIO access and apic_msr_read/write for MSR access.

The apic_msr_read/write returns -1 on error, accelerator can use this to
raise the appropriate exception.

Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
Message-Id: <20240111154404.5333-2-minhquangbui99@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/intc/apic.c
hw/intc/trace-events
include/hw/i386/apic.h
target/i386/cpu.h
target/i386/tcg/sysemu/misc_helper.c