aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_access_variable_array.c
diff options
context:
space:
mode:
authorHaren Myneni <[email protected]>2023-03-20 19:50:08 -0700
committerMichael Ellerman <[email protected]>2023-03-29 23:01:35 +1100
commiteca9f6e6f83b6725b84e1c76fdde19b003cff0eb (patch)
treea85160d03f47c760409191eca37497eec84b5af6 /tools/testing/selftests/bpf/progs/test_access_variable_array.c
parentfd7276189450110ed835eb0a334e62d2f1c4e3be (diff)
powerpc/pseries/vas: Ignore VAS update for DLPAR if copy/paste is not enabled
The hypervisor supports user-mode NX from Power10. pseries_vas_dlpar_cpu() is called from lparcfg_write() to update VAS windows for DLPAR event in shared processor mode and the kernel gets -ENOTSUPP for HCALLs if the user-mode NX is not supported. The current VAS implementation also supports only with Radix page tables. Whereas in dedicated processor mode, pseries_vas_notifier() is registered only if the copy/paste feature is enabled. So instead of displaying HCALL error messages, update VAS capabilities if the copy/paste feature is available. This patch ignores updating VAS capabilities in pseries_vas_dlpar_cpu() and returns success if the copy/paste feature is not enabled. Then lparcfg_write() completes the processor DLPAR operations without any failures. Fixes: 2147783d6bf0 ("powerpc/pseries: Use lparcfg to reconfig VAS windows for DLPAR CPU") Cc: [email protected] # v6.1+ Signed-off-by: Haren Myneni <[email protected]> Reviewed-by: Nathan Lynch <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_access_variable_array.c')
0 files changed, 0 insertions, 0 deletions