Commit fdeaf7e
KVM: make pid available for uevents without debugfs
Simplify and improve the code so that the PID is always available in
the uevent even when debugfs is not available.
This adds a userspace_pid field to struct kvm, as per Radim's
suggestion, so that the PID can be retrieved on destruction too.
Acked-by: Janosch Frank <[email protected]>
Fixes: 286de8f ("KVM: trigger uevents when creating or destroying a VM")
Signed-off-by: Claudio Imbrenda <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>1 parent fa19871 commit fdeaf7e
2 files changed
+13
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
448 | 449 | | |
449 | 450 | | |
450 | 451 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3883 | 3883 | | |
3884 | 3884 | | |
3885 | 3885 | | |
3886 | | - | |
3887 | 3886 | | |
3888 | 3887 | | |
3889 | 3888 | | |
| |||
3907 | 3906 | | |
3908 | 3907 | | |
3909 | 3908 | | |
3910 | | - | |
| 3909 | + | |
3911 | 3910 | | |
3912 | | - | |
| 3911 | + | |
| 3912 | + | |
3913 | 3913 | | |
| 3914 | + | |
| 3915 | + | |
3914 | 3916 | | |
3915 | 3917 | | |
3916 | | - | |
3917 | | - | |
3918 | | - | |
3919 | | - | |
3920 | | - | |
3921 | | - | |
3922 | | - | |
3923 | | - | |
3924 | | - | |
3925 | | - | |
3926 | | - | |
3927 | | - | |
3928 | | - | |
3929 | | - | |
3930 | | - | |
3931 | | - | |
3932 | | - | |
3933 | | - | |
3934 | | - | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
| 3922 | + | |
| 3923 | + | |
| 3924 | + | |
3935 | 3925 | | |
3936 | 3926 | | |
3937 | 3927 | | |
3938 | 3928 | | |
3939 | 3929 | | |
3940 | 3930 | | |
3941 | | - | |
3942 | 3931 | | |
3943 | 3932 | | |
3944 | 3933 | | |
| |||
0 commit comments