From: chenlifu <chenlifu@huawei.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
Shuah Khan <skhan@linuxfoundation.org>, <shuah@kernel.org>,
<bgardon@google.com>, <wangyanan55@huawei.com>,
<axelrasmussen@google.com>, <drjones@redhat.com>,
<seanjc@google.com>, <vkuznets@redhat.com>, <dwmw@amazon.co.uk>,
<joao.m.martins@oracle.com>, <yangyingliang@huawei.com>,
<kvm@vger.kernel.org>, <linux-kselftest@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH -next 1/2] selftests: Fix vm_handle_exception undefined error
Date: Mon, 16 Aug 2021 10:53:28 +0800 [thread overview]
Message-ID: <b8f2a211-b2e0-b8e0-4215-a428e4044f88@huawei.com> (raw)
In-Reply-To: <b6fca25d-f241-4de2-5a8e-cbcd34abc758@redhat.com>
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 <chenlifu@huawei.com>
>>> ---
>>> 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 <maz@kernel.org>
> 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 <drjones@redhat.com>
> CC: Ricardo Koller <ricarkol@google.com>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Marc Zyngier <maz@kernel.org>
> Message-Id: <20210701071928.2971053-1-maz@kernel.org>
> Reviewed-by: Andrew Jones <drjones@redhat.com>
> Reviewed-by: Ricardo Koller <ricarkol@google.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>
> 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
>
> .
prev parent reply other threads:[~2021-08-16 2:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-09 6:37 Chen Lifu
2021-07-09 6:37 ` [PATCH -next 2/2] selftests: Fix fscanf warning Chen Lifu
2021-08-13 7:27 ` ping//Re: " chenlifu
2021-08-13 17:01 ` [PATCH -next 1/2] selftests: Fix vm_handle_exception undefined error Shuah Khan
2021-08-13 23:26 ` Paolo Bonzini
2021-08-16 2:53 ` chenlifu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b8f2a211-b2e0-b8e0-4215-a428e4044f88@huawei.com \
--to=chenlifu@huawei.com \
--cc=axelrasmussen@google.com \
--cc=bgardon@google.com \
--cc=drjones@redhat.com \
--cc=dwmw@amazon.co.uk \
--cc=joao.m.martins@oracle.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.com \
--cc=shuah@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=vkuznets@redhat.com \
--cc=wangyanan55@huawei.com \
--cc=yangyingliang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®