Skip to contentSkip to conversation

force push to kvm/next coming

DISCUSSION Paolo Bonzini 3 participants 9 messages Jan 24, 2020 – Jan 29, 2020 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Paolo Bonzini

author maintainer
#0 lore raw

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

#1 lore raw
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.o
arch/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 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?

author maintainer
#2 lore raw
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.o
arch/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 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

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
index c059b86aacd4..0f475af84c0a 100644
@@ -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

#3 lore raw
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.o
arch/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 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

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
index 0f475af84c0a..8646c99217f2 100644
@@ -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
index c059b86aacd4..0f475af84c0a 100644
@@ -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

#5 lore raw
In reply to Paolo Bonzini
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.o
arch/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 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

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.

#4 lore raw
In reply to Christian Borntraeger

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
index 0f475af84c0a..8646c99217f2 100644
@@ -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.

#6 lore raw
In reply to Paolo Bonzini
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.o
arch/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 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

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.]

#7 lore raw
In reply to Paolo Bonzini
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.o
arch/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 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

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.