lguest: per-vcpu lguest task management
[linux-3.10.git] / drivers / lguest / hypercalls.c
index 6f8c70a..83323b1 100644 (file)
@@ -88,7 +88,7 @@ static void do_hcall(struct lg_cpu *cpu, struct hcall_args *args)
                break;
        case LHCALL_HALT:
                /* Similarly, this sets the halted flag for run_guest(). */
-               lg->halted = 1;
+               cpu->halted = 1;
                break;
        case LHCALL_NOTIFY:
                lg->pending_notify = args->arg1;