]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mshv: refactor synic init and cleanup
authorAnirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com>
Wed, 25 Feb 2026 12:44:02 +0000 (12:44 +0000)
committerWei Liu <wei.liu@kernel.org>
Wed, 25 Feb 2026 19:09:24 +0000 (19:09 +0000)
commit5a674ef871fe9d4c7477127340941f2c4d9a2741
tree487eabdc9af2cc70047f63f93228aadf890be74c
parentf69cfd8e8fd13b5d57e638fa1542fcd56f594ef0
mshv: refactor synic init and cleanup

Rename mshv_synic_init() to mshv_synic_cpu_init() and
mshv_synic_cleanup() to mshv_synic_cpu_exit() to better reflect that
these functions handle per-cpu synic setup and teardown.

Use mshv_synic_init/cleanup() to perform init/cleanup that is not per-cpu.
Move all the synic related setup from mshv_parent_partition_init.

Move the reboot notifier to mshv_synic.c because it currently only
operates on the synic cpuhp state.

Move out synic_pages from the global mshv_root since its use is now
completely local to mshv_synic.c.

This is in preparation for adding more stuff to mshv_synic_init().

No functional change.

Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Anirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/mshv_root.h
drivers/hv/mshv_root_main.c
drivers/hv/mshv_synic.c