Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2366049rwp; Fri, 14 Jul 2023 05:15:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlGEV7kg2FJzLqEdYi4hR6nkhhxMiU4D1aChHBuBQX1vDNYEWXfTVweGyOQbPB80LALbeN84 X-Received: by 2002:a9d:7a81:0:b0:6b7:4cd0:8a1e with SMTP id l1-20020a9d7a81000000b006b74cd08a1emr5328066otn.19.1689336935897; Fri, 14 Jul 2023 05:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689336935; cv=none; d=google.com; s=arc-20160816; b=Vm59MwxRIOpxlfCVrPAMUaN+i03KBjFkmKAvAbakanGSgQeIaW0qKyAwCkqqvtkxJn btTZTajs7s4CKu9d/zMysE9FVHDw3RbpxPvSDx70kHetLuiykik7e+4OkeTQoR7HolzR 2dhctfLLbVDBRvzvFt4cA2UxcdLmLQ9V8QPgSBbtGWLKCrVdkS1eLDSu/8Ee4oK57Dnf pVy/jmn6NoSRjmGwyOFPPK0UOkekRdLRjB5crrhs0yhyb/lRGRpDK8beKu+sMirEcpfk wHmc4HucU8Uvkr2HbjcBDqbKO8e1GwweMe8nRTR37ca+rqkEdFuJ5fgsqwb2RI4ToY4P m0Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=df4urvokhWabmqfSdR1rI25ApnPpfZ4jv5W/2TZtDSc=; fh=LY8t/QfSP1+g/JLQTrbNdDmHdo9Uy2ZT79Pvcwt0RKY=; b=OMEb1UYIpVflKl9dLi8QcFtVd4MINuICtl0lPIhyiU06H3yi3Q1qOgnOmvuziuS4se o7WjS2+Af/9aluiMffMDfWIE1RloHG4aDQEg24GwCKbbaA6OqwwGgGrfasAmZoJPEzfl 2z5JUl9TWu69avNHDukPdOeDBUR7ovFxQ1vR4HjMMGWE4+51sv7YndFWD7u6NpoDEqvP qOP+FGIUvsXNxjXpfE35t/t/cZkxf/YaCvEJ0rq2gmDJjHaF2Ro677G13/CR0Y1Cbj5T nPzKbn0DQSRsGYzjUJyRc9v2bcLCqydN2lv0+GbAMLVuXCAqylAKRVioP8CsdKGyrLFQ NXow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=SKGqOkJk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z2-20020a634c02000000b00543c8ad57f7si6797659pga.83.2023.07.14.05.15.23; Fri, 14 Jul 2023 05:15:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=SKGqOkJk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235523AbjGNMG1 (ORCPT + 99 others); Fri, 14 Jul 2023 08:06:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbjGNMG0 (ORCPT ); Fri, 14 Jul 2023 08:06:26 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1625430C6; Fri, 14 Jul 2023 05:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1689336385; bh=LIxcDZcLBMZIdbSr/T45y9VNE4gcQHTHKIV3HlOiko8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=SKGqOkJkLYk9YnZ7JymlvDgkjG7nCxXejSlIsL2r0J6BZYrxjD45n20MmByEvWZxI G9pbaFrIZsyXAeO7o1YbUOP2UQcJVEPxtIUbu+cDYvXI465sWcvxmlgKvnHDjv8PZR PoFjqjLWnToGdi+qCLRJbIRoTLQOCuWFbuIbhUN4= Received: from [192.168.124.11] (unknown [113.140.29.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 7B93465CFE; Fri, 14 Jul 2023 08:06:22 -0400 (EDT) Message-ID: <6a5ed2266138cc61cbe27577424bb53cda72378d.camel@xry111.site> Subject: Re: [PATCH v16 05/30] LoongArch: KVM: Add vcpu related header files From: Xi Ruoyao To: WANG Xuerui , bibo mao , Huacai Chen Cc: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Greg Kroah-Hartman , loongarch@lists.linux.dev, Jens Axboe , Mark Brown , Oliver Upton , hejinyang@loongson.cn, Tianrui Zhao Date: Fri, 14 Jul 2023 20:06:20 +0800 In-Reply-To: References: <20230629075538.4063701-1-zhaotianrui@loongson.cn> <20230629075538.4063701-6-zhaotianrui@loongson.cn> <152f7869-d591-0134-cf9d-b55774a135e8@loongson.cn> <152fbdd1-a21c-8ee1-d386-ec7f80b0bb97@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2023-07-14 at 18:16 +0800, WANG Xuerui wrote: > > > > > As all needed instructions have already upstream in binutils now = and > > > > > binutils 2.41 will be released soon, I suggest again to introduce > > > > > AS_HAS_LVZ_EXTENSION and make KVM depend on AS_HAS_LVZ_EXTENSION. > > > > It is a good news that binutils 2.41 has supported LVZ assemble lan= guage. > > > > we will add AS_HAS_LVZ_EXTENSION support, however KVM need not depe= nd on > > > > AS_HAS_LVZ_EXTENSION since bintuils 2.41 is not popularly used. yea= p we > > > > need write beautiful code, also we should write code with pratical = usage. I've raised this for a very early version of this series, but Paolo decided using .word here should be fine: https://lore.kernel.org/all/87268dce-1b5d-0556-7e65-2a75a7893cd1@redhat.com= / So in this case we should respect the decision of the KVM reviewer. If this breaks Clang build, we should improve Clang to support using .word for hard coding an opcode. Frankly I'm quite frustrated by "a new architecture needs so many feature tests and hacks, here and there" and sometimes I just want to go laid-up in bed instead of writing code or porting the distro (Linux From Scratch). But today I just got [a board from another Chinese vendor targeting another new architecture] and to me they are doing things even worse... So maybe we are facing some inherent "no silver bullet engineering issue". --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University