All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] MIPS: add CONFIG_VIRTUALIZATION for virtio support
@ 2011-01-18 11:20 Aurelien Jarno
  2011-01-18 11:20 ` [PATCH 2/2] MIPS: Malta: enable Cirrus FB console Aurelien Jarno
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Aurelien Jarno @ 2011-01-18 11:20 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: Aurelien Jarno

Add CONFIG_VIRTUALIZATION to the MIPS architecture and include the
the virtio code there. Used to enable the virtio drivers under QEMU.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
 arch/mips/Kconfig |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index f489ec3..f9d6a83 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2400,4 +2400,20 @@ source "security/Kconfig"
 
 source "crypto/Kconfig"
 
+menuconfig VIRTUALIZATION
+	bool "Virtualization"
+	default n
+	---help---
+	  Say Y here to get to see options for using your Linux host to run other
+	  operating systems inside virtual machines (guests).
+	  This option alone does not add any kernel code.
+
+	  If you say N, all options in this submenu will be skipped and disabled.
+
+if VIRTUALIZATION
+
+source drivers/virtio/Kconfig
+
+endif # VIRTUALIZATION
+
 source "lib/Kconfig"
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] MIPS: Malta: enable Cirrus FB console
  2011-01-18 11:20 [PATCH 1/2] MIPS: add CONFIG_VIRTUALIZATION for virtio support Aurelien Jarno
@ 2011-01-18 11:20 ` Aurelien Jarno
  2011-01-18 18:14   ` Ralf Baechle
  2011-01-18 18:13 ` [PATCH 1/2] MIPS: add CONFIG_VIRTUALIZATION for virtio support Ralf Baechle
  2011-01-19 14:30 ` Christoph Hellwig
  2 siblings, 1 reply; 6+ messages in thread
From: Aurelien Jarno @ 2011-01-18 11:20 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: Aurelien Jarno

While most users of a physical Malta board are using the serial port
as the console, a lot of QEMU users would prefer to interact with a
graphical console. Enable the Cirrus FB support in the Malta default
configuration to make that possible. Note that the default console will
still be the serial port, users have to pass "console=tty0" to the
kernel to use the Cirrus FB.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
 arch/mips/configs/malta_defconfig |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/mips/configs/malta_defconfig b/arch/mips/configs/malta_defconfig
index b455d0f..9d03b68 100644
--- a/arch/mips/configs/malta_defconfig
+++ b/arch/mips/configs/malta_defconfig
@@ -369,7 +369,10 @@ CONFIG_VT_HW_CONSOLE_BINDING=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 # CONFIG_HWMON is not set
+CONFIG_FB=y
+CONFIG_FB_CIRRUS=y
 # CONFIG_VGA_CONSOLE is not set
+CONFIG_FRAMEBUFFER_CONSOLE=y
 CONFIG_HID=m
 CONFIG_LEDS_CLASS=m
 CONFIG_LEDS_TRIGGER_TIMER=m
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] MIPS: add CONFIG_VIRTUALIZATION for virtio support
  2011-01-18 11:20 [PATCH 1/2] MIPS: add CONFIG_VIRTUALIZATION for virtio support Aurelien Jarno
  2011-01-18 11:20 ` [PATCH 2/2] MIPS: Malta: enable Cirrus FB console Aurelien Jarno
@ 2011-01-18 18:13 ` Ralf Baechle
  2011-01-19 14:30 ` Christoph Hellwig
  2 siblings, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2011-01-18 18:13 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: linux-mips

On Tue, Jan 18, 2011 at 12:20:44PM +0100, Aurelien Jarno wrote:

> Add CONFIG_VIRTUALIZATION to the MIPS architecture and include the
> the virtio code there. Used to enable the virtio drivers under QEMU.

Good one.  Even though a "feature" it may deserve backporting to -stable.

Applied,

  Ralf

  Ralf

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] MIPS: Malta: enable Cirrus FB console
  2011-01-18 11:20 ` [PATCH 2/2] MIPS: Malta: enable Cirrus FB console Aurelien Jarno
@ 2011-01-18 18:14   ` Ralf Baechle
  0 siblings, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2011-01-18 18:14 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: linux-mips

On Tue, Jan 18, 2011 at 12:20:45PM +0100, Aurelien Jarno wrote:

