Thread (99 messages) flat view 99 messages, 9 authors, 2012-08-06

[PATCH 23/24] hvc_xen: allow dom0_write_console for HVM guests

From: Konrad Rzeszutek Wilk <hidden>
Date: 2012-08-01 15:03:35
Also in: lkml, xen-devel

On Thu, Jul 26, 2012 at 04:34:05PM +0100, Stefano Stabellini wrote:
On ARM all guests are HVM guests, including Dom0.
Allow dom0_write_console to be called by an HVM domain.
Um, but xen_hvm_domain() != xen_pv_domain() so won't this return without
printing anything?
quoted hunk ↗ jump to hunk
Signed-off-by: Stefano Stabellini <redacted>
---
 drivers/tty/hvc/hvc_xen.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/drivers/tty/hvc/hvc_xen.c b/drivers/tty/hvc/hvc_xen.c
index 3c04fb8..949edc2 100644
--- a/drivers/tty/hvc/hvc_xen.c
+++ b/drivers/tty/hvc/hvc_xen.c
@@ -616,12 +616,9 @@ static void xenboot_write_console(struct console *console, const char *string,
 	unsigned int linelen, off = 0;
 	const char *pos;
 
-	if (!xen_pv_domain())
-		return;
-
 	dom0_write_console(0, string, len);
 
-	if (xen_initial_domain())
+	if (!xen_pv_domain())
 		return;
 
 	domU_write_console(0, "(early) ", 8);
-- 
1.7.2.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help