diff options
| author | Brendan Jackman <[email protected]> | 2024-04-15 14:43:54 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2024-04-29 19:22:08 +0000 |
| commit | 0540193614eb6fadb140d87b076ee7094615f76d (patch) | |
| tree | baffdeacc4afcaec164d4d8397eef29121980c45 /arch/powerpc/lib/code-patching.c | |
| parent | KVM: selftests: Make monitor_mwait require MONITOR/MWAIT feature (diff) | |
| download | kernel-0540193614eb6fadb140d87b076ee7094615f76d.tar.gz kernel-0540193614eb6fadb140d87b076ee7094615f76d.zip | |
KVM: selftests: Avoid assuming "sudo" exists in NX hugepage test
Writing various root-only files, omit "sudo" when already running as root
to allow running the NX hugepage test on systems with a minimal rootfs,
i.e. without sudo.
Signed-off-by: Brendan Jackman <[email protected]>
Reviewed-by: Muhammad Usama Anjum <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[sean: name the helper do_sudo() instead of maybe_sudo(), massage changelog]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
