Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4130783ybe; Mon, 9 Sep 2019 04:51:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqz71vVCf6OnjBL6KDwLNxio4uEZZlYqW9tOo0NzakM9tvaFAojf34K86CumeSMKsmI/zehQ X-Received: by 2002:a17:906:a3d5:: with SMTP id ca21mr19399726ejb.258.1568029880931; Mon, 09 Sep 2019 04:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568029880; cv=none; d=google.com; s=arc-20160816; b=h9Dk6efc0QvD92mKtABV8J151T6pgTlFZaPxTTp2u+MpfNDZE0U0ORSGu61+Nv7Uyd L0jFA+zVsPJqKX7rYIkaM5JEfh2U0xFjkLi2fN6VGfW8EJHmLSjavLrdZIC65lgtnM40 CczH/F2AYezePmAt0hSgVqRbvJ5DCif5qpU80ADsjguyDhLGC4QNtTRMDdr9FsaCALWF Qe4loNV5zVievAv7duL8ZuT36lgKxbDf/jMTxzPxj4I21RPMoVKkMRhWfaP/N364kOyo PRrxKBX1kWqTH0iQZmTFiu+rVuqDowTVaWpHTbU+w/LLi6wBh854ttI1DJkeb/OhWNTm 3b2w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kDY5d5xkMywGTPMO6Zj0jE8BouzqMXyBlTH/KwIm36c=; b=Yf3nWcctxP+gGGg9rtdrRkCIQAsAV2mGFgG3+X01qibPgYM1NlFvnH+TfPlzQqpkTj CHDNDw1BHDKKJx0amfYY0S6OUnaeTrR+4YQGsocrdDVWYzVavU7gKLeJHFRbNYWPWVBE uoVU5nQGTjI5H/PcUNgjHyNyEaeX7Cdourxc7XM5joKtQXgjHu0EEnW8tk4FzjyPWbYO h1sM2rQ+RqO3paPg7Lc9yuBHPBsA/mBb/wgphrd7w1ykXgeUO3D2kV6sg8oWGKuhXTr0 qgQxd1NuDylFs/mD4ump19BltIGO+h34klIJ0L78JJHiXs/VVQ0bN7/Amyo4HkgMzVMw /hUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xeNCokZY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si9155837edm.313.2019.09.09.04.50.57; Mon, 09 Sep 2019 04:51:20 -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=xeNCokZY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732568AbfIHMvU (ORCPT + 99 others); Sun, 8 Sep 2019 08:51:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:42518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732490AbfIHMvM (ORCPT ); Sun, 8 Sep 2019 08:51:12 -0400 Received: from localhost (unknown [62.28.240.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0FCE8218AF; Sun, 8 Sep 2019 12:51:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567947071; bh=a4D6nv6ufKNPfOmERythkXGnps4qhqRayQhCLJMesIg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xeNCokZY2gDW8WkiGGRr03V7FpmHAAnMdIAjSoBaGcTPbPuURYXJQBqOQwHZy2o42 HGyUQoBvoVGb3JzUebGlJWIjmEJCZfE1fw1fqlUETtivhyI5JdgqeOZ4jMtxuYkExR f2E3HnxHnsw7ScKauRp9U8orlMluWzbtuc+GrY+4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paolo Bonzini , Sasha Levin Subject: [PATCH 5.2 48/94] selftests: kvm: do not try running the VM in vmx_set_nested_state_test Date: Sun, 8 Sep 2019 13:41:44 +0100 Message-Id: <20190908121151.813950180@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190908121150.420989666@linuxfoundation.org> References: <20190908121150.420989666@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ 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