From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id E28503858D37 for ; Tue, 27 Sep 2022 03:08:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E28503858D37 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1664248136; bh=2CQ/RsuO9gbFdFI62SQ4e9W22AJtTBjoa19YWgh08zM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=LJQc9JkGm5oJOscs/8ZyD+q0FGlKlQFFAN++euxi6C+oHKqoirF3Bq8enU0tR9lgn A2007V345Cb5ARnQGfQd6ermhfIFfiRVmEssgOBU1+tLmgs23hMameVJ/JtN8SRHf9 wYSGLELmPTYAlurLu2JYTLpB/pOHm6oQj2OGemdc= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 57E4766877; Mon, 26 Sep 2022 23:08:54 -0400 (EDT) Message-ID: <67f6c8084d545b6fe433fedcd3f54c25b57e9fe3.camel@xry111.site> Subject: Re: [PATCH] LoongArch: Libvtv add LoongArch support. From: Xi Ruoyao To: Lulu Cheng , gcc-patches@gcc.gnu.org, mliska@suse.cz Cc: xuchenghua@loongson.cn, qijingwen@loongson.cn, qijingwen , Caroline Tice Date: Tue, 27 Sep 2022 11:08:52 +0800 In-Reply-To: <9c34db2e-b075-f808-4120-dacbbf38539a@loongson.cn> References: <20220926020010.779566-1-chenglulu@loongson.cn> <0c8d5a9d4aa761f8fb40ecb31cfdfdbc211891ee.camel@xry111.site> <9c34db2e-b075-f808-4120-dacbbf38539a@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP,T_PDS_OTHER_BAD_TLD autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: + Caroline (the author or libvtv, I hope the email address is still active). On Tue, 2022-09-27 at 10:37 +0800, Lulu Cheng wrote: > I asked my colleagues in the kernel group, this page size may change. >=20 > That there is a macro BIG_PAGE_SIZE comment in vtv-change-permission.h >=20 > written like this:"Replace '4096' below with correct big page size." >=20 > I understand that this is to get the page size at runtime, but I don't > see where this macro is used, >=20 > is there something wrong with my understanding? Frankly, I've never used libvtv (Linux From Scratch does not --enable- vtable-verify). But if I understand correctly, we can set "65536" here and *I guess* the result will be able to function on 4/16/64 KB pages (but with some performance overhead on 4/16 KB). "BIG_PAGE_SIZE" seems not defined anywhere in GCC... --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University