From: Vincent Donnefort <vdonnefort@google.com>
To: catalin.marinas@arm.com, will@kernel.org
Cc: mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, kernel-team@android.com,
fuad.tabba@linux.dev, Vincent Donnefort <vdonnefort@google.com>
Subject: [PATCH 1/5] drivers/virt: pkvm: Make pkvm_init_hyp_services() __init
Date: Wed, 7 Oct 2026 16:02:51 +0100 [thread overview]
Message-ID: <20261007150255.1648849-2-vdonnefort@google.com> (raw)
In-Reply-To: <20261007150255.1648849-1-vdonnefort@google.com>
pkvm_init_hyp_services() is only called from kvm_init_hyp_services(),
which is already marked __init. Mark pkvm_init_hyp_services() as __init
too.
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
---
drivers/virt/coco/pkvm-guest/arm-pkvm-guest.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/virt/coco/pkvm-guest/arm-pkvm-guest.c b/drivers/virt/coco/pkvm-guest/arm-pkvm-guest.c
index 26fe9c3f22e3..e7d7cedf7f6f 100644
--- a/drivers/virt/coco/pkvm-guest/arm-pkvm-guest.c
+++ b/drivers/virt/coco/pkvm-guest/arm-pkvm-guest.c
@@ -9,6 +9,7 @@
#include <linux/arm-smccc.h>
#include <linux/array_size.h>
+#include <linux/init.h>
#include <linux/io.h>
#include <linux/mem_encrypt.h>
#include <linux/mm.h>
@@ -96,7 +97,7 @@ static int mmio_guard_ioremap_hook(phys_addr_t phys, size_t size,
return 0;
}
-void pkvm_init_hyp_services(void)
+void __init pkvm_init_hyp_services(void)
{
int i;
struct arm_smccc_res res;
--
2.56.0.rc1.315.gc6ed9934b7-goog
next prev parent reply other threads:[~2026-10-07 15:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-07 15:02 [PATCH 0/5] drivers/virt: pkvm: Protected VMs with PAGE_SIZE smaller than the hypervisor granule Vincent Donnefort
2026-10-07 15:02 ` Vincent Donnefort [this message]
2026-10-08 11:18 ` [PATCH 1/5] drivers/virt: pkvm: Make pkvm_init_hyp_services() __init Fuad Tabba
2026-10-07 15:02 ` [PATCH 2/5] drivers/virt: pkvm: Make pkvm_granule __ro_after_init Vincent Donnefort
2026-10-08 11:19 ` Fuad Tabba
2026-10-07 15:02 ` [PATCH 3/5] drivers/virt: pkvm: Handle a granule larger than PAGE_SIZE for MEM_SHARE Vincent Donnefort
2026-10-07 15:02 ` [PATCH 4/5] drivers/virt: pkvm: Handle a granule larger than PAGE_SIZE for MMIO_GUARD Vincent Donnefort
2026-10-08 11:20 ` Fuad Tabba
2026-10-07 15:02 ` [PATCH 5/5] drivers/virt: pkvm: Allow granule larger than PAGE_SIZE Vincent Donnefort
2026-10-08 11:21 ` Fuad Tabba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261007150255.1648849-2-vdonnefort@google.com \
--to=vdonnefort@google.com \
--cc=catalin.marinas@arm.com \
--cc=fuad.tabba@linux.dev \
--cc=kernel-team@android.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®