aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers
diff options
context:
space:
mode:
authorRadim Krčmář <[email protected]>2025-05-15 14:37:25 +0000
committerAnup Patel <[email protected]>2025-05-21 04:04:57 +0000
commit5b9db9c16f428ada473314ad1c49e55681be7a72 (patch)
treee89a235c378da2980ae53a14ee9514b4cbc36fcb /rust/helpers
parentRISC-V: KVM: Remove scounteren initialization (diff)
downloadkernel-5b9db9c16f428ada473314ad1c49e55681be7a72.tar.gz
kernel-5b9db9c16f428ada473314ad1c49e55681be7a72.zip
RISC-V: KVM: add KVM_CAP_RISCV_MP_STATE_RESET
Add a toggleable VM capability to reset the VCPU from userspace by setting MP_STATE_INIT_RECEIVED through IOCTL. Reset through a mp_state to avoid adding a new IOCTL. Do not reset on a transition from STOPPED to RUNNABLE, because it's better to avoid side effects that would complicate userspace adoption. The MP_STATE_INIT_RECEIVED is not a permanent mp_state -- IOCTL resets the VCPU while preserving the original mp_state -- because we wouldn't gain much from having a new state it in the rest of KVM, but it's a very non-standard use of the IOCTL. Signed-off-by: Radim Krčmář <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions