Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3886025pxj; Tue, 8 Jun 2021 00:40:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy23kEBNMFngoqsGEwuOWdtsr3wK2DtgvOfAhWkosoAKWu8ZIvkbZ8FJPLQJciLEBQ5Q8Nv X-Received: by 2002:a17:906:bc2:: with SMTP id y2mr19957006ejg.489.1623138058889; Tue, 08 Jun 2021 00:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623138058; cv=none; d=google.com; s=arc-20160816; b=ir6I+R/hcykXvEBq3WgPgOUYiiCar7BBpB9BbNlC6RfLWIGlPr7tOb5yXK9w2c0QQ8 UuoIVSSdeqThdu5xQnXVk3ly2xjyIf50GwE0fHiX78XuFU93cTqARwI+4T5O6Tpm9i8q ByUysUzrzETTMuDUy5G0HKci3mobKwtPvffCjfostxQCgd6CUQrJnatKFnIuS6lIL3gi 4cCCpRgIz8WH7LYcvaM+XOQGQaNLg1YZVOfTdtfe0cPbQw2JauHdnfis4i4tdLNnXPrv mPdjS8G3MEbqeBvmNzUDpoz9UEHTn94L/6qIuhHzvyG2nGG3LXuuGjsoLx6EWTOD3COq nWCg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=NPl1na7VZUb6xvrzmsmt9QCmWJ/ZO9aoe3BoBbaZ6EQ=; b=RVcE9QYvSV8BEukPL7Muutn22buoa22P7NvrACOQoFAci0JpDiMwIDgYgYmJydBpa+ Ok6d3Xs1GnRH+HzKglMCz60WfAbH0ikusWcxNR5VPI3Ny0GYINgh4EHSr8J+WTrJh53K YbMQoEw7H6GcdjgrsQSIPoPRWR0xlYBwjk61w1WwvYbUJHFfbhGxjNO0g7qIpslclZhy F1man1WgVY4h2KYwFyMBUfy01tPVpJqU8TwOobUSk1ZSIByfXNUv7ib62n/x5jv/S9+l QApXErpi4oOLu14kdGOgMKmDvk92691x3xIHy5txLCPDlZMIfnl352JASX2TW69nt3Xz Nqlg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si13219857ejt.172.2021.06.08.00.40.35; Tue, 08 Jun 2021 00:40:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230421AbhFHHjo (ORCPT + 99 others); Tue, 8 Jun 2021 03:39:44 -0400 Received: from mga17.intel.com ([192.55.52.151]:17020 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbhFHHjn (ORCPT ); Tue, 8 Jun 2021 03:39:43 -0400 IronPort-SDR: oqegSr6O5xLLFpG3vWWrtCVxKgf/hxx6NV51envw5XxHtgdOBNA96jGlx3V6UX5CioEE9yQ83C Gwhdq+WSZf6g== X-IronPort-AV: E=McAfee;i="6200,9189,10008"; a="185164450" X-IronPort-AV: E=Sophos;i="5.83,257,1616482800"; d="scan'208";a="185164450" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2021 00:37:27 -0700 IronPort-SDR: ESQDn1oVUUnLsgYy9uO23b2a++xALaKlQQlfVrk5E3znsCBt3c25rOOsv3KbXondN/waqnJQXk RdGdG3dqLANw== X-IronPort-AV: E=Sophos;i="5.83,257,1616482800"; d="scan'208";a="481846548" Received: from duan-client-optiplex-7080.bj.intel.com ([10.238.156.114]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2021 00:37:25 -0700 From: Zhenzhong Duan To: linux-kernel@vger.kernel.org Cc: linux-kselftest@vger.kernel.org, kvm@vger.kernel.org, maciej.szmigiero@oracle.com, drjones@redhat.com, pbonzini@redhat.com, shuah@kernel.org, Zhenzhong Duan Subject: [PATCH 2/3] Revert "selftests: kvm: fix overlapping addresses in memslot_perf_test" Date: Wed, 9 Jun 2021 07:38:15 +0800 Message-Id: <20210608233816.423958-3-zhenzhong.duan@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210608233816.423958-1-zhenzhong.duan@intel.com> References: <20210608233816.423958-1-zhenzhong.duan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 000ac42953395a4f0a63d5db640c5e4c88a548c5. As (39fe2fc96694 "selftests: kvm: make allocation of extra memory take effect") is reverted, this relevant commit should be reverted too. Signed-off-by: Zhenzhong Duan --- 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 9307f25d8130..11239652d805 100644 --- a/tools/testing/selftests/kvm/memslot_perf_test.c +++ b/tools/testing/selftests/kvm/memslot_perf_test.c @@ -267,7 +267,7 @@ static bool prepare_vm(struct vm_data *data, int nslots, uint64_t *maxslots, data->hva_slots = malloc(sizeof(*data->hva_slots) * data->nslots); TEST_ASSERT(data->hva_slots, "malloc() fail"); - data->vm = vm_create_default(VCPU_ID, 1024, guest_code); + data->vm = vm_create_default(VCPU_ID, mempages, guest_code); pr_info_v("Adding slots 1..%i, each slot with %"PRIu64" pages + %"PRIu64" extra pages last\n", max_mem_slots - 1, data->pages_per_slot, rempages); -- 2.25.1