* [PATCH] KVM: selftests: Fix build for memstress.[ch] rename
@ 2022-12-06 17:59 Mark Brown
2022-12-06 20:42 ` Stephen Rothwell
0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2022-12-06 17:59 UTC (permalink / raw)
To: Paolo Bonzini, Shuah Khan
Cc: linux-kselftest, kvm, Mark Brown, Ricardo Koller, Marc Zyngier,
David Matlack, Sean Christopherson, Stephen Rothwell
Today's -next fails to build the KVM selftests on at least arm64 due to
commit
9fda6753c9dd ("KVM: selftests: Rename perf_test_util.[ch] to memstress.[ch]")
interacting poorly with commit
a93871d0ea9f ("KVM: selftests: Add a userfaultfd library")
which adds a new user of perf_test_util.h. Do the rename in the new
user.
Fixes: 9fda6753c9dd ("KVM: selftests: Rename perf_test_util.[ch] to memstress.[ch]")
Fixes: a93871d0ea9f ("KVM: selftests: Add a userfaultfd library")
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: Ricardo Koller <ricarkol@google.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: David Matlack <dmatlack@google.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
---
tools/testing/selftests/kvm/lib/userfaultfd_util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/kvm/lib/userfaultfd_util.c b/tools/testing/selftests/kvm/lib/userfaultfd_util.c
index 3b44846fc277..92cef20902f1 100644
--- a/tools/testing/selftests/kvm/lib/userfaultfd_util.c
+++ b/tools/testing/selftests/kvm/lib/userfaultfd_util.c
@@ -20,7 +20,7 @@
#include "kvm_util.h"
#include "test_util.h"
-#include "perf_test_util.h"
+#include "memstress.h"
#include "userfaultfd_util.h"
#ifdef __NR_userfaultfd
--
2.30.2
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] KVM: selftests: Fix build for memstress.[ch] rename
2022-12-06 17:59 [PATCH] KVM: selftests: Fix build for memstress.[ch] rename Mark Brown
@ 2022-12-06 20:42 ` Stephen Rothwell
2022-12-07 0:33 ` Paolo Bonzini
0 siblings, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2022-12-06 20:42 UTC (permalink / raw)
To: Mark Brown
Cc: Paolo Bonzini, Shuah Khan, linux-kselftest, kvm, Ricardo Koller,
Marc Zyngier, David Matlack, Sean Christopherson,
Stephen Rothwell
[-- Attachment #1: Type: text/plain, Size: 1749 bytes --]
Hi Mark,
On Tue, 6 Dec 2022 17:59:16 +0000 Mark Brown <broonie@kernel.org> wrote:
>
> Today's -next fails to build the KVM selftests on at least arm64 due to
> commit
>
> 9fda6753c9dd ("KVM: selftests: Rename perf_test_util.[ch] to memstress.[ch]")
>
> interacting poorly with commit
>
> a93871d0ea9f ("KVM: selftests: Add a userfaultfd library")
>
> which adds a new user of perf_test_util.h. Do the rename in the new
> user.
>
> Fixes: 9fda6753c9dd ("KVM: selftests: Rename perf_test_util.[ch] to memstress.[ch]")
> Fixes: a93871d0ea9f ("KVM: selftests: Add a userfaultfd library")
> Signed-off-by: Mark Brown <broonie@kernel.org>
> Cc: Ricardo Koller <ricarkol@google.com>
> Cc: Marc Zyngier <maz@kernel.org>
> Cc: David Matlack <dmatlack@google.com>
> Cc: Sean Christopherson <seanjc@google.com>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> tools/testing/selftests/kvm/lib/userfaultfd_util.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/kvm/lib/userfaultfd_util.c b/tools/testing/selftests/kvm/lib/userfaultfd_util.c
> index 3b44846fc277..92cef20902f1 100644
> --- a/tools/testing/selftests/kvm/lib/userfaultfd_util.c
> +++ b/tools/testing/selftests/kvm/lib/userfaultfd_util.c
> @@ -20,7 +20,7 @@
>
> #include "kvm_util.h"
> #include "test_util.h"
> -#include "perf_test_util.h"
> +#include "memstress.h"
> #include "userfaultfd_util.h"
>
> #ifdef __NR_userfaultfd
> --
> 2.30.2
>
Thanks for that. I have added that as a merge fix patch to the kvm-arm
merge. I assume this will be fixed up when that tree is merged into
the kvm tree.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] KVM: selftests: Fix build for memstress.[ch] rename
2022-12-06 20:42 ` Stephen Rothwell
@ 2022-12-07 0:33 ` Paolo Bonzini
2022-12-07 1:44 ` Sean Christopherson
2022-12-07 7:54 ` Marc Zyngier
0 siblings, 2 replies; 5+ messages in thread
From: Paolo Bonzini @ 2022-12-07 0:33 UTC (permalink / raw)
To: Stephen Rothwell, Mark Brown
Cc: Shuah Khan, linux-kselftest, kvm, Ricardo Koller, Marc Zyngier,
David Matlack, Sean Christopherson
On 12/6/22 21:42, Stephen Rothwell wrote:
> Thanks for that. I have added that as a merge fix patch to the kvm-arm
> merge. I assume this will be fixed up when that tree is merged into
> the kvm tree.
Yes, I'll push as soon as I get confirmation that my own resolution is
correct.
Paolo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] KVM: selftests: Fix build for memstress.[ch] rename
2022-12-07 0:33 ` Paolo Bonzini
@ 2022-12-07 1:44 ` Sean Christopherson
2022-12-07 7:54 ` Marc Zyngier
1 sibling, 0 replies; 5+ messages in thread
From: Sean Christopherson @ 2022-12-07 1:44 UTC (permalink / raw)
To: Paolo Bonzini
Cc: Stephen Rothwell, Mark Brown, Shuah Khan, linux-kselftest, kvm,
Ricardo Koller, Marc Zyngier, David Matlack, Oliver Upton
+Oliver
On Wed, Dec 07, 2022, Paolo Bonzini wrote:
> On 12/6/22 21:42, Stephen Rothwell wrote:
> > Thanks for that. I have added that as a merge fix patch to the kvm-arm
> > merge. I assume this will be fixed up when that tree is merged into
> > the kvm tree.
>
> Yes, I'll push as soon as I get confirmation that my own resolution is
> correct.
Holler if you need/want help on getting arm's page_fault_test.c functional, I
think Oliver is already poking at it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] KVM: selftests: Fix build for memstress.[ch] rename
2022-12-07 0:33 ` Paolo Bonzini
2022-12-07 1:44 ` Sean Christopherson
@ 2022-12-07 7:54 ` Marc Zyngier
1 sibling, 0 replies; 5+ messages in thread
From: Marc Zyngier @ 2022-12-07 7:54 UTC (permalink / raw)
To: Paolo Bonzini
Cc: Stephen Rothwell, Mark Brown, Shuah Khan, linux-kselftest, kvm,
Ricardo Koller, David Matlack, Sean Christopherson
On Wed, 07 Dec 2022 00:33:12 +0000,
Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> On 12/6/22 21:42, Stephen Rothwell wrote:
> > Thanks for that. I have added that as a merge fix patch to the kvm-arm
> > merge. I assume this will be fixed up when that tree is merged into
> > the kvm tree.
>
> Yes, I'll push as soon as I get confirmation that my own resolution is
> correct.
As I said in [1], things do build once you add [2] to the mix. I
haven't had time to test the tests, but that shouldn't hold the push
into -next.
M.
[1] https://lore.kernel.org/all/86lenkl4d0.wl-maz@kernel.org
[2] https://lore.kernel.org/r/20221206181506.252537-1-broonie@kernel.org
--
Without deviation from the norm, progress is not possible.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-12-07 7:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-06 17:59 [PATCH] KVM: selftests: Fix build for memstress.[ch] rename Mark Brown
2022-12-06 20:42 ` Stephen Rothwell
2022-12-07 0:33 ` Paolo Bonzini
2022-12-07 1:44 ` Sean Christopherson
2022-12-07 7:54 ` Marc Zyngier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox