diff options
Diffstat (limited to 'drivers/lguest/core.c')
-rw-r--r-- | drivers/lguest/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c index 06869a2d3b40..02556bae9e9f 100644 --- a/drivers/lguest/core.c +++ b/drivers/lguest/core.c | |||
@@ -198,10 +198,10 @@ int run_guest(struct lguest *lg, unsigned long __user *user) | |||
198 | { | 198 | { |
199 | /* We stop running once the Guest is dead. */ | 199 | /* We stop running once the Guest is dead. */ |
200 | while (!lg->dead) { | 200 | while (!lg->dead) { |
201 | /* First we run any hypercalls the Guest wants done: either in | 201 | /* First we run any hypercalls the Guest wants done. */ |
202 | * the hypercall ring in "struct lguest_data", or directly by | 202 | if (lg->hcall) |
203 | * using int 31 (LGUEST_TRAP_ENTRY). */ | 203 | do_hypercalls(lg); |
204 | do_hypercalls(lg); | 204 | |
205 | /* It's possible the Guest did a SEND_DMA hypercall to the | 205 | /* It's possible the Guest did a SEND_DMA hypercall to the |
206 | * Launcher, in which case we return from the read() now. */ | 206 | * Launcher, in which case we return from the read() now. */ |
207 | if (lg->dma_is_pending) { | 207 | if (lg->dma_is_pending) { |