From: Lucas Meneghel Rodrigues Subject: =?UTF-8?q?=5BPATCH=5D=20KVM=20test=3A=20Split=20base=2Ecfg=20and=20create=20guest-hw=2Ecfg?= Date: Sat, 15 Oct 2011 00:59:39 -0300 Message-ID: <1318651179-28264-1-git-send-email-lmr@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org, mgoldish@redhat.com, Lucas Meneghel Rodrigues To: autotest@test.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:4447 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752291Ab1JOD7v (ORCPT ); Fri, 14 Oct 2011 23:59:51 -0400 Sender: kvm-owner@vger.kernel.org List-ID: In order to preseve the original behavior of the KVM test variants, split base.cfg once again and create guest-hw.cfg, that contains (mostly) hardware related variants (and some others that don't quite fit into a new config file). This patch was sent as pull request https://github.com/autotest/autotest/pull/37 Signed-off-by: Lucas Meneghel Rodrigues --- client/tests/kvm/base.cfg.sample | 101 --------------------------= ------- client/tests/kvm/guest-hw.cfg.sample | 102 ++++++++++++++++++++++++++= ++++++++ client/tests/kvm/tests.cfg.sample | 1 + 3 files changed, 103 insertions(+), 101 deletions(-) create mode 100644 client/tests/kvm/guest-hw.cfg.sample diff --git a/client/tests/kvm/base.cfg.sample b/client/tests/kvm/base.c= fg.sample index 977ebf6..6b3f9fd 100644 --- a/client/tests/kvm/base.cfg.sample +++ b/client/tests/kvm/base.cfg.sample @@ -105,104 +105,3 @@ login_timeout =3D 360 =20 # NFS directory of guest images images_good =3D fileserver.foo.com:/autotest/images_good - -# NICs -variants: - - @rtl8139: - nic_model =3D rtl8139 - no ethtool - jumbo: - mtu =3D 1500 - - e1000: - nic_model =3D e1000 - jumbo: - mtu =3D 16110 - ethtool: - # gso gro lro is only supported by latest kernel - supported_features =3D "tx rx sg tso gso gro lro" - - virtio_net: - nic_model =3D virtio - # You can add advanced attributes on nic_extra_params such as = mrg_rxbuf - #nic_extra_params =3D - # You can add advanced attributes through netdev_extra_params - # such as sndbuf, as an example, you can uncomment the - # following lines to enable the vhost support ( only available - # for tap ) - #netdev_extra_params =3D "vhost=3Don" - jumbo: - mtu =3D 65520 - ethtool: - supported_features =3D "tx sg tso gso" - whql.submission.device.net: - test_device =3D VirtIO Ethernet Adapter$ - # Device selection for the NDISTest client machine - dp_regex_testdev =3D VirtIO Ethernet Adapter$ - dp_regex_clientmsgdev =3D VirtIO Ethernet Adapter #2$ - dp_regex_clientsupportdev =3D VirtIO Ethernet Adapter #3$ - # Device selection for the NDISTest server machine - dp_regex_servermsgdev =3D VirtIO Ethernet Adapter$ - dp_regex_serversupportdev =3D VirtIO Ethernet Adapter #2$ - -variants: - - @up: - no autotest.npb autotest.tsc - - smp2: - smp =3D 2 - used_cpus =3D 2 - stress_boot: used_cpus =3D 10 - timedrift.with_load: used_cpus =3D 100 - -variants: - - @ide: - drive_format=3Dide - - scsi: - drive_format=3Dscsi - - virtio_blk: - drive_format=3Dvirtio - # Some older qemu might need image_boot=3Dyes for virtio image= s to work. - # Please uncomment the below if that is the case. - #image_boot=3Dyes - - ahci: - drive_format=3Dahci - cd_format=3Dahci - - usb.stick: - drive_format=3Dusb2 - - usb.cdrom: - cd_format=3Dusb2 - -variants: - - @qcow2: - image_format =3D qcow2 - check_image =3D yes - - vmdk: - no ioquit - image_format =3D vmdk - - raw: - no ioquit - image_format =3D raw - -variants: - - @smallpages: - - hugepages: - setup_hugepages =3D yes - extra_params +=3D " -mem-path /mnt/kvm_hugepage" - -variants: - - @no_pci_assignable: - pci_assignable =3D no - - pf_assignable: - pci_assignable =3D pf - device_names =3D eth1 - - vf_assignable: - pci_assignable =3D vf - # Driver (kernel module) that supports SR-IOV hardware. - # As of today (30-11-2009), we have 2 drivers for this type of= hardware: - # Intel=C2=AE 82576 Gigabit Ethernet Controller - igb - # Neterion=C2=AE X3100=E2=84=A2 - vxge - driver =3D igb - # Driver option to specify the maximum number of virtual funct= ions - # (on vxge the option is , for example, is max_config_dev) - # the default below is for the igb driver - driver_option =3D "max_vfs=3D7" - # Number of devices that are going to be requested. - devices_requested =3D 7 diff --git a/client/tests/kvm/guest-hw.cfg.sample b/client/tests/kvm/gu= est-hw.cfg.sample new file mode 100644 index 0000000..c504601 --- /dev/null +++ b/client/tests/kvm/guest-hw.cfg.sample @@ -0,0 +1,102 @@ +# Copy this file to guest-hw.cfg and edit it. +# +# NICs +variants: + - @rtl8139: + nic_model =3D rtl8139 + no ethtool + jumbo: + mtu =3D 1500 + - e1000: + nic_model =3D e1000 + jumbo: + mtu =3D 16110 + ethtool: + # gso gro lro is only supported by latest kernel + supported_features =3D "tx rx sg tso gso gro lro" + - virtio_net: + nic_model =3D virtio + # You can add advanced attributes on nic_extra_params such as = mrg_rxbuf + #nic_extra_params =3D + # You can add advanced attributes through netdev_extra_params + # such as sndbuf, as an example, you can uncomment the + # following lines to enable the vhost support ( only available + # for tap ) + #netdev_extra_params =3D "vhost=3Don" + jumbo: + mtu =3D 65520 + ethtool: + supported_features =3D "tx sg tso gso" + whql.submission.device.net: + test_device =3D VirtIO Ethernet Adapter$ + # Device selection for the NDISTest client machine + dp_regex_testdev =3D VirtIO Ethernet Adapter$ + dp_regex_clientmsgdev =3D VirtIO Ethernet Adapter #2$ + dp_regex_clientsupportdev =3D VirtIO Ethernet Adapter #3$ + # Device selection for the NDISTest server machine + dp_regex_servermsgdev =3D VirtIO Ethernet Adapter$ + dp_regex_serversupportdev =3D VirtIO Ethernet Adapter #2$ + +variants: + - @up: + no autotest.npb autotest.tsc + - smp2: + smp =3D 2 + used_cpus =3D 2 + stress_boot: used_cpus =3D 10 + timedrift.with_load: used_cpus =3D 100 + +variants: + - @ide: + drive_format=3Dide + - scsi: + drive_format=3Dscsi + - virtio_blk: + drive_format=3Dvirtio + # Some older qemu might need image_boot=3Dyes for virtio image= s to work. + # Please uncomment the below if that is the case. + #image_boot=3Dyes + - ahci: + drive_format=3Dahci + cd_format=3Dahci + - usb_stick: + drive_format=3Dusb2 + - usb_cdrom: + cd_format=3Dusb2 + +variants: + - @qcow2: + image_format =3D qcow2 + check_image =3D yes + - vmdk: + no ioquit + image_format =3D vmdk + - raw: + no ioquit + image_format =3D raw + +variants: + - @no_pci_assignable: + pci_assignable =3D no + - pf_assignable: + pci_assignable =3D pf + device_names =3D eth1 + - vf_assignable: + pci_assignable =3D vf + # Driver (kernel module) that supports SR-IOV hardware. + # As of today (30-11-2009), we have 2 drivers for this type of= hardware: + # Intel=C2=AE 82576 Gigabit Ethernet Controller - igb + # Neterion=C2=AE X3100=E2=84=A2 - vxge + driver =3D igb + # Driver option to specify the maximum number of virtual funct= ions + # (on vxge the option is , for example, is max_config_dev) + # the default below is for the igb driver + driver_option =3D "max_vfs=3D7" + # Number of devices that are going to be requested. + devices_requested =3D 7 + +variants: + - @smallpages: + - hugepages: + setup_hugepages =3D yes + extra_params +=3D " -mem-path /mnt/kvm_hugepage" diff --git a/client/tests/kvm/tests.cfg.sample b/client/tests/kvm/tests= =2Ecfg.sample index f2ca3ee..5de2e2f 100644 --- a/client/tests/kvm/tests.cfg.sample +++ b/client/tests/kvm/tests.cfg.sample @@ -6,6 +6,7 @@ include base.cfg include subtests.cfg include guest-os.cfg +include guest_hw.cfg include cdkeys.cfg include virtio-win.cfg =20 --=20 1.7.6.4