]> err.no Git - linux-2.6/blobdiff - drivers/lguest/hypercalls.c
lguest: per-vcpu lguest task management
[linux-2.6] / drivers / lguest / hypercalls.c
index 7827671b2234bf620e966ae71e70a104ea39492c..83323b1cc0b274185e41b94042ea1378359e9e58 100644 (file)
@@ -80,7 +80,7 @@ static void do_hcall(struct lg_cpu *cpu, struct hcall_args *args)
                guest_set_pmd(lg, args->arg1, args->arg2);
                break;
        case LHCALL_SET_CLOCKEVENT:
-               guest_set_clockevent(lg, args->arg1);
+               guest_set_clockevent(cpu, args->arg1);
                break;
        case LHCALL_TS:
                /* This sets the TS flag, as we saw used in run_guest(). */
@@ -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;