Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp126776rdb; Sun, 28 Jan 2024 17:28:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlFxoOnag01tYARgqzdpHqk62zvsux2uEoxCzt2S4gbAD/A/vrW7B3oOnQVVqYek7/wAzn X-Received: by 2002:a05:6359:4114:b0:176:bf5d:8d37 with SMTP id kh20-20020a056359411400b00176bf5d8d37mr5632041rwc.53.1706491712698; Sun, 28 Jan 2024 17:28:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706491712; cv=pass; d=google.com; s=arc-20160816; b=C0vrU3d0rtnfBVIrYZjzfhjv9TTZlEl+hBeXg/nUV3a6+nOnQy0+E3nLMdWPmCrMmG wioEcRNvZg9dvsq6Ihitwo/O0yh5KWplW0hvKXI8356lyEi0Q0vNnpDWq4EkUwVZ/eVZ f4l6o8nABFHJCHB3w0F9fIwNB2pHM2NUv7C11DdNNAa0dPpQewiEDnjqg1dt+koWSYdN eadPXEb/pUDEc7wyfcxFtnFpYVEORiiJ1r6i03KR4T/bQk27ersCYUTPMHmyD6ifPSPE 0q0iDk8NSeaFBHPg92/hr7DnmaGn98EZPHYdW8nN8cfBrpBMONYl234AvYzdEeNxa4oh RNLg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=N3oX88N8Nc3WtYXC/7QZCkAUSDsKEC96Dn75JkwTFjs=; fh=rX0dG0izTTOk+C+/I1HgTciPek2ItTeDpf2G49J9GIU=; b=KOrVBh7VnnTlfwj2kbICPbug5QAzZYY+D74xUzyWITG8JkLZxf339vSM63JZFm5bzh 5KQb0824e20bo6ORBbEgeErLoIkmX3nfvBG3FiTJmP2RDxIl+O08kbOgH1BLTclQFx8x tWmfq2EiHew5G3PgyYQ2qzhdXBFin/6ueqTZUs2W+Yx0uFVmTfBAVUG9GPmmkuGTIZcU C5sn/CpmAJEuuQwP/1v+XXZtD4PS4gN3ZHd4kuq3xWYUCj9BFCWMIhgwhuP1IKXArq/B BeM33n8VNF7Ga8uPkH5nAwbkEaTNF9A3SJqcg+h+QmeNsUwuEm6bQ+7ykS9bMTsH+SjR xj1Q== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-42060-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42060-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w19-20020a056a0014d300b006dd82e644f5si4919264pfu.288.2024.01.28.17.28.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 17:28:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42060-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-42060-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42060-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5EB8CB213AB for ; Mon, 29 Jan 2024 01:28:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8047DDDC7; Mon, 29 Jan 2024 01:28:18 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79BE8DDA3; Mon, 29 Jan 2024 01:28:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.242.206.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706491698; cv=none; b=Ay4EtrPd6RbNsSK9zEYE7H/fI/R/Jgm0U0PmRmOkdi3HwKYLBWYG3F5l5hU+AhBpPJ6wj/cm+4CfFjlxUbdrcX/q9ymwEuyn3arhXezazb/R30cSfnuouW0g93s0VpndgfynMwebOuQZrc7jIBrJr1xj3BZ591esXLaDC7505Hk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706491698; c=relaxed/simple; bh=Lw72eSf10rqs9M4ILP3RajtxyQIU+eHOGp7ZrHxu5Vw=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=TuDZ011Jdy1ihKghDsORvxVR8S/+XejnW9umPqOtjzPzQpIfnyYMnn5eFaxCEH8c9IAAGJ1z1Adqe9H3qtwbAY+XiLiTL8fC6NH5iCOvlrNi2+q0yHfSMsLOIicMzB1CBo7zVdEz8dcGLxcVr+5mINE5pG94fq8Uct3kS15I/4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn; spf=pass smtp.mailfrom=loongson.cn; arc=none smtp.client-ip=114.242.206.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.20.42.173]) by gateway (Coremail) with SMTP id _____8DxJ+gn_7ZlmpMHAA--.4333S3; Mon, 29 Jan 2024 09:28:07 +0800 (CST) Received: from [10.20.42.173] (unknown [10.20.42.173]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxDc8k_7ZliAskAA--.13536S3; Mon, 29 Jan 2024 09:28:06 +0800 (CST) Subject: Re: [PATCH v6 4/4] KVM: selftests: Add test cases for LoongArch To: Sean Christopherson Cc: Paolo Bonzini , Shuah Khan , Tianrui Zhao , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20240125015420.1960090-1-maobibo@loongson.cn> <20240125015420.1960090-5-maobibo@loongson.cn> From: maobibo Message-ID: <2b3c7e2a-b748-5635-3f8d-71323a53b28d@loongson.cn> Date: Mon, 29 Jan 2024 09:28:04 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID:AQAAf8DxDc8k_7ZliAskAA--.13536S3 X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7XF48JFWfKFykuw45uFW3urX_yoWfZFXEqF 4av3s7CrWkZ3WYqF48tw15CF4aqa1DXF4fZFZxtr1fXFWUJa13AFWkur95ArySqFZ5J39I kF4vkF1Y9rWUuosvyTuYvTs0mTUanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbxxYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8 JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4 xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v2 6r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1cAE67 vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAF wI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc4 0Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AK xVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr 1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxU7_MaUUUU U On 2024/1/27 上午4:28, Sean Christopherson wrote: > On Thu, Jan 25, 2024, Bibo Mao wrote: >> diff --git a/tools/testing/selftests/kvm/set_memory_region_test.c b/tools/testing/selftests/kvm/set_memory_region_test.c >> index 075b80dbe237..7b09e59296be 100644 >> --- a/tools/testing/selftests/kvm/set_memory_region_test.c >> +++ b/tools/testing/selftests/kvm/set_memory_region_test.c >> @@ -333,7 +333,7 @@ static void test_invalid_memory_region_flags(void) >> struct kvm_vm *vm; >> int r, i; >> >> -#if defined __aarch64__ || defined __x86_64__ >> +#if defined __aarch64__ || defined __x86_64__ || __loongarch__ > > I assume that last one wants to be "defined __loongarch__" Good catch, it should be "defined __loongarch__". And I will refresh the patch in the next version. Regards Bibo Mao > >> supported_flags |= KVM_MEM_READONLY; >> #endif >> >> -- >> 2.39.3 >>