Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2671655ybl; Thu, 29 Aug 2019 11:15:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNg761VdiyVnnWwLG0DiO65lQoLYY5rqXX3YLVLitLfoHkVXggFb4uzV3Bfdy+UjABd2AS X-Received: by 2002:a17:902:bc47:: with SMTP id t7mr11205719plz.329.1567102543144; Thu, 29 Aug 2019 11:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567102543; cv=none; d=google.com; s=arc-20160816; b=d2g1VGBvtrP4ffHEr6sLVjj353MUmxpXjYlKkrd6fzeOCkCKVzf3oJeCmXHH0iTFW+ uUtGPsFCryJGUKQj1RdFB8V1gMiQzp5aLuapkJTRPyr+dMgLjlNUgLVfWi9DGAOVKY5H OAccUh/CxwUAwMRRtF3NjJ1q+BL9Knh6rdrhNixgcauWBpOOsfwN9vwZO1BiW5opu8hS pQp2fx82lP59/PbF4a66EwtFXXZwvYBrTjX2o6qXCT5wZh6GJSVSvVSHlRnhpUROFWiq A+ZMOFt08MBQXHTfcaFx7vf+zBt+FZGwzAkO1qvJcNRsKmzWcD0IprCoQ0DEqQaGaNfF QhDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3BgZoeIVGN2iw3wn8eNSzW6w54Qb607Wnt3qEu+frlA=; b=w6Vv/dG2E3oeEtMF6MJR6JaUh1kctV4dDxU2B6b0geuU4Bue+csriJCMhawWwPC0A1 bEwSPw+BmNePYHRYe5bBznk++BCrqaWJLng7gosre2E5YpmBfVV+J83rxwmx0BDdsRiB PhKCfHI8hjBYF7Un81TIi9vufByfdgQSawEKt4yYJOOB1SwUYOaKB8569e7c9E1G1nWx E/PFgOsj6joOZMMnhuWc26NnhvzQX2OaisSk7Dw4qqnd2WPqOrFvs5onJkL1s1dSFDp/ /Hoxerofn1qb+tSFoAp/Rtez5Xu0oeb8YlpN917FSIH7Q9j01QvPg7MLZdXdPmCA/Fgx TWrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pPCPXPvy; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az8si2683674plb.34.2019.08.29.11.15.27; Thu, 29 Aug 2019 11:15:43 -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=@kernel.org header.s=default header.b=pPCPXPvy; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728799AbfH2SOK (ORCPT + 99 others); Thu, 29 Aug 2019 14:14:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:55910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728756AbfH2SOJ (ORCPT ); Thu, 29 Aug 2019 14:14:09 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8FB24233FF; Thu, 29 Aug 2019 18:14:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567102448; bh=9J6tgIBdn5EzmWaOuyi4pYjxZ4aRUf4lrRb3sOcTqBg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pPCPXPvyCbnUgyqiPg/WW6t8FczwS0dAMtlEpjbzpbGRwU+bcycAm9NjWAX53dQwl HtwxhDgV3h36+BeqxTvYEbFqtAX3GIKpq3gm26XcVgl9W11cYgBd8KGFK9vtHt+257 3L9Vr+8roDqU0R/nigzhy9Rtr55ouv3Kke/ZfDYQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Paolo Bonzini , Sasha Levin , kvm@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 5.2 32/76] selftests: kvm: do not try running the VM in vmx_set_nested_state_test Date: Thu, 29 Aug 2019 14:12:27 -0400 Message-Id: <20190829181311.7562-32-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190829181311.7562-1-sashal@kernel.org> References: <20190829181311.7562-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paolo Bonzini [ Upstream commit 92cd0f0be3d7adb63611c28693ec0399beded837 ] This test is only covering various edge cases of the KVM_SET_NESTED_STATE ioctl. Running the VM does not really add anything. Signed-off-by: Paolo Bonzini Signed-off-by: Sasha Levin --- .../kvm/x86_64/vmx_set_nested_state_test.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c b/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c index ed7218d166da6..a99fc66dafeb6 100644 --- a/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c +++ b/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c @@ -27,22 +27,13 @@ void test_nested_state(struct kvm_vm *vm, struct kvm_nested_state *state) { - volatile struct kvm_run *run; - vcpu_nested_state_set(vm, VCPU_ID, state, false); - run = vcpu_state(vm, VCPU_ID); - vcpu_run(vm, VCPU_ID); - TEST_ASSERT(run->exit_reason == KVM_EXIT_SHUTDOWN, - "Got exit_reason other than KVM_EXIT_SHUTDOWN: %u (%s),\n", - run->exit_reason, - exit_reason_str(run->exit_reason)); } void test_nested_state_expect_errno(struct kvm_vm *vm, struct kvm_nested_state *state, int expected_errno) { - volatile struct kvm_run *run; int rv; rv = vcpu_nested_state_set(vm, VCPU_ID, state, true); @@ -50,12 +41,6 @@ void test_nested_state_expect_errno(struct kvm_vm *vm, "Expected %s (%d) from vcpu_nested_state_set but got rv: %i errno: %s (%d)", strerror(expected_errno), expected_errno, rv, strerror(errno), errno); - run = vcpu_state(vm, VCPU_ID); - vcpu_run(vm, VCPU_ID); - TEST_ASSERT(run->exit_reason == KVM_EXIT_SHUTDOWN, - "Got exit_reason other than KVM_EXIT_SHUTDOWN: %u (%s),\n", - run->exit_reason, - exit_reason_str(run->exit_reason)); } void test_nested_state_expect_einval(struct kvm_vm *vm, -- 2.20.1