Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1391010pxy; Sun, 15 Aug 2021 19:55:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhe/GJ/HToTexFNL96IHNSUY867yPYZU6iBkLgNo9HB9GrOUNnAK0k3SIDiNvJ/BeWJ9/m X-Received: by 2002:a02:7711:: with SMTP id g17mr13511210jac.132.1629082546490; Sun, 15 Aug 2021 19:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629082546; cv=none; d=google.com; s=arc-20160816; b=U9WH+priDpotdgPbJ7jAuXBGdawOZ8bhaKdHWI7oYb9SXS6ajF1TbGwHn4LHKgO0qI ILhYig86ez0YhpgMIkSL69vIAP1q6e9gVxgUePxWDFDHyBDH6G9AZS72fkSqrJp/vAxr HxiBB+FPBMTLv/12dGOmHFxoqmm1Yq3tb5DFAZBR2LFW2bI2LfdO3weY86qnBgXTfMqD K0nvmQ8z7TVPwEzL/BJhYCL+9mSuRwqESMnaaQwzBxLodMHE4UlrwCAM1wrBlxbfzhVn h+MBGhU2BPonhSt1zxoyvDXs3jxf896U0bEv6HQL1+2BUYqd5gwGA5+kzFnBcfUjQq+h gb3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject; bh=aIoSG0ELZnirZgOUW0f7rFReHXKyk+RUZik06dzcDGE=; b=Pc0DFg2BmG1JonGOfubWXt8cHN/6NPXZ0uuwba2x4CEUfQdWnMfkRSTpC+NyP+NXH+ UgZVVXRIAr/vuWSvKaeWIx2ExGdGeR0b5k/zdDWRQck1gJsvHiv9bZpT7bKQJLexTtZu wBhOIh8mEDlD5uXyzx9/qZLbmNLRYjPElueWWRP9w6eIgzHP/3PGYMDLAg02iScejze9 22XcJFynesW7LJs5X/XAb+BhX6VAyhAGoogQ9ahFEjpdeUcz5/iUGBVkSWF29uRkOIvB EYRk7c6YuIl8wGIg1Cd0KlD0PKFQYXgYMOGZEqzymTdn9IXrZnL7jcFGU7vUALiUZmHB SAlQ== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si11030495iow.71.2021.08.15.19.55.35; Sun, 15 Aug 2021 19:55:46 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232045AbhHPCyQ (ORCPT + 99 others); Sun, 15 Aug 2021 22:54:16 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:13319 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbhHPCyN (ORCPT ); Sun, 15 Aug 2021 22:54:13 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4GnzHz1Fr0z86gj; Mon, 16 Aug 2021 10:53:35 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 16 Aug 2021 10:53:40 +0800 Received: from [10.67.100.236] (10.67.100.236) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 16 Aug 2021 10:53:40 +0800 Subject: Re: [PATCH -next 1/2] selftests: Fix vm_handle_exception undefined error To: Paolo Bonzini , Shuah Khan , , , , , , , , , , , , , References: <20210709063741.355325-1-chenlifu@huawei.com> From: chenlifu Message-ID: Date: Mon, 16 Aug 2021 10:53:28 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.100.236] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks. Got it. 在 2021/8/14 7:26, Paolo Bonzini 写道: > On 13/08/21 19:01, Shuah Khan wrote: >> On 7/9/21 12:37 AM, Chen Lifu wrote: >>> Compile setftests on x86_64 occurs following error: >>> make -C tools/testing/selftests >>> ... >>> >>> x86_64/hyperv_features.c:618:2: warning: implicit declaration of >>> function ‘vm_handle_exception’ [-Wimplicit-function-declaration] >>>    618 |  vm_handle_exception(vm, GP_VECTOR, guest_gp_handler); >>> /usr/bin/ld: /tmp/cclOnpml.o: in function `main': >>> tools/testing/selftests/kvm/x86_64/hyperv_features.c:618: undefined >>> reference to `vm_handle_exception' >>> collect2: error: ld returned 1 exit status >>> >>> The reason is that commit b78f4a596692 ("KVM: selftests: Rename >>> vm_handle_exception") >>> renamed "vm_handle_exception" function to >>> "vm_install_exception_handler" function. >>> >>> Fix it by replacing "vm_handle_exception" with >>> "vm_install_exception_handler" >>> in corresponding selftests files. >>> >>> Signed-off-by: Chen Lifu >>> --- >>>   tools/testing/selftests/kvm/x86_64/hyperv_features.c | 2 +- >>>   tools/testing/selftests/kvm/x86_64/mmu_role_test.c   | 2 +- >>>   2 files changed, 2 insertions(+), 2 deletions(-) >>> >> >> >> Please include kvm in the commit summary. I think it is not getting >> the right attention because of the summary line. > > The same patch was already committed: > >    commit f8f0edabcc09fafd695ed2adc0eb825104e35d5c >    Author: Marc Zyngier >    Date:   Thu Jul 1 08:19:28 2021 +0100 > >    KVM: selftests: x86: Address missing vm_install_exception_handler > conversions >    Commit b78f4a59669 ("KVM: selftests: Rename vm_handle_exception") >    raced with a couple of new x86 tests, missing two vm_handle_exception >    to vm_install_exception_handler conversions. >    Help the two broken tests to catch up with the new world. >    Cc: Andrew Jones >    CC: Ricardo Koller >    Cc: Paolo Bonzini >    Signed-off-by: Marc Zyngier >    Message-Id: <20210701071928.2971053-1-maz@kernel.org> >    Reviewed-by: Andrew Jones >    Reviewed-by: Ricardo Koller >    Signed-off-by: Paolo Bonzini > > For the other patch, returning 0 is going to cause issues elsewhere > in the tests.  Either the test is failed immediately, or all callers > must be examined carefully. > > Paolo > > .