All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] qemu/x86: use symlinked kernel config
@ 2016-04-29 17:38 Gustavo Zacarias
  2016-04-29 17:38 ` [Buildroot] [PATCH 2/3] qemu/x86*: enable virtio for " Gustavo Zacarias
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2016-04-29 17:38 UTC (permalink / raw)
  To: buildroot

It's exactly the same as the x86_64 variant so just create a symlink.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 board/qemu/x86/linux-4.5.config | 32 +-------------------------------
 1 file changed, 1 insertion(+), 31 deletions(-)
 mode change 100644 => 120000 board/qemu/x86/linux-4.5.config

diff --git a/board/qemu/x86/linux-4.5.config b/board/qemu/x86/linux-4.5.config
deleted file mode 100644
index c630f02..0000000
--- a/board/qemu/x86/linux-4.5.config
+++ /dev/null
@@ -1,31 +0,0 @@
-CONFIG_SYSVIPC=y
-CONFIG_MODULES=y
-CONFIG_MODULE_UNLOAD=y
-CONFIG_SMP=y
-CONFIG_NET=y
-CONFIG_PACKET=y
-CONFIG_UNIX=y
-CONFIG_INET=y
-CONFIG_BLK_DEV_SD=y
-CONFIG_ATA=y
-CONFIG_ATA_PIIX=y
-CONFIG_NETDEVICES=y
-CONFIG_NE2K_PCI=y
-CONFIG_8139CP=y
-CONFIG_INPUT_EVDEV=y
-CONFIG_SERIAL_8250=y
-CONFIG_SERIAL_8250_CONSOLE=y
-CONFIG_DRM=y
-CONFIG_DRM_QXL=y
-CONFIG_SOUND=y
-CONFIG_SND=y
-CONFIG_SND_HDA_INTEL=y
-CONFIG_SND_HDA_GENERIC=y
-CONFIG_USB=y
-CONFIG_USB_XHCI_HCD=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_UHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_EXT4_FS=y
-CONFIG_TMPFS=y
-CONFIG_TMPFS_POSIX_ACL=y
diff --git a/board/qemu/x86/linux-4.5.config b/board/qemu/x86/linux-4.5.config
new file mode 120000
index 0000000..735bcf7
--- /dev/null
+++ b/board/qemu/x86/linux-4.5.config
@@ -0,0 +1 @@
+../x86_64/linux-4.5.config
\ No newline at end of file
-- 
2.7.3

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

* [Buildroot] [PATCH 2/3] qemu/x86*: enable virtio for kernel config
  2016-04-29 17:38 [Buildroot] [PATCH 1/3] qemu/x86: use symlinked kernel config Gustavo Zacarias
@ 2016-04-29 17:38 ` Gustavo Zacarias
  2016-04-29 17:38 ` [Buildroot] [PATCH 3/3] qemu/x86*: update instructions to use virtio Gustavo Zacarias
  2016-04-30 13:28 ` [Buildroot] [PATCH 1/3] qemu/x86: use symlinked kernel config Thomas Petazzoni
  2 siblings, 0 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2016-04-29 17:38 UTC (permalink / raw)
  To: buildroot

It has better performance for block and net.
Enable virgl (DRM_VIRTIO_GPU) support for 3D acceleration.
And also DRM_BOCHS for better stdvga acceleration.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 board/qemu/x86_64/linux-4.5.config | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/board/qemu/x86_64/linux-4.5.config b/board/qemu/x86_64/linux-4.5.config
index c630f02..e3bd145 100644
--- a/board/qemu/x86_64/linux-4.5.config
+++ b/board/qemu/x86_64/linux-4.5.config
@@ -2,21 +2,30 @@ CONFIG_SYSVIPC=y
 CONFIG_MODULES=y
 CONFIG_MODULE_UNLOAD=y
 CONFIG_SMP=y
+CONFIG_HYPERVISOR_GUEST=y
+CONFIG_PARAVIRT=y
 CONFIG_NET=y
 CONFIG_PACKET=y
 CONFIG_UNIX=y
 CONFIG_INET=y
+CONFIG_VIRTIO_BLK=y
 CONFIG_BLK_DEV_SD=y
+CONFIG_SCSI_VIRTIO=y
 CONFIG_ATA=y
 CONFIG_ATA_PIIX=y
 CONFIG_NETDEVICES=y
+CONFIG_VIRTIO_NET=y
 CONFIG_NE2K_PCI=y
 CONFIG_8139CP=y
 CONFIG_INPUT_EVDEV=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_VIRTIO_CONSOLE=y
+CONFIG_HW_RANDOM_VIRTIO=m
 CONFIG_DRM=y
+CONFIG_DRM_BOCHS=y
 CONFIG_DRM_QXL=y
+CONFIG_DRM_VIRTIO_GPU=y
 CONFIG_SOUND=y
 CONFIG_SND=y
 CONFIG_SND_HDA_INTEL=y
