Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2673652ybl; Thu, 29 Aug 2019 11:17:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6jHVYlp/CmBdXG9FkbVM1Qif2muoMLxUyfLLjg1+w1Pf4ENiDyetvBdfTBZ5fW9Xx+9rZ X-Received: by 2002:a17:90a:c20e:: with SMTP id e14mr11933216pjt.0.1567102639494; Thu, 29 Aug 2019 11:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567102639; cv=none; d=google.com; s=arc-20160816; b=EIe8flIrCjDuaLtUQl/hBBLGiDaFqRbw4eW6xpGd0bzRguBKXTNJzo9Wzk8D/4vrQp Gy8siw0cB07iyVdztjFPX4PcTSzmEuUdph3ht86zbfyINFL48m2DqrikBLLSkU7hYYVR GwHIx6gL+Xw1S+/wJvyxzBiFxaHCXVZlrVirSc3ABEpQyaqouqxMmF57fE1cWZXIP1e5 FeCEf9KLkpxY7YLLBelOBkN+TQG26kn1hv7KEYApgXgABMjCub1fxiA8Sl0xRTDVO4E/ 84xju5omInKHe9Oa/P/gSKxa+eAnrCDrc9IxhiwhviWZ2wWuzxwlZ03NOi829iRewBLd uzUQ== 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=PFrBYJh4QlPocZQgsj5nenxFZMOtsDb1hRCYewUHYtA=; b=nvLmYnfA9kP7J+CtoArqjznc4mDgYO+nEq1z4iCyOqQMK13gAXUduhxVmNw9FiZaor 8XLxeFVsuPtAVVDx68K9Bv5d4K9Fs6Dl2otbNv9+QNda/rh3QYaaSsb27mLRXaS4tm8p L2zqIK/kjp4jchCb9whNn8jRB2oTLQBkU6gR1FlBJklXioqlw19fjGv+KlKoBKj6Ri9R jO84nt97g1AoCDpBM+5xBO4TcAO1nzbjsBWxDk9ql0tsx0qhCgLu9T3Ps/l3Q81LnMW7 5XQOKsFh7Nq+nqQZpP624uphtJUqdoHHxEnbmCQzuBtIY4thFCXcEz5AbdIllOUNW878 4IIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qSE8kO3o; 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 b30si2513358pla.368.2019.08.29.11.17.03; Thu, 29 Aug 2019 11:17:19 -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=qSE8kO3o; 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 S1729310AbfH2SPa (ORCPT + 99 others); Thu, 29 Aug 2019 14:15:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:57182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729280AbfH2SP1 (ORCPT ); Thu, 29 Aug 2019 14:15:27 -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 04E8323403; Thu, 29 Aug 2019 18:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567102526; bh=xhiJezHpjdSXTTeSHRbLmmELwKti5nXh3MfmoKvhZEA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qSE8kO3oXJkV+YykhS3BvrKzN/zpk857a6rL8L68iD3s+k8T3bFeazVF8krL4Vcet xdDSTZCsKG+xOaqyyw+E5UkEgmyZqshoRiN8beRFHoic0CQY0P05fukNClBQwwHv0M h5EU+tJbqhGQVQUEwj0r1YqDy5SQkr9Rw39ylA2U= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vitaly Kuznetsov , Paolo Bonzini , Sasha Levin , kvm@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 5.2 64/76] selftests/kvm: make platform_info_test pass on AMD Date: Thu, 29 Aug 2019 14:12:59 -0400 Message-Id: <20190829181311.7562-64-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: Vitaly Kuznetsov [ Upstream commit e4427372398c31f57450565de277f861a4db5b3b ] test_msr_platform_info_disabled() generates EXIT_SHUTDOWN but VMCB state is undefined after that so an attempt to launch this guest again from test_msr_platform_info_enabled() fails. Reorder the tests to make test pass. Signed-off-by: Vitaly Kuznetsov Signed-off-by: Paolo Bonzini Signed-off-by: Sasha Levin --- tools/testing/selftests/kvm/x86_64/platform_info_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/x86_64/platform_info_test.c b/tools/testing/selftests/kvm/x86_64/platform_info_test.c index 40050e44ec0ac..f9334bd3cce9f 100644 --- a/tools/testing/selftests/kvm/x86_64/platform_info_test.c +++ b/tools/testing/selftests/kvm/x86_64/platform_info_test.c @@ -99,8 +99,8 @@ int main(int argc, char *argv[]) msr_platform_info = vcpu_get_msr(vm, VCPU_ID, MSR_PLATFORM_INFO); vcpu_set_msr(vm, VCPU_ID, MSR_PLATFORM_INFO, msr_platform_info | MSR_PLATFORM_INFO_MAX_TURBO_RATIO); - test_msr_platform_info_disabled(vm); test_msr_platform_info_enabled(vm); + test_msr_platform_info_disabled(vm); vcpu_set_msr(vm, VCPU_ID, MSR_PLATFORM_INFO, msr_platform_info); kvm_vm_free(vm); -- 2.20.1