diff options
Diffstat (limited to 'drivers/lguest/hypercalls.c')
-rw-r--r-- | drivers/lguest/hypercalls.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/lguest/hypercalls.c b/drivers/lguest/hypercalls.c index 83511eb0923d..1219af493c0f 100644 --- a/drivers/lguest/hypercalls.c +++ b/drivers/lguest/hypercalls.c | |||
@@ -117,9 +117,6 @@ static void do_hcall(struct lg_cpu *cpu, struct hcall_args *args) | |||
117 | /* Similarly, this sets the halted flag for run_guest(). */ | 117 | /* Similarly, this sets the halted flag for run_guest(). */ |
118 | cpu->halted = 1; | 118 | cpu->halted = 1; |
119 | break; | 119 | break; |
120 | case LHCALL_NOTIFY: | ||
121 | cpu->pending_notify = args->arg1; | ||
122 | break; | ||
123 | default: | 120 | default: |
124 | /* It should be an architecture-specific hypercall. */ | 121 | /* It should be an architecture-specific hypercall. */ |
125 | if (lguest_arch_do_hcall(cpu, args)) | 122 | if (lguest_arch_do_hcall(cpu, args)) |
@@ -189,7 +186,7 @@ static void do_async_hcalls(struct lg_cpu *cpu) | |||
189 | * Stop doing hypercalls if they want to notify the Launcher: | 186 | * Stop doing hypercalls if they want to notify the Launcher: |
190 | * it needs to service this first. | 187 | * it needs to service this first. |
191 | */ | 188 | */ |
192 | if (cpu->pending_notify) | 189 | if (cpu->pending.trap) |
193 | break; | 190 | break; |
194 | } | 191 | } |
195 | } | 192 | } |
@@ -280,7 +277,7 @@ void do_hypercalls(struct lg_cpu *cpu) | |||
280 | * NOTIFY to the Launcher, we want to return now. Otherwise we do | 277 | * NOTIFY to the Launcher, we want to return now. Otherwise we do |
281 | * the hypercall. | 278 | * the hypercall. |
282 | */ | 279 | */ |
283 | if (!cpu->pending_notify) { | 280 | if (!cpu->pending.trap) { |
284 | do_hcall(cpu, cpu->hcall); | 281 | do_hcall(cpu, cpu->hcall); |
285 | /* | 282 | /* |
286 | * Tricky point: we reset the hcall pointer to mark the | 283 | * Tricky point: we reset the hcall pointer to mark the |