From patchwork Wed Oct 26 07:47:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 9396205 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 259FF60231 for ; Wed, 26 Oct 2016 07:48:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E202E298DB for ; Wed, 26 Oct 2016 07:48:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6B5E298DD; Wed, 26 Oct 2016 07:48:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94497298DB for ; Wed, 26 Oct 2016 07:48:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754753AbcJZHse (ORCPT ); Wed, 26 Oct 2016 03:48:34 -0400 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 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1D74C61E4C; Wed, 26 Oct 2016 07:48:28 +0000 (UTC) Received: from pxdev.xzpeter.org (vpn1-4-183.pek2.redhat.com [10.72.4.183]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9Q7lGmE024891; Wed, 26 Oct 2016 03:48:24 -0400 From: Peter Xu To: kvm@vger.kernel.org Cc: drjones@redhat.com, rkrcmar@redhat.com, peterx@redhat.com, agordeev@redhat.com, jan.kiszka@web.de, pbonzini@redhat.com 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> In-Reply-To: <1477468040-21034-1-git-send-email-peterx@redhat.com> References: <1477468040-21034-1-git-send-email-peterx@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 26 Oct 2016 07:48:28 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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