From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Xu Subject: [PATCH kvm-unit-tests 17/17] x86/unittests: add intel-iommu test Date: Wed, 26 Oct 2016 15:47:20 +0800 Message-ID: <1477468040-21034-18-git-send-email-peterx@redhat.com> References: <1477468040-21034-1-git-send-email-peterx@redhat.com> Cc: drjones@redhat.com, rkrcmar@redhat.com, peterx@redhat.com, agordeev@redhat.com, jan.kiszka@web.de, pbonzini@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:36850 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755072AbcJZHs2 (ORCPT ); Wed, 26 Oct 2016 03:48:28 -0400 In-Reply-To: <1477468040-21034-1-git-send-email-peterx@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: I used pc-q35-2.7 instead of default q35 since I'd better make sure both QEMU 2.7/2.8 can run the test, which is to at least satisfy the following matrix: |----------+-----------+------------| | versions | KVM < 4.7 | KVM >= 4.7 | |----------+-----------+------------| | QEMU 2.7 | | | | QEMU 2.8 | | | |----------+-----------+------------| If using default q35, QEMU2.8+KVM<4.7 will fail to run. Signed-off-by: Peter Xu --- x86/unittests.cfg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x86/unittests.cfg b/x86/unittests.cfg index f760d8f..d59cf68 100644 --- a/x86/unittests.cfg +++ b/x86/unittests.cfg @@ -206,3 +206,10 @@ extra_params = -cpu kvm64,hv_time,hv_synic,hv_stimer -device hyperv-testdev file = hyperv_clock.flat smp = 2 extra_params = -cpu kvm64,hv_time + +[intel_iommu] +file = intel-iommu.flat +arch = x86_64 +timeout = 30 +smp = 4 +extra_params = -M pc-q35-2.7,kernel-irqchip=split -device intel-iommu,intremap=on -device edu -- 2.7.4