Record guest as a VTIME state instead of guessing it from VTIME_SYS and PF_VCPU. This is going to simplify the cputime read side especially as its state machine is going to further expand in order to fully support kcpustat on nohz_full.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -255,6 +255,8 @@ enum vtime_state { · 254 unmodified lines | |||
| 255 | VTIME_SYS, | 255 | VTIME_SYS, |
| 256 | /* Task runs in userspace in a CPU with VTIME active: */ | 256 | /* Task runs in userspace in a CPU with VTIME active: */ |
| 257 | VTIME_USER, | 257 | VTIME_USER, |
| 258 | /* Task runs as guests in a CPU with VTIME active: */ | ||
| 259 | VTIME_GUEST, | ||
| 258 | }; | 260 | }; |
| 259 | 261 | ||
| 260 | struct vtime { | 262 | struct vtime { |