From patchwork Thu Aug 8 12:31:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Kamboju X-Patchwork-Id: 11084079 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D6BCD912 for ; Thu, 8 Aug 2019 12:32:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6BDB28B0D for ; Thu, 8 Aug 2019 12:32:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA2D428B3E; Thu, 8 Aug 2019 12:32:05 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable 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 7C3FF28B0D for ; Thu, 8 Aug 2019 12:32:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390010AbfHHMcE (ORCPT ); Thu, 8 Aug 2019 08:32:04 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36585 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389966AbfHHMbv (ORCPT ); Thu, 8 Aug 2019 08:31:51 -0400 Received: by mail-wr1-f68.google.com with SMTP id r3so1013583wrt.3 for ; Thu, 08 Aug 2019 05:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=719/5DFvRfWwCLtGmiwAoLfgu4awkKtG7JiiAlJQkos=; b=e7eo+W1fI12hnUdWyfetUQNy8huNzKGC0JTjy2Uf12H39LvQJjs2VSYqyNWH5IowtM O4gs4wf1RNCEvAh4neSGwqpIbrJ1EDZa3A/kRSS5nlnBh8rja5DroiXGQG6/GnjSx07X tcKyenRHFV4OQHg41LLJqa4joXEWOL/hZMtVTzHh017ouCrFd7R2wa03aVkvTIguwOLw Diq4RiUuMUwT+kolbxDoDVmvLmgJWG8Qsnt5QBcF7HO/AVYmLbd7cIMTxtWFOUj5IJtQ a+ci9bA2UTszQbarL4LpCpi9a8+F3xt6nbZ6B05RoktxiufweNYAosdPGGu1AlHtJUQl L1YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=719/5DFvRfWwCLtGmiwAoLfgu4awkKtG7JiiAlJQkos=; b=foK7grT/yELoHGU2oAXvHG5BN1qY80y9dhpQLMQ6iiKkXZVOHnduHqJ5mzkHCohXGQ uC2lg5COQ1JdvtS5Bca/CYJnSRVsxfvj2fQTgfWW/CJYJ1Q6bsVmXf3ydCli0QX17vwN SbwBMDx/WpUl12f5pt061B3lUA9HX+zJ0nclSa42zdaAhPEmR5J1BtW/A20H4jVstR3l oTer16a7L4pGiwUx41tNv2MqeSuyGjkM4SlUzB6mh7rLiq0rK/Hz4Y0gSUqpefbLGSAu doCKeMz44RcsLep8tdYV44mkheBZcvG7W+89CM9ktiJ2nuURd+4xQi0dbiHV7zzbhOkF lLBg== X-Gm-Message-State: APjAAAWoWJB21CbvGwzE3a9R7Lx9KDgLJhTDx+ZzkiRS0AhPRU3shyFL An0pxZTEVTuHe9eGhnDERbmrwg== X-Google-Smtp-Source: APXvYqwlq7Scq3WaphemqYY+kgeK5uDkZrYgbJ3SRXsQJKsK6KIXuoAOPIVRKn+9+pdgqHpZk4NGJQ== X-Received: by 2002:adf:9486:: with SMTP id 6mr17484262wrr.242.1565267509386; Thu, 08 Aug 2019 05:31:49 -0700 (PDT) Received: from hackbox2.linaro.org ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id h97sm3206111wrh.74.2019.08.08.05.31.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 08 Aug 2019 05:31:48 -0700 (PDT) From: Naresh Kamboju To: pbonzini@redhat.com, shuah@kernel.org Cc: linux-kernel@vger.kernel.org, drjones@redhat.com, sean.j.christopherson@intel.com, linux-kselftest@vger.kernel.org, kvm@vger.kernel.org, Naresh Kamboju Subject: [PATCH v2] selftests: kvm: Adding config fragments Date: Thu, 8 Aug 2019 13:31:40 +0100 Message-Id: <20190808123140.25583-1-naresh.kamboju@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP selftests kvm all test cases need pre-required kernel configs for the tests to get pass. The KVM tests are skipped without these configs: dev_fd = open(KVM_DEV_PATH, O_RDONLY); if (dev_fd < 0) exit(KSFT_SKIP); Signed-off-by: Naresh Kamboju Acked-by: Shuah Khan --- tools/testing/selftests/kvm/config | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tools/testing/selftests/kvm/config diff --git a/tools/testing/selftests/kvm/config b/tools/testing/selftests/kvm/config new file mode 100644 index 000000000000..63ed533f73d6 --- /dev/null +++ b/tools/testing/selftests/kvm/config @@ -0,0 +1,3 @@ +CONFIG_KVM=y +CONFIG_KVM_INTEL=y +CONFIG_KVM_AMD=y