]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: make pid available for uevents without debugfs
authorClaudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Mon, 24 Jul 2017 11:40:03 +0000 (13:40 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Jul 2017 16:57:44 +0000 (18:57 +0200)
commitfdeaf7e3eb37c6dbc4b4ac97dbe1945d239eb788
tree85c15472318b860b001748fa9e7f0734f09b74d8
parentfa19871a166f6a940eb97dd511d3ddb1841ed95a
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 <frankja@linux.vnet.ibm.com>
Fixes: 286de8f6ac9202 ("KVM: trigger uevents when creating or destroying a VM")
Signed-off-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c