[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b6fca25d-f241-4de2-5a8e-cbcd34abc758@redhat.com>
Date: Sat, 14 Aug 2021 01:26:59 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Shuah Khan <skhan@...uxfoundation.org>,
Chen Lifu <chenlifu@...wei.com>, shuah@...nel.org,
bgardon@...gle.com, wangyanan55@...wei.com,
axelrasmussen@...gle.com, drjones@...hat.com, seanjc@...gle.com,
vkuznets@...hat.com, dwmw@...zon.co.uk, joao.m.martins@...cle.com,
yangyingliang@...wei.com, kvm@...r.kernel.org,
linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next 1/2] selftests: Fix vm_handle_exception undefined
error
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@...wei.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@...nel.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@...hat.com>
CC: Ricardo Koller <ricarkol@...gle.com>
Cc: Paolo Bonzini <pbonzini@...hat.com>
Signed-off-by: Marc Zyngier <maz@...nel.org>
Message-Id: <20210701071928.2971053-1-maz@...nel.org>
Reviewed-by: Andrew Jones <drjones@...hat.com>
Reviewed-by: Ricardo Koller <ricarkol@...gle.com>
Signed-off-by: Paolo Bonzini <pbonzini@...hat.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
Powered by blists - more mailing lists