Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3009010ybi; Mon, 17 Jun 2019 14:35:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjZZrc91jwC/Oibl8N1WlFhIy9in+hsfpdAHNpn5PiUGPRoCl2p2oh+9EFplXeztUBKhFD X-Received: by 2002:a17:902:f213:: with SMTP id gn19mr18021037plb.35.1560807314072; Mon, 17 Jun 2019 14:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560807314; cv=none; d=google.com; s=arc-20160816; b=hAkxpu1QphHwSyAvKT8U0ThvemnSKL4wFGUcuQ1g3fXlwngiwKE6FYhHrKAj7sXtP6 Uee0RDZY75N5qByK0rVnl5LZCO5jLEdSklLA1R2muEWLa8d0Mt3Rz+ap4fnyJuSiIK8O 6Q5RcG36Jfcn0wn1AtZAujW12/CIzmQs2g8zxQWKkxaU3XqYTuBGy5n2wV130UEwEW/u N1bS3v86jjP0UQx+w9xLs17eRbOHU+VNungXMr7VcyLvxIfWtX3z4DmE0RSEV53scql3 IP6vN9ou3QSC1ED4aVUvzYVXwbjLBR8uKtMXGIMdV39ooaGgllEAcyF9IsnDsc1jHjIt pBIw== 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=1wUaWUH3HS1stVGWZvQGnXtzmum3YGS1bNuyabojM/U=; b=bQQaeRD0M5NnUAhVIb8Km3o6rT2453/5XRHfOW3qXXYt6SYfWuzkYECUBCLmvEC7RX e31gY1XihxwGq0aON2gGMR2CnBwXVSfy1/VQGFXwUIBGFesx5iw+5YyfntsGq0ydFwCv wYDTKhaoQ90cpbdLYqYSgXgABoazflq8tH4n4X5QgoLWtwKMk15A/WjFNzNE5PM9jGWF pcpP2eDL9me8ynsEN6yDwMc232rs3GVvvfvexAhXVTwSjbjMMqgETLO1Y3Gw+YZ0qLFQ tBmgJpm2IEak2xWr6p2SS9YmFYhitpNdRrleL9FTttN3QKKaonWqJMHLaIb0h+g13RvK E9Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PyXJTyBE; 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 q2si10259735plh.59.2019.06.17.14.34.59; Mon, 17 Jun 2019 14:35:14 -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=PyXJTyBE; 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 S1729794AbfFQVXs (ORCPT + 99 others); Mon, 17 Jun 2019 17:23:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:49056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729791AbfFQVXr (ORCPT ); Mon, 17 Jun 2019 17:23:47 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 EABF920673; Mon, 17 Jun 2019 21:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560806626; bh=y9xU1Vxcitkg//oxiKqJJWU15rcVRW0JaDrrJoaUWSg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PyXJTyBEW82lLMfiGIQ+U9zkBXsHASvSb0Xp8txy5XHHDPzvMUXwoI+4m1Kq1kcE8 GIqlFdsnreTR6TketzJajsw+0GFmOkVQ2Tw+Qshojl4nd5smsjBacVOZ9Idnbor1yJ h0NCRrmWo6BmNZbgHTm0K7BaDyg90PA2cQn54aI4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Huth , Andrew Jones , Paolo Bonzini , Sasha Levin Subject: [PATCH 5.1 093/115] kvm: selftests: aarch64: fix default vm mode Date: Mon, 17 Jun 2019 23:09:53 +0200 Message-Id: <20190617210804.672328154@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190617210759.929316339@linuxfoundation.org> References: <20190617210759.929316339@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 55eda003f02f075bab0223a188e548dbf3ac8dfe ] VM_MODE_P52V48_4K is not a valid mode for AArch64. Replace its use in vm_create_default() with a mode that works and represents a good AArch64 default. (We didn't ever see a problem with this because we don't have any unit tests using vm_create_default(), but it's good to get it fixed in advance.) Reported-by: Thomas Huth Signed-off-by: Andrew Jones Signed-off-by: Paolo Bonzini Signed-off-by: Sasha Levin --- tools/testing/selftests/kvm/lib/aarch64/processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/lib/aarch64/processor.c b/tools/testing/selftests/kvm/lib/aarch64/processor.c index e8c42506a09d..fa6cd340137c 100644 --- a/tools/testing/selftests/kvm/lib/aarch64/processor.c +++ b/tools/testing/selftests/kvm/lib/aarch64/processor.c @@ -226,7 +226,7 @@ struct kvm_vm *vm_create_default(uint32_t vcpuid, uint64_t extra_mem_pages, uint64_t extra_pg_pages = (extra_mem_pages / ptrs_per_4k_pte) * 2; struct kvm_vm *vm; - vm = vm_create(VM_MODE_P52V48_4K, DEFAULT_GUEST_PHY_PAGES + extra_pg_pages, O_RDWR); + vm = vm_create(VM_MODE_P40V48_4K, DEFAULT_GUEST_PHY_PAGES + extra_pg_pages, O_RDWR); kvm_vm_elf_load(vm, program_invocation_name, 0, 0); vm_vcpu_add_default(vm, vcpuid, guest_code); -- 2.20.1