Skip to content

Commit

Permalink
Merge pull request #490 from mato/xen-fix-console
Browse files Browse the repository at this point in the history
xen: Wait for console backend to process data
  • Loading branch information
mato authored Dec 16, 2020
2 parents b4d925c + afc2f26 commit 90af247
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bindings/xen/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,9 @@ void console_write(const char *buf, size_t len)

} while (written < len);

#if 0 /* For debugging only, no need to wait synchronously here. */
/* Wait for xenconsoled to consume all the data we gave. */
while (ACCESS_ONCE(console_ring->out_cons) != console_ring->out_prod)
hypercall_yield();
#endif
}

void console_init(void)
Expand Down

0 comments on commit 90af247

Please sign in to comment.