Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4789246rdb; Tue, 12 Dec 2023 09:18:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrZA8RVchvTsTsRnRRXBvBs4G3JprRPbBTUepYVLllPdn+DjW+4Rl2vH3ij1aNJ2c+nYym X-Received: by 2002:a17:902:d58e:b0:1d0:c20b:9e9 with SMTP id k14-20020a170902d58e00b001d0c20b09e9mr4599922plh.64.1702401507531; Tue, 12 Dec 2023 09:18:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702401507; cv=none; d=google.com; s=arc-20160816; b=dnKxWoUHrtOlN+4Lt6agoclHGW4GcaXF8o1WTh8wGsd1I87b6HNESFQfwOI0wVF7FW st30YfNtPLQB5cIKc76cIbX4aKZ87tGKyA+lBxnS8r9Ge9deCx73L4EZKxCHo+9fuxZv W5JHhzu+z2eCnIP1pzPW0t93nKXYd5sjMjBOIxmdLZAoK6I5V0Z8Cxma9DCHc29TcTaT mhkYQeoNppqzOMLiMCRLLRN1mM5Bc3pDMtyKS1D3KdfKg8L/yYzIGMolA1osSzEP0dtR Wl/3HdH8IjtHHSzZjYA3oiRFEvyewXnZFwqfeyftUA0EGRRt/tv1Gys6r4fuV2TorwJD nZxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date:dkim-signature; bh=AYZqQZ0C1vTq1Q5ZgORnfs0Fnsc+4+uug2eKsahCD6s=; fh=RjtOFcH1uhdWeYB4XWMrmc3WVSaxyyCHOL6WZjwQXPA=; b=Mkg/LHnWbzYm0qH97A0/wg0RSAjYvjU2nyzZvcNERVWPhviEXEDJi7t8lX0/ENfIWZ j/CSMzSF6zTq/dTR+kntCMvhPEqNWTq9+ey4foO5EHdVtAxUVe+6y3sOoM0prdJ1ikUP SYFzZghWh/VwWgDalYxtF9YUKJuScM0iz03mVW/Q39PEctU2Uz9NgVGHtLRSj0G5be4j 0qMB0kaycHUwJxtqtJw8zcTLQnO/5yFiZiZUe92095iBglP/Hn+CAGLRX3I7TtJZ5rMF C87b8+vfbBvBjBY0Kjd1wE7r1xDELgVY/WQwxhC5wQMZkoAArmA9n1HC7i5sTPFr+ABz wFCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=rAdRlyB4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id i18-20020a17090332d200b001bb8c4279f5si8289955plr.148.2023.12.12.09.18.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:18:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=rAdRlyB4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 7863A80B0258; Tue, 12 Dec 2023 09:18:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233105AbjLLRSL (ORCPT + 99 others); Tue, 12 Dec 2023 12:18:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232817AbjLLRSK (ORCPT ); Tue, 12 Dec 2023 12:18:10 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE5F2A0 for ; Tue, 12 Dec 2023 09:18:16 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-dbcc8f895daso139569276.2 for ; Tue, 12 Dec 2023 09:18:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702401496; x=1703006296; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=AYZqQZ0C1vTq1Q5ZgORnfs0Fnsc+4+uug2eKsahCD6s=; b=rAdRlyB49LqjGc2UkgdDCZMJ8AJtP3agvepRBHQCjSXAP65azbwRkNSC55KcfsYZpl /wt56DVAKCZFKM62GxbPuGi8EWezBlnOWQq4z9sPtme7hloMB2vRTRdG6yFRxOvMbzg4 xDQdyJM8KTn1KD47ckKUU58YUnXyC56PoPIHf1vCeSbaIlyp0+cGNKs+BpE20QNWZsFV Is10v1qxaGf91lD0hTTclv74sZOKHfabDVvcbBWm8EweIsf5ip187o/csHRc8LBNrMSr kp1alQp02PZtC1MVIJI/bXA5e3qPdZNMsb+ORh5ShLMxhSGOYFYKMOP0fP9nG2ABcQLq r8Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702401496; x=1703006296; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=AYZqQZ0C1vTq1Q5ZgORnfs0Fnsc+4+uug2eKsahCD6s=; b=GdkD8455mtj1QpmbTA42wsSjZn9lySnBHRzTU3JGXBv6d+Jc/QhDZd7LI/BpKLQe4T COQ/YU8Y5HPRBOpBgOnIkqFirOvQXXuSPvFeZHjRbBqBNAHKzkU4TqgiMYtY/jCAnlNR OWoXcS9OntGyPpBN2D/jiDYxlkd9YwTMmV1DqjOIEA29E9hGGJBjIwfssmfPXI0nn/z+ HmPDY+m2RCMjrtxa2miKzoA75cB6b01c3N3PoTxovnZ9RPqU7+Uea8P5oiguDnTXGJX8 G/ujYmf2Pmq+bHEJFuKox61PfSd/ECrNsUFMrKvgotIYlkE7lHp10gwVBYoQDGQZ0HcN Pefg== X-Gm-Message-State: AOJu0Ywhs8jQpYTH3hkrV4p0fxlcuDP2/D4u1gXNqTtO2EAqWnlPZBE9 Mr8gg7/+pIlbLItVIX2aOCgXfLuvkEA= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:150:b0:da0:3da9:ce08 with SMTP id p16-20020a056902015000b00da03da9ce08mr64114ybh.10.1702401495879; Tue, 12 Dec 2023 09:18:15 -0800 (PST) Date: Tue, 12 Dec 2023 09:18:14 -0800 In-Reply-To: Mime-Version: 1.0 References: <20231130111804.2227570-1-zhaotianrui@loongson.cn> <20231130111804.2227570-2-zhaotianrui@loongson.cn> Message-ID: Subject: Re: [PATCH v5 1/4] KVM: selftests: Add KVM selftests header files for LoongArch From: Sean Christopherson To: zhaotianrui Cc: Shuah Khan , Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Vishal Annapurve , Huacai Chen , WANG Xuerui , loongarch@lists.linux.dev, Peter Xu , Vipin Sharma , maobibo@loongson.cn Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 12 Dec 2023 09:18:25 -0800 (PST) On Tue, Dec 12, 2023, zhaotianrui wrote: > Hi, Sean: >=20 > I want to change the definition of=C2=A0 DEFAULT_GUEST_TEST_MEM in the co= mmon > file "memstress.h", like this: >=20 > /* Default guest test virtual memory offset */ > +#ifndef DEFAULT_GUEST_TEST_MEM > #define DEFAULT_GUEST_TEST_MEM 0xc0000000 > +#endif >=20 > As this address should be re-defined in LoongArch headers. Why? E.g. is 0xc0000000 unconditionally reserved, not guaranteed to be val= id, something else? > So, do you have any suggesstion? Hmm, I think ideally kvm_util_base.h would define a range of memory that ca= n be used by tests for arbitrary data. Multiple tests use 0xc0000000, which is = not entirely arbitrary, i.e. it doesn't _need_ to be 0xc0000000, but 0xc0000000= is convenient because it's 32-bit addressable and doesn't overlap reserved are= as in other architectures.