[Aboriginal] [PATCH] Move i586 to virtio
Alessio Igor Bogani
alessioigorbogani at gmail.com
Wed Jun 22 02:46:44 PDT 2011
# HG changeset patch
# User Alessio Igor Bogani <alessioigorbogani at gmail.com>
# Date 1308735970 -7200
# Node ID 9cb1d126a6102d47f3266a148247c97758a01bfd
# Parent 67accb5d252602b3b2ad2d0b8aa6fd9a62c74030
Move i586 to virtio
diff -r 67accb5d2526 -r 9cb1d126a610 sources/targets/i586/settings
--- a/sources/targets/i586/settings Tue Jun 21 09:34:44 2011 +0200
+++ b/sources/targets/i586/settings Wed Jun 22 11:46:10 2011 +0200
@@ -13,7 +13,7 @@
GCC_FLAGS=
QEMU_TEST=$KARCH
-ROOT=hda
+ROOT=vda
CONSOLE=ttyS0
# Gentoo from Scratch
@@ -29,14 +29,22 @@
LINUX_CONFIG="
CONFIG_M586=y
CONFIG_ACPI=y
-CONFIG_BLK_DEV_PIIX=y
-CONFIG_NETDEV_1000=y
-CONFIG_E1000=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_HW_RANDOM_VIRTIO=y
+CONFIG_PARAVIRT_GUEST=y
+CONFIG_VIRTIO_BLK=y
+CONFIG_VIRTIO_CONSOLE=y
+CONFIG_KVM_CLOCK=y
+CONFIG_KVM_GUEST=y
"
emulator_command()
{
- echo qemu -cpu pentium $(qemu_defaults "$@")
+# echo qemu -cpu pentium $(qemu_defaults "$@")
+ echo "if [ \"\$WITH_HDC\"X\"\" != \"X\" ]; then WITH_HDC=\"-drive file=\$HDC,if=virtio\"; fi"
+ echo "if [ \"\$WITH_HDB\"X\"\" != \"X\" ]; then WITH_HDB=\"-drive file=\$HDB,if=virtio\"; fi"
+ echo -n "qemu -cpu pentium -nographic -no-reboot -kernel $KERNEL \$WITH_HDC \$WITH_HDB"
+ [ "$SYSIMAGE_TYPE" != "initramfs" ] && echo -n " -drive file=$IMAGE,if=virtio"
+ echo -n " -append \"$(kernel_cmdline)\" \$QEMU_EXTRA -net nic,model=virtio -net user"
}
More information about the Aboriginal
mailing list