From: Jack Lange Date: Tue, 16 Aug 2011 23:33:41 +0000 (-0400) Subject: added O_RDWR flag to console file descriptor to allow keyboard input X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=6778d9e9c895ffaa5d995c0f4d745013595692cf added O_RDWR flag to console file descriptor to allow keyboard input --- diff --git a/linux_module/iface-console.c b/linux_module/iface-console.c index 02d9761..3e82d4c 100644 --- a/linux_module/iface-console.c +++ b/linux_module/iface-console.c @@ -217,7 +217,7 @@ static int console_connect(struct v3_guest * guest, unsigned int cmd, spin_lock_irqsave(&(cons->lock), flags); - cons_fd = anon_inode_getfd("v3-cons", &cons_fops, cons, 0); + cons_fd = anon_inode_getfd("v3-cons", &cons_fops, cons, O_RDWR); if (cons_fd < 0) { printk("Error creating console inode\n");