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: 170798 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp8509225ile; Thu, 8 Aug 2019 05:32:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoYeadJ+lZppr3GYaK0jv02OGqgsq5BqF6B+KaawgwAEIMjAOcx2HVldAGJECDylpKExye X-Received: by 2002:a17:90a:db44:: with SMTP id u4mr3889949pjx.52.1565267528609; Thu, 08 Aug 2019 05:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565267528; cv=none; d=google.com; s=arc-20160816; b=z22uLYvBu566SzykF0htLofDRATd5Uh/zzpIs0ptQeutnYUBmfw7qaOgU7pBWzKMTY GMAdRQeXvsw6v4eGDKSsgLFbomEZIODQhzRDtFdiANLxt6lC482tVCqCAkGWxo4uFul2 RjwCNHu+NWjM+W6PDxCRwmYAcBMOtQNdFSDYCvN0c/MTfhVOOzVyMPO7Bjw/Wm5W4N7F kza4VAqajzTyWh997OcfwKjX6dZOMF17DHiLZCPPYpICfKDbZQKsQb5D9+4T0h1GBMxS E7fv9US/m0UyQgUdKoNlMbSUCgZ6sfvJfYrhc4HnS9e/3qM2hChXikBiwYvexCvRzO54 Nymw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=719/5DFvRfWwCLtGmiwAoLfgu4awkKtG7JiiAlJQkos=; b=uwL1gIMgnvXAwLw52ocN2tqEeva60E8eQ4zCCC/cMAXCvlOf+XrgzHfZ6xwZ4TQMpb ivBSehUoKFGduYa5K0l3ZOrJJuUTN+zKqz9wZADCWMJOeviPgYdc2jvcj7RiGN59Z9ns RBHuFZmg0WdYsuhFdgInw6QAkWbNwqVSTKupLDlT3Xg2YJkQlRyZO7F7o0MfWcRmPY4L q7fQw99/R7pvci69t1PhTyYUH1tIfOmCgaMX3JhKawa9Qm4NLEQ54qngGT1E/qyFoVwP MBInVysGG03Cywb+7Tj8en5vZ4N6a0+ocLJec5aL1epq5PiIU9mYIiK9ILpXdhKDRttr gjjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e7eo+W1f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si47511132plb.345.2019.08.08.05.32.08; Thu, 08 Aug 2019 05:32:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e7eo+W1f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390030AbfHHMcG (ORCPT + 28 others); Thu, 8 Aug 2019 08:32:06 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39920 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389970AbfHHMbv (ORCPT ); Thu, 8 Aug 2019 08:31:51 -0400 Received: by mail-wr1-f66.google.com with SMTP id t16so4628900wra.6 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=jPgZc9DUoV2Q1eGKlZ6qGGmGKiTo3EaTMaojWcpZOuDxH6FUBFLgF1QehGjU8L+FDx 8MNhzLsIvcWUrIT3N2ZuEJjD00TmdYondWMSCTC965+dPxIGEtz2/fUiT4dRk/dIOqJl lsgpMaRxRr5Z78Oiiuo6uZtChYqtDwp1piOVfdMZnFsChNQspPKfSfm/QINBKnV2ehse jHT8V55z0m4YW83ZHlCpYEWkpQB99mLfWOoR08f0xI9DdewU/DhRMT9qE0jsyBnwQbxy oKYlCY0M/5uZnxhSJ6YhPHqa35tENytaw07izAOeLS9WiciP/w2POmrWv8dLYrfo43vV fwsA== X-Gm-Message-State: APjAAAWgE9WJR5Vby3dXRJnjXW2WR/X27fAAypud+UJB+b3bctrn1g37 behJj+BZmiauFgPuY73kSd5PAQ== 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- tools/testing/selftests/kvm/config | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tools/testing/selftests/kvm/config -- 2.17.1 Acked-by: Shuah Khan 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