@@ -26,6 +35,11 @@ CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_UHCI_HCD=y
 CONFIG_USB_STORAGE=y
+CONFIG_VIRTIO_PCI=y
+CONFIG_VIRTIO_BALLOON=y
+CONFIG_VIRTIO_INPUT=y
+CONFIG_VIRTIO_MMIO=y
+CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y
 CONFIG_EXT4_FS=y
 CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
-- 
2.7.3

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

* [Buildroot] [PATCH 3/3] qemu/x86*: update instructions to use virtio
  2016-04-29 17:38 [Buildroot] [PATCH 1/3] qemu/x86: use symlinked kernel config Gustavo Zacarias
  2016-04-29 17:38 ` [Buildroot] [PATCH 2/3] qemu/x86*: enable virtio for " Gustavo Zacarias
@ 2016-04-29 17:38 ` Gustavo Zacarias
  2016-04-30 13:28 ` [Buildroot] [PATCH 1/3] qemu/x86: use symlinked kernel config Thomas Petazzoni
  2 siblings, 0 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2016-04-29 17:38 UTC (permalink / raw)
  To: buildroot

Switch the invocation command to use virtio-blk and virtio-net for
better performance.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 board/qemu/x86/readme.txt    | 4 ++--
 board/qemu/x86_64/readme.txt | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/board/qemu/x86/readme.txt b/board/qemu/x86/readme.txt
index 62c51b0..4f2e4c7 100644
--- a/board/qemu/x86/readme.txt
+++ b/board/qemu/x86/readme.txt
@@ -1,9 +1,9 @@
 Run the emulation with:
 
-  qemu-system-i386 -M pc -kernel output/images/bzImage -drive file=output/images/rootfs.ext2,if=ide,format=raw -append root=/dev/sda -net nic,model=rtl8139 -net user
+  qemu-system-i386 -M pc -kernel output/images/bzImage -drive file=output/images/rootfs.ext2,if=virtio,format=raw -append root=/dev/vda -net nic,model=virtio -net user
 
 Optionally add -smp N to emulate a SMP system with N CPUs.
 
 The login prompt will appear in the graphical window.
 
-Tested with QEMU 2.3.0
+Tested with QEMU 2.5.0
diff --git a/board/qemu/x86_64/readme.txt b/board/qemu/x86_64/readme.txt
index e2be574..6ea28d3 100644
--- a/board/qemu/x86_64/readme.txt
+++ b/board/qemu/x86_64/readme.txt
@@ -1,9 +1,9 @@
 Run the emulation with:
 
-  qemu-system-x86_64 -M pc -kernel output/images/bzImage -drive file=output/images/rootfs.ext2,if=ide,format=raw -append root=/dev/sda -net nic,model=rtl8139 -net user
+  qemu-system-x86_64 -M pc -kernel output/images/bzImage -drive file=output/images/rootfs.ext2,if=virtio,format=raw -append root=/dev/vda -net nic,model=virtio -net user
 
 Optionally add -smp N to emulate a SMP system with N CPUs.
 
 The login prompt will appear in the graphical window.
 
-Tested with QEMU 2.3.0
+Tested with QEMU 2.5.0
-- 
2.7.3

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

* [Buildroot] [PATCH 1/3] qemu/x86: use symlinked kernel config
  2016-04-29 17:38 [Buildroot] [PATCH 1/3] qemu/x86: use symlinked kernel config Gustavo Zacarias
  2016-04-29 17:38 ` [Buildroot] [PATCH 2/3] qemu/x86*: enable virtio for " Gustavo Zacarias
  2016-04-29 17:38 ` [Buildroot] [PATCH 3/3] qemu/x86*: update instructions to use virtio Gustavo Zacarias
@ 2016-04-30 13:28 ` Thomas Petazzoni
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-04-30 13:28 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 29 Apr 2016 14:38:24 -0300, Gustavo Zacarias wrote:
> It's exactly the same as the x86_64 variant so just create a symlink.
> 
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
>  board/qemu/x86/linux-4.5.config | 32 +-------------------------------
>  1 file changed, 1 insertion(+), 31 deletions(-)
>  mode change 100644 => 120000 board/qemu/x86/linux-4.5.config

All three patches applied, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2016-04-30 13:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-29 17:38 [Buildroot] [PATCH 1/3] qemu/x86: use symlinked kernel config Gustavo Zacarias
2016-04-29 17:38 ` [Buildroot] [PATCH 2/3] qemu/x86*: enable virtio for " Gustavo Zacarias
2016-04-29 17:38 ` [Buildroot] [PATCH 3/3] qemu/x86*: update instructions to use virtio Gustavo Zacarias
2016-04-30 13:28 ` [Buildroot] [PATCH 1/3] qemu/x86: use symlinked kernel config Thomas Petazzoni

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.