From: Vincent Donnefort <vdonnefort@google.com>
To: rostedt@goodmis.org, mhiramat@kernel.org,
mathieu.desnoyers@efficios.com,
linux-trace-kernel@vger.kernel.org, maz@kernel.org,
oliver.upton@linux.dev, joey.gouly@arm.com,
suzuki.poulose@arm.com, yuzenghui@huawei.com
Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
jstultz@google.com, qperret@google.com, will@kernel.org,
kernel-team@android.com, linux-kernel@vger.kernel.org,
Vincent Donnefort <vdonnefort@google.com>
Subject: [PATCH v2 04/12] KVM: arm64: Support unaligned fixmap in the nVHE hyp
Date: Wed, 8 Jan 2025 11:45:28 +0000 [thread overview]
Message-ID: <20250108114536.627715-5-vdonnefort@google.com> (raw)
In-Reply-To: <20250108114536.627715-1-vdonnefort@google.com>
Return the fixmap VA with the page offset, instead of the page base
address.
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
diff --git a/arch/arm64/kvm/hyp/nvhe/mm.c b/arch/arm64/kvm/hyp/nvhe/mm.c
index 8850b591d775..c5a9d8874eb2 100644
--- a/arch/arm64/kvm/hyp/nvhe/mm.c
+++ b/arch/arm64/kvm/hyp/nvhe/mm.c
@@ -240,7 +240,7 @@ void *hyp_fixmap_map(phys_addr_t phys)
WRITE_ONCE(*ptep, pte);
dsb(ishst);
- return (void *)slot->addr;
+ return (void *)slot->addr + offset_in_page(phys);
}
static void fixmap_clear_slot(struct hyp_fixmap_slot *slot)
--
2.47.1.613.gc27f4b7a9f-goog
next prev parent reply other threads:[~2025-01-08 11:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-08 11:45 [PATCH v2 00/12] Tracefs support for pKVM Vincent Donnefort
2025-01-08 11:45 ` [PATCH v2 01/12] ring-buffer: Check for empty ring-buffer with rb_num_of_entries() Vincent Donnefort
2025-01-08 11:45 ` [PATCH v2 02/12] ring-buffer: Introducing ring-buffer remote Vincent Donnefort
2025-01-09 16:45 ` kernel test robot
2025-01-08 11:45 ` [PATCH v2 03/12] ring-buffer: Expose buffer_data_page material Vincent Donnefort
2025-01-08 11:45 ` Vincent Donnefort [this message]
2025-01-08 11:45 ` [PATCH v2 05/12] KVM: arm64: Add clock support in the nVHE hyp Vincent Donnefort
2025-01-08 11:45 ` [PATCH v2 06/12] KVM: arm64: Add tracing support for the pKVM hyp Vincent Donnefort
2025-01-08 11:45 ` [PATCH v2 07/12] KVM: arm64: Add hyp tracing to tracefs Vincent Donnefort
2025-01-08 11:45 ` [PATCH v2 08/12] KVM: arm64: Add clock for hyp tracefs Vincent Donnefort
2025-01-08 11:45 ` [PATCH v2 09/12] KVM: arm64: Add raw interface " Vincent Donnefort
2025-01-08 11:45 ` [PATCH v2 10/12] KVM: arm64: Add trace " Vincent Donnefort
2025-01-08 11:45 ` [PATCH v2 11/12] KVM: arm64: Add support for hyp events Vincent Donnefort
2025-01-08 11:45 ` [PATCH v2 12/12] KVM: arm64: Add kselftest for tracefs hyp tracefs Vincent Donnefort
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=20250108114536.627715-5-vdonnefort@google.com \
--to=vdonnefort@google.com \
--cc=joey.gouly@arm.com \
--cc=jstultz@google.com \
--cc=kernel-team@android.com \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=maz@kernel.org \
--cc=mhiramat@kernel.org \
--cc=oliver.upton@linux.dev \
--cc=qperret@google.com \
--cc=rostedt@goodmis.org \
--cc=suzuki.poulose@arm.com \
--cc=will@kernel.org \
--cc=yuzenghui@huawei.com \
/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®