diff options
author | Colton Lewis <[email protected]> | 2024-05-23 17:40:55 +0000 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2024-06-14 20:11:15 +0000 |
commit | 0b5afe05377d7993f19292bf49dd13e959000790 (patch) | |
tree | 6bffe6de6acca7d36ce8818bc2904503435343c1 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 83a7eefedc9b56fe7bfeff13b6c7356688ffa670 (diff) |
KVM: arm64: Add early_param to control WFx trapping
Add an early_params to control WFI and WFE trapping. This is to
control the degree guests can wait for interrupts on their own without
being trapped by KVM. Options for each param are trap and notrap. trap
enables the trap. notrap disables the trap. Note that when enabled,
traps are allowed but not guaranteed by the CPU architecture. Absent
an explicitly set policy, default to current behavior: disabling the
trap if only a single task is running and enabling otherwise.
Signed-off-by: Colton Lewis <[email protected]>
Reviewed-by: Jing Zhang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ oliver: rework kvm_vcpu_should_clear_tw*() for readability ]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions