Skip to content

RFC Allow the RAS feature bit in ID_AA64PFR0_EL1 writable from userspace

Shaoqin Huang kvm kvmarm linux-arm-kernel linux-kselftest lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Use kvm_has_feat() to check if FEAT_RAS is advertised to the guestarch/arm64/kvm/guest.c arch/arm64/kvm/handle_exit.c arch/arm64/kvm/hyp/include/hyp/switch.h +2 more+10 -71 reply
2/2KVM: arm64: Allow the RAS feature bit in ID_AA64PFR0_EL1 writable from userspacearch/arm64/kvm/sys_regs.c tools/testing/selftests/kvm/aarch64/set_id_regs.c+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH v1 0/2] Allow the RAS feature bit in ID_AA64PFR0_EL1 writable from userspace

Currently the RAS feature bit is not writable in ID_AA64PFR0EL1, this makes migration fail when migration from the machine which RAS is 1 to another machine which RAS is 2.

Allow RAS writable from userspace would make the migration possible between two machines which RAS is different.

Shaoqin Huang (2):
KVM: arm64: Use kvm_has_feat() to check if FEAT_RAS is advertised to
the guest
KVM: arm64: Allow the RAS feature bit in ID_AA64PFR0_EL1 writable from
userspace

 arch/arm64/kvm/guest.c                            | 4 ++--
 arch/arm64/kvm/handle_exit.c                      | 2 +-
 arch/arm64/kvm/hyp/include/hyp/switch.h           | 2 +-
 arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h        | 7 +++++--
 arch/arm64/kvm/sys_regs.c                         | 3 +--
 tools/testing/selftests/kvm/aarch64/set_id_regs.c | 1 +
 6 files changed, 11 insertions(+), 8 deletions(-)
Signature · 1 line
2.40.1