From patchwork Fri Aug 9 07:24:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Kamboju X-Patchwork-Id: 11085517 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 47C59912 for ; Fri, 9 Aug 2019 07:24:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11B5428C2D for ; Fri, 9 Aug 2019 07:24:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 017CB28C3D; Fri, 9 Aug 2019 07:24:25 +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=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 92C7028C2D for ; Fri, 9 Aug 2019 07:24:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725980AbfHIHYX (ORCPT ); Fri, 9 Aug 2019 03:24:23 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:51398 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728823AbfHIHYW (ORCPT ); Fri, 9 Aug 2019 03:24:22 -0400 Received: by mail-wm1-f65.google.com with SMTP id 207so4661783wma.1 for ; Fri, 09 Aug 2019 00:24:21 -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=C5YgxiRdWg1QeF0RKI1Qt9EbdjzocEjmRbp/WRepaaE=; b=y6iGPlilN8Si8QhpWCJ9jAq3We6ZMX7x6l04tVExxbpkgl4qKg9Dj98hDdVl7XWf8y PV3WfvEwgUvjE7oGBt/zg5N+39uCB7dUHoUdKPCtiLHMgrKvCYxNX2PhKBSjqFWwgGzp 6Qz/slTlHhh8Hrpf6CVmmYFnCBm0Xd/j2crNXq78Dy4j9qQDyafXTpX1rD1XFAwPTqyA eKbxucva1RMOlQQ6OpUGTEpxL29e5/jioOouxU4KYUjFKudIJaxLhzNkDHqieMfkZNOU E3HlzzQ9vbOJSbVzD6y9s/gyAQpxQDe+yyf4X2R6KRsl5tWkHBNOY00kybUw7UWKOdCx mHUQ== 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=C5YgxiRdWg1QeF0RKI1Qt9EbdjzocEjmRbp/WRepaaE=; b=jOenmb4yS5EVptjCJyCLFtrWkXkCbmxA4PXaGLBCSTu6YHROFuNAw4CQSe8SKyWq1j sB6YxUntQeaXK1y23hZb2XJ1PlkK2mbMu3Bc9iDRt2g9CXYG2aCocJt8xh+MClm7z5ej l9Fk2XADVqVE/xDsS7SFMYoxk3rm8/lKMJuj8QFKrljjEdCvaQ4tg//GZrg267T+L5Ci MlcdPCFdzxeaRbguSEJTtsoeEs9GTryDjACULQo/gfMKoEy4TOXfobes5I4HjV3aM4CZ 7c7ouuHbTT3GiXHCFBbKMfP9+qak1EivvUj16jG1ep+fPMGo5n3TgGn/nPsf8fUJ66xj HIgQ== X-Gm-Message-State: APjAAAV+fmD0eN1IMhtS1tNC3yoU7+2lZq6eRoJvhfrl5BoaMckTAAEk 29wdLOs3LJyggSxQsSWOO3XOEarIFd6e5Q== X-Google-Smtp-Source: APXvYqzY/NrXDMMzWYfoIwzHh3sPo0P5ORJ4j0cOgeIwUdZDRDI4SZtMfr6mDW9pMufCtCpKa+OJ4Q== X-Received: by 2002:a1c:cfc3:: with SMTP id f186mr8407951wmg.134.1565335460541; Fri, 09 Aug 2019 00:24:20 -0700 (PDT) Received: from hackbox2.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p13sm26232705wrw.90.2019.08.09.00.24.19 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 09 Aug 2019 00:24:19 -0700 (PDT) From: Naresh Kamboju To: naresh.kamboju@linaro.org, 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 Subject: [PATCH v3 1/2] selftests: kvm: Adding config fragments Date: Fri, 9 Aug 2019 08:24:14 +0100 Message-Id: <20190809072415.29305-1-naresh.kamboju@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP selftests kvm all test cases need pre-required kernel config for the tests to get pass. CONFIG_KVM=y 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 | 1 + 1 file changed, 1 insertion(+) 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..14f90d8d6801 --- /dev/null +++ b/tools/testing/selftests/kvm/config @@ -0,0 +1 @@ +CONFIG_KVM=y From patchwork Fri Aug 9 07:24:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Kamboju X-Patchwork-Id: 11085521 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 BE3F16C5 for ; Fri, 9 Aug 2019 07:24:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A295828C28 for ; Fri, 9 Aug 2019 07:24:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9549928C2D; Fri, 9 Aug 2019 07:24:34 +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=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 3D46128C2B for ; Fri, 9 Aug 2019 07:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405719AbfHIHYe (ORCPT ); Fri, 9 Aug 2019 03:24:34 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33899 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405688AbfHIHYd (ORCPT ); Fri, 9 Aug 2019 03:24:33 -0400 Received: by mail-wr1-f66.google.com with SMTP id 31so97301873wrm.1 for ; Fri, 09 Aug 2019 00:24:32 -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:in-reply-to:references; bh=WA0xD70S4mvb/PQJqRGInCwCmljrweMt295QtIocBXo=; b=ECmtJohNEbHkaOvigVwh0bY5ueXewlnzoOQL3GT3J/vW0jaj8QP331qzTa6/eZe6ap FtgCKyWaI2sflGgqWmktF07KsIvaDVTZBEzGpnEFoqdjFHQJDHfA6TYzamqpL5yRiPdz uzOe419XsGH1DRGPvc6b1Wp8Z7lObTT7ntP5WtqGMZegXUN+mD85FpgToBqnZGaLapZj DjzTHVUT4HPBs4xXsvS1e4ie34ZZ7+rF/Et9jLybklI17im+xbwHvu4Hh3XmCSCbRa/f bFvlZ1E4nmQpCKjIJTF0SoLjYwmUZGLZp2NP/4mOtA88cRweUiVPLKMKKkVDkdHIRvC4 1cSQ== 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:in-reply-to :references; bh=WA0xD70S4mvb/PQJqRGInCwCmljrweMt295QtIocBXo=; b=iqRq9VBE74KuZfbg3W/vLnx1tjAYRYNjMRLnTCHUYU1YcP2pnxRv0u24aK3n+RuA3O ormZ6VX88eyX9+iYkQca2J67cPT+SZeMly+cR+k4kIwitszBgpLLYBVRtGKO23IVgRwy rUac3pQ/L8gFfgFS7XqALyeuavmdVg1+9TGovRBf/+dnyuGRDpdkJazellfGIesdIBC/ IPae2kTrT67slsyH9T1sDgntNv6K09DqUI8mTs5EBlU67ciAEq7jAO9+euY/VonAyVH0 +SRoWBa1/04WcF20M7kfJnupWckU6arhekrZo0fXpalH+49PrfBryC1avHEbDvrAu7yk n7xQ== X-Gm-Message-State: APjAAAVTRu6qMl8BLlPQBSQW6RzDDK9OpNSmZ5z5Kv3TpsRE6EOhXFTu OtAd2EbJA+lpX5GaFl4t0iuEkQ== X-Google-Smtp-Source: APXvYqzeCO+GY7pXqejgTG/gXxeki0mTFaAubI9/NXbDdkGSDD2/esm1gSsnUs44X+UO9i0yvJ2edQ== X-Received: by 2002:a5d:4484:: with SMTP id j4mr22016063wrq.143.1565335471654; Fri, 09 Aug 2019 00:24:31 -0700 (PDT) Received: from hackbox2.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p13sm26232705wrw.90.2019.08.09.00.24.30 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 09 Aug 2019 00:24:31 -0700 (PDT) From: Naresh Kamboju To: naresh.kamboju@linaro.org, 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 Subject: [PATCH v3 2/2] selftests: kvm: x86_64: Adding config fragments Date: Fri, 9 Aug 2019 08:24:15 +0100 Message-Id: <20190809072415.29305-2-naresh.kamboju@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190809072415.29305-1-naresh.kamboju@linaro.org> References: <20190809072415.29305-1-naresh.kamboju@linaro.org> Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP selftests kvm x86_64 test cases need pre-required kernel configs for the tests to get pass when you are using Intel or AMD CPU. CONFIG_KVM_INTEL=y CONFIG_KVM_AMD=y Signed-off-by: Naresh Kamboju --- tools/testing/selftests/kvm/x86_64/config | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tools/testing/selftests/kvm/x86_64/config diff --git a/tools/testing/selftests/kvm/x86_64/config b/tools/testing/selftests/kvm/x86_64/config new file mode 100644 index 000000000000..4df8c7f54885 --- /dev/null +++ b/tools/testing/selftests/kvm/x86_64/config @@ -0,0 +1,2 @@ +CONFIG_KVM_INTEL=y +CONFIG_KVM_AMD=y