[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YxpaFfw4jbwwvEI6@google.com>
Date: Thu, 8 Sep 2022 14:09:41 -0700
From: David Matlack <dmatlack@...gle.com>
To: Vishal Annapurve <vannapurve@...gle.com>
Cc: x86@...nel.org, kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org, pbonzini@...hat.com,
shuah@...nel.org, bgardon@...gle.com, seanjc@...gle.com,
oupton@...gle.com, peterx@...hat.com, vkuznets@...hat.com,
drjones@...hat.com
Subject: Re: [V1 PATCH 1/5] selftests: kvm: move common startup logic to
kvm_util.c
On Sat, Sep 03, 2022 at 01:28:45AM +0000, Vishal Annapurve wrote:
[...]
> --- a/tools/testing/selftests/kvm/demand_paging_test.c
> +++ b/tools/testing/selftests/kvm/demand_paging_test.c
> @@ -393,7 +393,7 @@ static void help(char *name)
> exit(0);
> }
>
> -int main(int argc, char *argv[])
> +void __main(int argc, char *argv[])
> {
> int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS);
> struct test_params p = {
> @@ -447,18 +447,15 @@ int main(int argc, char *argv[])
> }
>
> for_each_guest_mode(run_test, &p);
> -
> - return 0;
> }
>
> #else /* __NR_userfaultfd */
>
> #warning "missing __NR_userfaultfd definition"
>
> -int main(void)
> +void __main(int argc, char *argv[])
> {
> print_skip("__NR_userfaultfd must be present for userfaultfd test");
> - return KSFT_SKIP;
exit(KSFT_SKIP) to preserve the test behavior.
Powered by blists - more mailing lists