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: 170889 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp9621976ile; Fri, 9 Aug 2019 00:24:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWvVoljjtaaKylyF0mDGVhQq3W2R8Fy8jc0MRA1qz5hRmoadfwUiL7CtosC6xYhrkvZ+SB X-Received: by 2002:a63:7b4d:: with SMTP id k13mr6634644pgn.182.1565335464319; Fri, 09 Aug 2019 00:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565335464; cv=none; d=google.com; s=arc-20160816; b=j81G+xKENn/uBau9zP1vVZDlm9w7pQTMRRevpAxf7CKB7JazsuKpKDI/uUosbA7CTP VjYOu3GLw+SI/1K1iJBAKrD11nlvqjreNJaXuTuSuZ9REiDdnRLoVXyregwoX9PaqTF1 duYJX9zSL5R9vDbctELg+7X4XBp2Z9M1CUu8lKI1sDrnQOgGv2m5jklVlXcgjUar5BSz 6sNzO2ipauMbpe0siSW48ih4lucvXPxotPZRkeryBywgxCT3USXpZs8I8Gn0v2FaPJ4D nIQkCJvZMnrOWCpsnsAEEnL4vjJPonx8yz5VQh9OeI45Ce1jm/dl5ybKjNcE5dwve32h TF0g== 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=C5YgxiRdWg1QeF0RKI1Qt9EbdjzocEjmRbp/WRepaaE=; b=NdxiJ18PHnmvumK220cvbQGQ3lXju0/Wy+1spmnX6FQyU8XY/a+BJPJNRKRrQsQnuM 28MIgzOtdntStLkABuPD9IjmBmCapgbl6xZyh1AqTNZRogxmm1PGEBbIhJYgQpRrXE/d nUG6rfV6v3vzioI6ThBuLhBT3AtULgsM0Ws+tdrJnpOx5xCHvK/zRMaqJ8P/DwiHQ/mj VnK9AIdNWHIVKjdhp3OZTpi2jjVKyMNQxzFhpP7YftPw2q0JywzBOjRxXp61cN+Vveh6 s4GJzoWsvInTkiGvZcUPw30xSawvRWTinYh2fYGPRu/EITEIEF8oWb7I4/K2SqtOHzUk 85Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y6iGPlil; 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 d6si18341174pgu.153.2019.08.09.00.24.23; Fri, 09 Aug 2019 00:24:24 -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=y6iGPlil; 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 S2405664AbfHIHYW (ORCPT + 28 others); Fri, 9 Aug 2019 03:24:22 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38445 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725980AbfHIHYW (ORCPT ); Fri, 9 Aug 2019 03:24:22 -0400 Received: by mail-wm1-f66.google.com with SMTP id m125so614443wmm.3 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=Wg7tqlRoS1K5QoWeUoFm+Y92m+9ETi9LWUiozRpexCsalphqNFOPsCYiXEoIjHi0Yd uvVdko5dfiO4+kax9DNDeaJCaeHitfEFU/LD75mIDAdHrPBW3HuY+puXeIv0NWOLyGll j+gvdKZUGukYP60ubkkKi8oiOvtlKWu6DO0cnoCBn9YRCb82DuNbf/tQ2RfQ38wlPctK C93ZO0/O23CFe7UZIbdFrMuT1mVF2oQTY0DbHzV3nLSN5GfBx9yksY1oMkA2pNfgpd/F DJwijXim6ncpLRCqVe9Wv1hZ028SLwrIXU2p4t/kaj5r7DWXwGThBi8I6YSC8QfykxUX 5rww== X-Gm-Message-State: APjAAAUZAxTxyNEnJCHUyQkKn+GDetVQn7UERYgihXPdvXSWAZW+dnGu jA4U0m6b3ytZv8oNpGuLYHCuGg== 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-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 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 -- 2.17.1 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: 170890 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp9622136ile; Fri, 9 Aug 2019 00:24:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyS39BDIdwhLaZgueRU4qeCK50tmHNgZgaiObe8Zn6Wg0ni2xHGN4KBpOj7wTT1tsgZv6s/ X-Received: by 2002:a65:6495:: with SMTP id e21mr16361375pgv.359.1565335475532; Fri, 09 Aug 2019 00:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565335475; cv=none; d=google.com; s=arc-20160816; b=ljiA7Qk/1Qrv+ff4+UzYi8+IWl8fV4p5PwUNgG0+rrfO30Fhg/VIJUcduJKOg3d/Xj zmYXWynCqYplPbs0B3NWhTDSmVwj6WXOXiBNtGYOd3jNqbgD1d2TxUBkyS9VM0GAM/ux mZjKi1DpkB3DMlLqW1j9CKzeaQmWjxrhvYvCwGZ7t7pPux0pdzq3tZ6R4mxdlYkDmitR qn/SgiJcXj2nWKGmKjf6vM4dqb6gN3a4HwBsWxD0QvybVi16nedakpH2C6NZKC8Dqm7X gWKogCuCOk3G4GxIOJX9erVal5YkpdmBg8q3H5UtJUpYeCpGi5DMM7GjmLXX8SByN1DD 9DDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=WA0xD70S4mvb/PQJqRGInCwCmljrweMt295QtIocBXo=; b=08S8Afz6ya8k3MYd6cqHZRrutSQSN4h5R9Cw/T3v9KC7wFNd6Xo6cG8PZmWdgu0Ydm sB4KHLYIogaWYLeEANm4Uee4rtBPVmZPXOYSFUfrkut1B1dKJNkEW+STY7Ex1y0Wtxow 4zzrDE8nPycH+DwZFKYpZ1mR/kQJ6a5TFotdrc1UuFElWuVpebclR7SWGKYd4umPiaU4 jeTDi4SIUXTDFKzUsr4eL0GMRwhqddqy/6qkIEDBNoJCE9aYDNM+azCMevzCjEKOnIyF zjz+CiU3felfQrN8k2cc2cxH3T+2cSEBzDTGgpR+S+JQq8Vss+Qbo0UxCKaTcSih9H0R IjFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ECmtJohN; 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 o75si3696173pje.87.2019.08.09.00.24.35; Fri, 09 Aug 2019 00:24:35 -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=ECmtJohN; 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 S2405754AbfHIHYe (ORCPT + 28 others); Fri, 9 Aug 2019 03:24:34 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39218 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405700AbfHIHYd (ORCPT ); Fri, 9 Aug 2019 03:24:33 -0400 Received: by mail-wr1-f66.google.com with SMTP id t16so7140360wra.6 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=A9jFRa3O3++f+YikH787dSto8PNYhjhCtFoZajO+oDbDX2n57M57b61IIaSgQF4mUB VeygbafWGWmHfw83dE28VmerGYzcWwEpO2IOlLU8xUe3o3Ink99VkXi+yIejkMpfsb3M /+VXl1vIIMpr+ztRzADtwtIvj2uN68DaBzCWNXq/psYSu0aO/9VYrjej/jZZ2cKSdWMC oeQjlBp6K/bg9BS8gyydLLIfuxS51dR/1jSV7btqmwOhFZJFlaXG3VqCKXyFX+U0iWrm t0bfpWBzIcVGNdHD1AIPvsymiLLKEekIPkVMGMrzwNEirF/LajpTtKAe/OAUJ+ISZ65W Y+7g== X-Gm-Message-State: APjAAAX0Q2NNeuiHvJal+Kop67xOLuAk+ecOG/kRDaqhoPkn6ch3tf8i /yI17D4O13LuNbfp9IEkBwm84g== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.17.1 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