Message ID | 820ac2e90904220802h2c7238b5ofd2d61c9c89def67@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 363af32..e8239b6 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -58,6 +58,10 @@ #include "irq.h" #endif +#include <linux/sched-if.h> +#include <linux/ipi.h> +#include <linux/trace.h> + MODULE_AUTHOR("Qumranet"); MODULE_LICENSE("GPL"); @@ -778,6 +782,8 @@ int kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id) vcpu->vcpu_id = id; init_waitqueue_head(&vcpu->wq); + vcpu->thread = current; + page = alloc_page(GFP_KERNEL | __GFP_ZERO); if (!page) {