* [PATCH] KVM: selftests: Fix parameter order error in kvm_create_max_vcpus
@ 2020-04-05 15:29 Tianjia Zhang
0 siblings, 0 replies; only message in thread
From: Tianjia Zhang @ 2020-04-05 15:29 UTC (permalink / raw)
To: pbonzini, shuah; +Cc: kvm, linux-kselftest, linux-kernel
The parameter order of test_vcpu_creation() call is reversed here,
this patch is adjusted to the correct order.
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
---
tools/testing/selftests/kvm/kvm_create_max_vcpus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/kvm/kvm_create_max_vcpus.c b/tools/testing/selftests/kvm/kvm_create_max_vcpus.c
index 6f38c3dc0d56..a7f3120b4409 100644
--- a/tools/testing/selftests/kvm/kvm_create_max_vcpus.c
+++ b/tools/testing/selftests/kvm/kvm_create_max_vcpus.c
@@ -60,7 +60,7 @@ int main(int argc, char *argv[])
if (kvm_max_vcpu_id > kvm_max_vcpus)
test_vcpu_creation(
- kvm_max_vcpu_id - kvm_max_vcpus, kvm_max_vcpus);
+ kvm_max_vcpus, kvm_max_vcpu_id - kvm_max_vcpus);
return 0;
}
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-05 15:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-05 15:29 [PATCH] KVM: selftests: Fix parameter order error in kvm_create_max_vcpus Tianjia Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).