Commit ef18d479 authored by Yu Zhang's avatar Yu Zhang
Browse files

KVM: RISC-V: Convert to the gfn-based MMU notifier callbacks

Intel inclusion
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I7S3VQ


CVE: NA

----------------------------------------------------------------------

Align with upstreaming risc-v code, to use the gfn-base MMU notifier
APIs, which do the hva->gfn lookup in common code.

Note: RISC-V's MMU notifier support was in introduced in upstreaming
commit 9955371c ("RISC-V: KVM: Implement MMU notifiers"), which
uses the gfn-based MMU notififer in the first place. And with commit
b4c5936c ("KVM: Kill off the old hva-based MMU notifier callbacks")
backported, we can feel safe to use the latest, upstreaming aligned
implementation now.

Also, KVM_ARCH_WANT_NEW_MMU_NOTIFIER_APIS was used, so that other
archs which can not easily use the gfn-based MMU notifiers can continue
to use their hva-based code.

Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
Signed-off-by: default avatarYu Zhang <yu.c.zhang@linux.intel.com>
parent bd42f5af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment