linux-next: manual merge of the kvm-arm tree with the kvm tree
Subsystems (3)
Hi all,
Today's linux-next merge of the kvm-arm tree got a conflict in:
tools/testing/selftests/kvm/include/perf_test_util.h
between commit:
9fda6753c9dd ("KVM: selftests: Rename perf_test_util.[ch] to memstress.[ch]")
from the kvm tree and commit:
9ec1eb1bccee ("KVM: selftests: Have perf_test_util signal when to stop vCPUs")
from the kvm-arm tree.
I fixed it up (I removed the file and applied the following patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
(this patch covered another occurrence fo the needed rename)
From: Stephen Rothwell <[email protected]>
Date: Thu, 1 Dec 2022 12:19:45 +1100
Subject: [PATCH] fix up for rename of perf_test_args to memstress_args
--- tools/testing/selftests/kvm/access_tracking_perf_test.c | 2 +- tools/testing/selftests/kvm/demand_paging_test.c | 2 +- tools/testing/selftests/kvm/include/memstress.h | 2 ++ tools/testing/selftests/kvm/lib/memstress.c | 4 ++-- .../testing/selftests/kvm/memslot_modification_stress_test.c | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-)
tools/testing/selftests/kvm/access_tracking_perf_test.c +1 -1
@@ -208,7 +208,7 @@ static bool spin_wait_for_next_iteration(int *current_iteration)int last_iteration = *current_iteration; do { - if (READ_ONCE(perf_test_args.stop_vcpus)) + if (READ_ONCE(memstress_args.stop_vcpus)) return false; *current_iteration = READ_ONCE(iteration);
tools/testing/selftests/kvm/demand_paging_test.c +1 -1
@@ -161,7 +161,7 @@ static void run_test(enum vm_guest_mode mode, void *arg) vcpu_alias =addr_gpa2alias (vm, vcpu_args->gpa);prefault_mem (vcpu_alias, - vcpu_args->pages * perf_test_args.guest_page_size); + vcpu_args->pages * memstress_args.guest_page_size);/* * Set up user fault fd to handle demand paging
tools/testing/selftests/kvm/include/memstress.h +2 -0
@@ -40,6 +40,8 @@ struct memstress_args {/* Run vCPUs in L2 instead of L1, if the architecture supports it. */ bool nested; +/* Test is done, stop running vCPUs. */ +bool stop_vcpus;/* Randomize which pages are accessed by the guest. */ bool random_access;/* True if all vCPUs are pinned to pCPUs */
tools/testing/selftests/kvm/lib/memstress.c +2 -2
@@ -292,7 +292,7 @@ void memstress_start_vcpu_threads(int nr_vcpus, vcpu_thread_fn = vcpu_fn;WRITE_ONCE (all_vcpu_threads_running, false); -WRITE_ONCE (perf_test_args.stop_vcpus, false); +WRITE_ONCE (memstress_args.stop_vcpus, false);for (i =0 ; i < nr_vcpus; i++) {struct vcpu_thread *vcpu = &vcpu_threads[i];
@@ -315,7 +315,7 @@ void memstress_join_vcpu_threads(int nr_vcpus) {int i; -WRITE_ONCE (perf_test_args.stop_vcpus, true); +WRITE_ONCE (memstress_args.stop_vcpus, true);for (i =0 ; i < nr_vcpus; i++)pthread_join (vcpu_threads[i].thread,NULL );
tools/testing/selftests/kvm/memslot_modification_stress_test.c +1 -1
@@ -43,7 +43,7 @@ static void vcpu_worker(struct memstress_vcpu_args *vcpu_args) run = vcpu->run;/* Let the guest access its memory until a stop signal is received */ -while (!READ_ONCE (perf_test_args.stop_vcpus)) { +while (!READ_ONCE (memstress_args.stop_vcpus)) { ret =_vcpu_run (vcpu);TEST_ASSERT (ret ==0 ,"vcpu_run failed: %d\n" , ret);
Signature · 5 lines
2.35.1 -- Cheers, Stephen Rothwell
Quoted 17 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the kvm-arm tree got a conflict in:
tools/testing/selftests/kvm/include/perf_test_util.hbetween commit:
9fda6753c9dd("KVM: selftests: Rename perf_test_util.[ch] to memstress.[ch]")from the kvm tree and commit:
9ec1eb1bccee("KVM: selftests: Haveperf_test_utilsignal when to stop vCPUs")from the kvm-arm tree.
Quoted 8 lines
I fixed it up (I removed the file and applied the following patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
(this patch covered another occurrence fo the needed rename)
Huh, this is a lot of conflicts.
Paolo, do you have a stable branch I can pull in my tree to kill those? Or do you want to deal with the conflicts yourself?
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.