]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
plat/common: Migrate the APIC implementation to the xPIC driver
authorMichalis Pappas <michalis@unikraft.io>
Mon, 11 Sep 2023 18:10:02 +0000 (20:10 +0200)
committerRazvan Deaconescu <razvand@unikraft.io>
Fri, 20 Oct 2023 16:35:55 +0000 (19:35 +0300)
commitf9f24b971dba4f82fa4af24215b7ff93065f2e97
tree64a3373194bf23b33e9532c27c757b2297322678
parent8347b35035c50456becefbac28f42ef761b3ab5c
plat/common: Migrate the APIC implementation to the xPIC driver

Introduce `arch/x86/x86_64/include/uk/asm/arch.h` for architectural
definitions of x86_64 and migrate APIC definitions into arch.

Migrate the driver implementation into `drivers/ukintctlr/xpic/`
The APIC ops are still accessible via the `apic` global.

Update the include guards of `apic.h`.

Update `plat/` to include `uk/intctlr/apic.h`. Update the KVM config
to enable `UKINTCTLR_XPIC` when compiling for x86_64.

Notice: Picking individual commits in this PR will break the build.

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1103
arch/x86/x86_64/include/uk/asm/apic.h [new file with mode: 0644]
arch/x86/x86_64/include/uk/asm/arch.h
drivers/ukintctlr/xpic/Config.uk
drivers/ukintctlr/xpic/include/uk/intctlr/apic.h [new file with mode: 0644]
plat/common/include/x86/apic.h [deleted file]
plat/common/include/x86/apic_defs.h [deleted file]
plat/common/lcpu.c
plat/common/x86/lcpu.c