force push to kvm/next coming
Paolo Bonzini
maintainerLinux-next merge reported some bad mistakes on my part, so I'm force-pushing kvm/next. Since it was pushed only yesterday and the code is the same except for two changed lines, it shouldn't be a big deal.
Paolo
Quoted 6 lines · Paolo Bonzini
Linux-next merge reported some bad mistakes on my part, so I'm force-pushing kvm/next. Since it was pushed only yesterday and the code is the same except for two changed lines, it shouldn't be a big deal.
Paolo
current KVM/next has the following compile error (due to Seans rework).
CC [M] arch/s390/kvm/kvm-s390.oarch/s390/kvm/kvm-s390.c: In function ‘kvm_arch_vcpu_create’:arch/s390/kvm/kvm-s390.c:3026:32: error: ‘id’ undeclared (first use in this function); did you mean ‘fd’?
3026 | vcpu->arch.sie_block->icpua = id;
| ^~
| fdarch/s390/kvm/kvm-s390.c:3026:32: note: each undeclared identifier is reported only once for each function it appears in arch/s390/kvm/kvm-s390.c:3028:39: error: ‘kvm’ undeclared (first use in this function)
3028 | vcpu->arch.sie_block->gd = (u32)(u64)kvm->arch.gisa_int.origin;
| ^~~
make[2]: *** [scripts/Makefile.build:266: arch/s390/kvm/kvm-s390.o] Error 1
make[1]: *** [scripts/Makefile.build:503: arch/s390/kvm] Error 2
make: *** [Makefile:1693: arch/s390] Error 2
Is this part of the fixup that you will do or another issue?
Paolo Bonzini
maintainerQuoted 25 lines · Christian Borntraeger
Quoted 6 lines · Paolo Bonzini
Linux-next merge reported some bad mistakes on my part, so I'm force-pushing kvm/next. Since it was pushed only yesterday and the code is the same except for two changed lines, it shouldn't be a big deal.
Paolo
current KVM/next has the following compile error (due to Seans rework).
CC [M]
arch/s390/kvm/kvm-s390.oarch/s390/kvm/kvm-s390.c: In function ‘kvm_arch_vcpu_create’:arch/s390/kvm/kvm-s390.c:3026:32: error: ‘id’ undeclared (first use in this function); did you mean ‘fd’?3026 | vcpu->arch.sie_block->icpua = id; | ^~ | fd
arch/s390/kvm/kvm-s390.c:3026:32: note: each undeclared identifier is reported only once for each function it appears inarch/s390/kvm/kvm-s390.c:3028:39: error: ‘kvm’ undeclared (first use in this function)
3028 |vcpu->arch.sie_block->gd= (u32)(u64)kvm->arch.gisa_int.origin;
| ^~~
make[2]: *** [scripts/Makefile.build:266:arch/s390/kvm/kvm-s390.o] Error 1
make[1]: *** [scripts/Makefile.build:503:arch/s390/kvm] Error 2
make: *** [Makefile:1693:arch/s390] Error 2
Quoted 1 line
Is this part of the fixup that you will do or another issue?
Nope, I trusted Conny's review on that. :(
Is this enough?
arch/s390/kvm/kvm-s390.c +4 -4
@@ -3023,9 +3023,9 @@ int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu) vcpu->arch.sie_block->mso =0 ; vcpu->arch.sie_block->msl = sclp.hamax; - vcpu->arch.sie_block->icpua = id; + vcpu->arch.sie_block->icpua = vcpu->vcpu_id;spin_lock_init (&vcpu->arch.local_int.lock); - vcpu->arch.sie_block->gd = (u32 )(u64 )kvm->arch.gisa_int.origin; + vcpu->arch.sie_block->gd = (u32 )(u64 )vcpu->kvm->arch.gisa_int.origin;if (vcpu->arch.sie_block->gd && sclp.has_gisaf) vcpu->arch.sie_block->gd |=GISA_FORMAT1 ;seqcount_init (&vcpu->arch.cputm_seqcount);
@@ -3061,9 +3061,9 @@ int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu) goto out_free_sie_block; } -VM_EVENT (kvm,3 ,"create cpu %d at 0x%pK, sie block at 0x%pK" , id, vcpu, +VM_EVENT (kvm,3 ,"create cpu %d at 0x%pK, sie block at 0x%pK" , vcpu->vcpu_id, vcpu, vcpu->arch.sie_block); -trace_kvm_s390_create_vcpu (id, vcpu, vcpu->arch.sie_block); +trace_kvm_s390_create_vcpu (vcpu->vcpu_id, vcpu, vcpu->arch.sie_block); rc =kvm_s390_vcpu_setup (vcpu);if (rc)
Paolo
Quoted 26 lines · Paolo Bonzini
Quoted 25 lines · Christian Borntraeger
Quoted 6 lines · Paolo Bonzini
Linux-next merge reported some bad mistakes on my part, so I'm force-pushing kvm/next. Since it was pushed only yesterday and the code is the same except for two changed lines, it shouldn't be a big deal.
Paolo
current KVM/next has the following compile error (due to Seans rework).
CC [M]
arch/s390/kvm/kvm-s390.oarch/s390/kvm/kvm-s390.c: In function ‘kvm_arch_vcpu_create’:arch/s390/kvm/kvm-s390.c:3026:32: error: ‘id’ undeclared (first use in this function); did you mean ‘fd’?3026 | vcpu->arch.sie_block->icpua = id; | ^~ | fd
arch/s390/kvm/kvm-s390.c:3026:32: note: each undeclared identifier is reported only once for each function it appears inarch/s390/kvm/kvm-s390.c:3028:39: error: ‘kvm’ undeclared (first use in this function)
3028 |vcpu->arch.sie_block->gd= (u32)(u64)kvm->arch.gisa_int.origin;
| ^~~
make[2]: *** [scripts/Makefile.build:266:arch/s390/kvm/kvm-s390.o] Error 1
make[1]: *** [scripts/Makefile.build:503:arch/s390/kvm] Error 2
make: *** [Makefile:1693:arch/s390] Error 2
Quoted 6 lines
Quoted 1 line
Is this part of the fixup that you will do or another issue?
Nope, I trusted Conny's review on that. :(
Is this enough?
Nope
There is another kvm instance in that function.
Something like the following does the trick.
arch/s390/kvm/kvm-s390.c +2 -2
@@ -3061,8 +3061,8 @@ int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu) goto out_free_sie_block; } -VM_EVENT (kvm,3 ,"create cpu %d at 0x%pK, sie block at 0x%pK" , vcpu->vcpu_id, vcpu, - vcpu->arch.sie_block); +VM_EVENT (vcpu->kvm,3 ,"create cpu %d at 0x%pK, sie block at 0x%pK" , + vcpu->vcpu_id, vcpu, vcpu->arch.sie_block);trace_kvm_s390_create_vcpu (vcpu->vcpu_id, vcpu, vcpu->arch.sie_block); rc =kvm_s390_vcpu_setup (vcpu);
It is still compiling, test will take a while. But please push the fixup. This will help with our automation that picks up linux-next.
Quoted 32 lines
arch/s390/kvm/kvm-s390.c +4
-4@@ -3023,9 +3023,9 @@ int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu) vcpu->arch.sie_block->mso =0 ; vcpu->arch.sie_block->msl = sclp.hamax; - vcpu->arch.sie_block->icpua = id; + vcpu->arch.sie_block->icpua = vcpu->vcpu_id;spin_lock_init (&vcpu->arch.local_int.lock); - vcpu->arch.sie_block->gd = (u32 )(u64 )kvm->arch.gisa_int.origin; + vcpu->arch.sie_block->gd = (u32 )(u64 )vcpu->kvm->arch.gisa_int.origin;if (vcpu->arch.sie_block->gd && sclp.has_gisaf) vcpu->arch.sie_block->gd |=GISA_FORMAT1 ;seqcount_init (&vcpu->arch.cputm_seqcount);@@ -3061,9 +3061,9 @@ int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu) goto out_free_sie_block; } -VM_EVENT (kvm,3 ,"create cpu %d at 0x%pK, sie block at 0x%pK" , id, vcpu, +VM_EVENT (kvm,3 ,"create cpu %d at 0x%pK, sie block at 0x%pK" , vcpu->vcpu_id, vcpu, vcpu->arch.sie_block); -trace_kvm_s390_create_vcpu (id, vcpu, vcpu->arch.sie_block); +trace_kvm_s390_create_vcpu (vcpu->vcpu_id, vcpu, vcpu->arch.sie_block); rc =kvm_s390_vcpu_setup (vcpu);if (rc)Paolo
On 25.01.20 12:31, Christian Borntraeger wrote:
[..]
Quoted 22 lines
Nope
There is another kvm instance in that function.
Something like the following does the trick.arch/s390/kvm/kvm-s390.c +2
-2@@ -3061,8 +3061,8 @@ int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu) goto out_free_sie_block; } -VM_EVENT (kvm,3 ,"create cpu %d at 0x%pK, sie block at 0x%pK" , vcpu->vcpu_id, vcpu, - vcpu->arch.sie_block); +VM_EVENT (vcpu->kvm,3 ,"create cpu %d at 0x%pK, sie block at 0x%pK" , + vcpu->vcpu_id, vcpu, vcpu->arch.sie_block);trace_kvm_s390_create_vcpu (vcpu->vcpu_id, vcpu, vcpu->arch.sie_block); rc =kvm_s390_vcpu_setup (vcpu);
Quoted 2 lines
It is still compiling, test will take a while. But please push the fixup. This will help with our automation that picks up linux-next.
The quick sniff with this fixup on top of your fixup looks good.
Quoted 26 lines · Paolo Bonzini
Quoted 25 lines · Christian Borntraeger
Quoted 6 lines · Paolo Bonzini
Linux-next merge reported some bad mistakes on my part, so I'm force-pushing kvm/next. Since it was pushed only yesterday and the code is the same except for two changed lines, it shouldn't be a big deal.
Paolo
current KVM/next has the following compile error (due to Seans rework).
CC [M]
arch/s390/kvm/kvm-s390.oarch/s390/kvm/kvm-s390.c: In function ‘kvm_arch_vcpu_create’:arch/s390/kvm/kvm-s390.c:3026:32: error: ‘id’ undeclared (first use in this function); did you mean ‘fd’?3026 | vcpu->arch.sie_block->icpua = id; | ^~ | fd
arch/s390/kvm/kvm-s390.c:3026:32: note: each undeclared identifier is reported only once for each function it appears inarch/s390/kvm/kvm-s390.c:3028:39: error: ‘kvm’ undeclared (first use in this function)
3028 |vcpu->arch.sie_block->gd= (u32)(u64)kvm->arch.gisa_int.origin;
| ^~~
make[2]: *** [scripts/Makefile.build:266:arch/s390/kvm/kvm-s390.o] Error 1
make[1]: *** [scripts/Makefile.build:503:arch/s390/kvm] Error 2
make: *** [Makefile:1693:arch/s390] Error 2
Quoted 3 lines
Quoted 1 line
Is this part of the fixup that you will do or another issue?
Nope, I trusted Conny's review on that. :(
FWIW, I did test an earlier version of Seans patch set. So something must have gone wrong during one of the other fixups. Good news is that this was detected within a day by automated tools.
Quoted 26 lines · On Sat, 25 Jan 2020 10:31:27 +0100 Paolo Bonzini <[email protected]> wrote:
Quoted 25 lines · Christian Borntraeger
Quoted 6 lines · Paolo Bonzini
Linux-next merge reported some bad mistakes on my part, so I'm force-pushing kvm/next. Since it was pushed only yesterday and the code is the same except for two changed lines, it shouldn't be a big deal.
Paolo
current KVM/next has the following compile error (due to Seans rework).
CC [M]
arch/s390/kvm/kvm-s390.oarch/s390/kvm/kvm-s390.c: In function ‘kvm_arch_vcpu_create’:arch/s390/kvm/kvm-s390.c:3026:32: error: ‘id’ undeclared (first use in this function); did you mean ‘fd’?3026 | vcpu->arch.sie_block->icpua = id; | ^~ | fd
arch/s390/kvm/kvm-s390.c:3026:32: note: each undeclared identifier is reported only once for each function it appears inarch/s390/kvm/kvm-s390.c:3028:39: error: ‘kvm’ undeclared (first use in this function)
3028 |vcpu->arch.sie_block->gd= (u32)(u64)kvm->arch.gisa_int.origin;
| ^~~
make[2]: *** [scripts/Makefile.build:266:arch/s390/kvm/kvm-s390.o] Error 1
make[1]: *** [scripts/Makefile.build:503:arch/s390/kvm] Error 2
make: *** [Makefile:1693:arch/s390] Error 2
Quoted 3 lines
Quoted 1 line
Is this part of the fixup that you will do or another issue?
Nope, I trusted Conny's review on that. :(
Sorry about missing that, reviewed too late in the year :(
[If I actually test something, I'm usually explicitly mentioning that.]
Quoted 26 lines · Paolo Bonzini
Quoted 25 lines · Christian Borntraeger
Quoted 6 lines · Paolo Bonzini
Linux-next merge reported some bad mistakes on my part, so I'm force-pushing kvm/next. Since it was pushed only yesterday and the code is the same except for two changed lines, it shouldn't be a big deal.
Paolo
current KVM/next has the following compile error (due to Seans rework).
CC [M]
arch/s390/kvm/kvm-s390.oarch/s390/kvm/kvm-s390.c: In function ‘kvm_arch_vcpu_create’:arch/s390/kvm/kvm-s390.c:3026:32: error: ‘id’ undeclared (first use in this function); did you mean ‘fd’?3026 | vcpu->arch.sie_block->icpua = id; | ^~ | fd
arch/s390/kvm/kvm-s390.c:3026:32: note: each undeclared identifier is reported only once for each function it appears inarch/s390/kvm/kvm-s390.c:3028:39: error: ‘kvm’ undeclared (first use in this function)
3028 |vcpu->arch.sie_block->gd= (u32)(u64)kvm->arch.gisa_int.origin;
| ^~~
make[2]: *** [scripts/Makefile.build:266:arch/s390/kvm/kvm-s390.o] Error 1
make[1]: *** [scripts/Makefile.build:503:arch/s390/kvm] Error 2
make: *** [Makefile:1693:arch/s390] Error 2
Quoted 5 lines
Quoted 1 line
Is this part of the fixup that you will do or another issue?
Nope, I trusted Conny's review on that. :(
Is this enough?
Any chance to get the branch fixed? linux next does not build on s390 due to that and this is far from ideal during the merge window.
A message that is not in the archive (sent off-list or not yet received): CABgObfb3egc_LyyZ2mo__hzG5c+dPjCtBUC+N5y7XBYYBn7K2w@mail.gmail.com
Quoted 9 lines · Paolo Bonzini
Il mar 28 gen 2020, 08:32 Christian Borntraeger <[email protected] <mailto:[email protected]>> ha scritto:
Any chance to get the branch fixed? linux next does not build on s390 due to that and this is far from ideal during the merge window.
Yes, I will have it fixed today.
Yes, kvm/next does build on s390x. Thanks