Skip to content

virtio: Clean up scatterlists and use the DMA API

Christopher Covington linux-arm-kernel linux-s390 virtualization 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] virtio: Clean up scatterlists and use the DMA API
Quoted 37 lines · Andy Lutomirski
Quoted 7 lines · Christopher Covington
Quoted 2 lines · Andy Lutomirski

On Wed, Aug 27, 2014 at 9:13 AM, Christopher Covington <[email protected]> wrote:

Virtme looks interesting. If it's any use, here is my modest QEMU command line collection.

Quoted 9 lines

$dir/bin/x86_64-linux-gnu/qemu-system-x86_64 \
-m 1024 \
-kernel $dir/boot/x86_64-linux-gnu/bzImage-x86_64 \
-append 'root=/dev/root init=/sbin/x86_64-linux-gnu/init rootfstype=9p
rootflags=trans=virtio,version=9p2000.L ro console=ttyS0' \
-serial stdio \
-fsdev local,id=root,path=$dir,security_model=none \
-device virtio-9p-pci,fsdev=root,mount_tag=/dev/root \
-monitor none

This is similar to what virtme does, except that virtme will give you a much more functional system at the cost of a small fraction of a second of additional boot time. And virtme sometimes supports modules :)

Quoted 12 lines

$dir/bin/x86_64-linux-gnu/qemu-system-arm \
-M virt \
-cpu cortex-a15 \
-m 1024 \
-kernel $dir/boot/arm-linux-gnueabihf/Image \
-append 'root=/dev/root init=/sbin/arm-linux-gnueabihf/init rootfstype=9p
rootflags=trans=virtio,version=9p2000.L ro console=ttyAMA0' \
-serial stdio \
-fsdev local,id=root,path=$dir,security_model=none \
-device virtio-9p-device,fsdev=root,mount_tag=/dev/root \
-monitor none

Quoted 2 lines

Can you give me some hints as to how to configure a kernel for this? I tried to get anything other than versatilepb working and gave up.

I think you can just use vexpress_defconfig. If you want to from there you can unselect CONFIG_ARCH_VEXPRESS and set CONFIG_ARCH_VIRT=y, but I don't think that's strictly necessary.

Quoted 12 lines
Quoted 11 lines

$dir/bin/x86_64-linux-gnu/qemu-system-aarch64 \
-M virt \
-cpu cortex-a57 \
-m 1024 \
-kernel $dir/boot/aarch64-linux-gnu/Image \
-append 'root=/dev/root init=/sbin/aarch64-linux-gnu/init rootfstype=9p
rootflags=trans=virtio,version=9p2000.L ro console=ttyAMA0' \
-serial stdio \
-fsdev local,id=root,path=$dir,security_model=none \
-device virtio-9p-device,fsdev=root,mount_tag=/dev/root -monitor none

Quoted 1 line

Ooh, thanks! I'll add support for this to virtme.

Cheers,
Christopher

Signature · 3 lines
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by the Linux Foundation.