Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp655688pxj; Fri, 28 May 2021 12:14:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcZdx1ZhwcFJ1F3ULUbniWPTL8vCTNAdh+t/4XUvyCZTBofLxnu+kpFYNrFxyh+/b0ua+4 X-Received: by 2002:a17:906:3c11:: with SMTP id h17mr10579199ejg.421.1622229265611; Fri, 28 May 2021 12:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622229265; cv=none; d=google.com; s=arc-20160816; b=qK2wVF6raApntInnjBWmPjhNhx7BvNH927fTraFAMpXha+haLROudKpg9jAWKxsZBk f9B1K9c/x9czYZ+YlGrH9Fxn9BiF+7ULNpv5syM6aAnM0gcfJ/hZ5FUIkGduUxSlIZ7v r/YwBwJJz7pSo/phfFHI7UOhr+C2f8Q0hClDzRzhy4HyxbMvsfzmNYaPZIQ4RPeIcP2O OpNvm2gD/SZZjThpOFnHpwRvBfUOGJNRUKbkykgMEJe879fWgKUsLRYr19spEfsf95gY cCzDTdt3LUMQg7NFth6wUlLmXVHS5CyZROxlPOxC9OZh94jtRM36ajpBdqPiFczakdnQ sZ3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/Ld9bryrSXUxnusgU5zvRKQObiYeibTpKJlbut+Dqgg=; b=oSPn7Cmw0G3ZV/VwAC/N95MpW9Akm1k56CuHxGFtf0FIYsfkRc+ef3vxMH+7xI3z5D F8cFFcurEj/nEEpWvoRjrV4DPKtTwbp1seljYtvefyHKu+2KNTg+0Fs1MtQmsFUL8zdt KrRzpcX0yqW8+VYLA5tv1y84X9ZhfW6wRPrz9P/FN1Pv7cryFpJ6L9d6tl4hSaoYc4Pn afrpZs4GXZ5rVeRY0J0/+zvlhdkzp8f6gr7a1ByztgQZYsgjWqOP4xocwkfto8WDnVa/ GDOtNTI30b8B0lpf84RrAUpnMUiGkDVo/JR5ZoqCn0lVGxIZEj4kt51JFB1qXcOEZ6oW f5CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QOQf8huK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si5271250ejc.443.2021.05.28.12.14.02; Fri, 28 May 2021 12:14:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QOQf8huK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229549AbhE1TNN (ORCPT + 99 others); Fri, 28 May 2021 15:13:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:39122 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbhE1TNN (ORCPT ); Fri, 28 May 2021 15:13:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622229097; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/Ld9bryrSXUxnusgU5zvRKQObiYeibTpKJlbut+Dqgg=; b=QOQf8huKr+A6FBB9EEQeA4utv7VN0VU+ThQex0TRjUifabvUk94J8mZz2t7HkaPVxNGSk+ DqSh/iS0ulVcGUVaYAdosESXtELHFRfs9x993OsX3VkdoQZRDjbg3E41zJjv6iOXe4CLmm lSn8+rMqMGJ0GdGrtRb2MuDRex4Ye0o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-247-usi2BBTiPGuneXgvWYGeCA-1; Fri, 28 May 2021 15:11:36 -0400 X-MC-Unique: usi2BBTiPGuneXgvWYGeCA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D55FC180FD6D; Fri, 28 May 2021 19:11:34 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8317F60CD0; Fri, 28 May 2021 19:11:34 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: "Maciej S . Szmigiero" Subject: [PATCH] selftests: kvm: fix overlapping addresses in memslot_perf_test Date: Fri, 28 May 2021 15:11:34 -0400 Message-Id: <20210528191134.3740950-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The memory that is allocated in vm_create is already mapped close to GPA 0, because test_execute passes the requested memory to prepare_vm. This causes overlapping memory regions and the test crashes. For simplicity just move MEM_GPA higher. Signed-off-by: Paolo Bonzini --- tools/testing/selftests/kvm/memslot_perf_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/memslot_perf_test.c b/tools/testing/selftests/kvm/memslot_perf_test.c index 11239652d805..6d28e920b1e3 100644 --- a/tools/testing/selftests/kvm/memslot_perf_test.c +++ b/tools/testing/selftests/kvm/memslot_perf_test.c @@ -29,7 +29,7 @@ #define MEM_SIZE ((512U << 20) + 4096) #define MEM_SIZE_PAGES (MEM_SIZE / 4096) -#define MEM_GPA 0x10000000UL +#define MEM_GPA (MEM_SIZE + 0x10000000UL) #define MEM_AUX_GPA MEM_GPA #define MEM_SYNC_GPA MEM_AUX_GPA #define MEM_TEST_GPA (MEM_AUX_GPA + 4096) -- 2.27.0