> While most users of a physical Malta board are using the serial port
> as the console, a lot of QEMU users would prefer to interact with a
> graphical console. Enable the Cirrus FB support in the Malta default
> configuration to make that possible. Note that the default console will
> still be the serial port, users have to pass "console=tty0" to the
> kernel to use the Cirrus FB.

Thanks for sorting this out.  Applied,

  Ralf

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] MIPS: add CONFIG_VIRTUALIZATION for virtio support
  2011-01-18 11:20 [PATCH 1/2] MIPS: add CONFIG_VIRTUALIZATION for virtio support Aurelien Jarno
  2011-01-18 11:20 ` [PATCH 2/2] MIPS: Malta: enable Cirrus FB console Aurelien Jarno
  2011-01-18 18:13 ` [PATCH 1/2] MIPS: add CONFIG_VIRTUALIZATION for virtio support Ralf Baechle
@ 2011-01-19 14:30 ` Christoph Hellwig
  2011-01-22 14:31   ` Aurelien Jarno
  2 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2011-01-19 14:30 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: linux-mips, ralf

On Tue, Jan 18, 2011 at 12:20:44PM +0100, Aurelien Jarno wrote:
> Add CONFIG_VIRTUALIZATION to the MIPS architecture and include the
> the virtio code there. Used to enable the virtio drivers under QEMU.
> 
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> ---
>  arch/mips/Kconfig |   16 ++++++++++++++++

> +menuconfig VIRTUALIZATION
> +	bool "Virtualization"
> +	default n
> +	---help---
> +	  Say Y here to get to see options for using your Linux host to run other
> +	  operating systems inside virtual machines (guests).
> +	  This option alone does not add any kernel code.
> +
> +	  If you say N, all options in this submenu will be skipped and disabled.

This item seems rather misleading as you're using virtio drivers as a
guest.  I think the right fix is to just remove the VIRTUALIZATION
dependency for the qemu drivers and just include them from
drivers/Kconfig for all architectures.  There aren't a whole lot Linux
architectures that don't have a qemu emulation these days.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] MIPS: add CONFIG_VIRTUALIZATION for virtio support
  2011-01-19 14:30 ` Christoph Hellwig
@ 2011-01-22 14:31   ` Aurelien Jarno
  0 siblings, 0 replies; 6+ messages in thread
From: Aurelien Jarno @ 2011-01-22 14:31 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-mips, ralf

On Wed, Jan 19, 2011 at 03:30:49PM +0100, Christoph Hellwig wrote:
> On Tue, Jan 18, 2011 at 12:20:44PM +0100, Aurelien Jarno wrote:
> > Add CONFIG_VIRTUALIZATION to the MIPS architecture and include the
> > the virtio code there. Used to enable the virtio drivers under QEMU.
> > 
> > Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> > ---
> >  arch/mips/Kconfig |   16 ++++++++++++++++
> 
> > +menuconfig VIRTUALIZATION
> > +	bool "Virtualization"
> > +	default n
> > +	---help---
> > +	  Say Y here to get to see options for using your Linux host to run other
> > +	  operating systems inside virtual machines (guests).
> > +	  This option alone does not add any kernel code.
> > +
> > +	  If you say N, all options in this submenu will be skipped and disabled.
> 
> This item seems rather misleading as you're using virtio drivers as a
> guest.  I think the right fix is to just remove the VIRTUALIZATION
> dependency for the qemu drivers and just include them from
> drivers/Kconfig for all architectures.  There aren't a whole lot Linux
> architectures that don't have a qemu emulation these days.
> 

Pulling drivers/Kconfig from drivers may not be the best option either,
as it only pulls "PCI driver for virtio devices" and "Virtio balloon
driver", which actually doesn't really belong to drivers, but maybe to 
"Bus options (PCI etc.)" and "Processor type and features".

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-01-22 14:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18 11:20 [PATCH 1/2] MIPS: add CONFIG_VIRTUALIZATION for virtio support Aurelien Jarno
2011-01-18 11:20 ` [PATCH 2/2] MIPS: Malta: enable Cirrus FB console Aurelien Jarno
2011-01-18 18:14   ` Ralf Baechle
2011-01-18 18:13 ` [PATCH 1/2] MIPS: add CONFIG_VIRTUALIZATION for virtio support Ralf Baechle
2011-01-19 14:30 ` Christoph Hellwig
2011-01-22 14:31   ` Aurelien Jarno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.