link failure with s390
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'
Quoted 4 lines · Michael S. Tsirkin
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'
Are you sure you're building with --enable-kvm? Currently there's no emulation target for S390.
Alex
Quoted 9 lines · Alexander Graf
Quoted 4 lines · Michael S. Tsirkin
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'Are you sure you're building with --enable-kvm?
No, I did ./configure --taget-list=s390x-softmmu
Quoted 1 line
Currently there's no emulation target for S390.
So either configure should fail without --enable-kvm, or better enable kvm by default.
Quoted 1 line
Alex
Quoted 9 lines · Michael S. Tsirkin
Quoted 8 lines · Alexander Graf
Quoted 4 lines · Michael S. Tsirkin
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'
Quoted 8 lines
Quoted 1 line
Are you sure you're building with --enable-kvm?
No, I did ./configure --taget-list=s390x-softmmu
Quoted 1 line
Currently there's no emulation target for S390.
So either configure should fail without --enable-kvm, or better enable kvm by default.
Well, that's why you have to explicitly do --target-list=s390-softmmu. I'd love to see S390 bumped to a normal qemu arch with both TCG and KVM backends. But for now we don't have that.
But yeah, we should probably add some sort of detection to configure, so it fails when you're building S390 on non-S390 and w/o KVM :-).
Alex
Quoted 21 lines · Alexander Graf
Quoted 9 lines · Michael S. Tsirkin
Quoted 8 lines · Alexander Graf
Quoted 4 lines · Michael S. Tsirkin
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'Quoted 8 lines
Quoted 1 line
Are you sure you're building with --enable-kvm?
No, I did ./configure --taget-list=s390x-softmmu
Quoted 1 line
Currently there's no emulation target for S390.
So either configure should fail without --enable-kvm, or better enable kvm by default.
Quoted 6 lines
Well, that's why you have to explicitly do --target-list=s390-softmmu. I'd love to see S390 bumped to a normal qemu arch with both TCG and KVM backends. But for now we don't have that.
But yeah, we should probably add some sort of detection to configure, so it fails when you're building S390 on non-S390 and w/o KVM :-).
Alex
By the way, where do you get kernel headers for s390 which are required to build with --enable-kvm? Which distro ships them?
Signature · 1 line
MST
Am 13.12.2009 um 20:58 schrieb "Michael S. Tsirkin" <[email protected]>:
Quoted 24 lines · Alexander Graf
Quoted 23 lines · Michael S. Tsirkin
Quoted 10 lines · Alexander Graf
Quoted 8 lines · Michael S. Tsirkin
Quoted 5 lines
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'Quoted 8 lines
Quoted 1 line
Are you sure you're building with --enable-kvm?
No, I did ./configure --taget-list=s390x-softmmu
Quoted 1 line
Currently there's no emulation target for S390.
So either configure should fail without --enable-kvm, or better enable kvm by default.
Well, that's why you have to explicitly do --target-list=s390-softmmu. I'd love to see S390 bumped to a normal qemu arch with both TCG and KVM backends. But for now we don't have that.
Quoted 8 lines
Quoted 4 lines
But yeah, we should probably add some sort of detection to configure, so it fails when you're building S390 on non-S390 and w/o KVM :-).
Alex
By the way, where do you get kernel headers for s390 which are required to build with --enable-kvm? Which distro ships them?
Uh, that's just the normal kernel headers, right?
SLE11 definitely does ship them. Worst case you just install the kernel sources.
Alex
Quoted 1 line
Quoted 34 lines · Alexander Graf
Am 13.12.2009 um 20:58 schrieb "Michael S. Tsirkin" <[email protected]>:
Quoted 31 lines · Alexander Graf
Quoted 30 lines · Michael S. Tsirkin
Quoted 10 lines · Alexander Graf
Quoted 8 lines · Michael S. Tsirkin
Quoted 5 lines
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'Quoted 8 lines
Quoted 1 line
Are you sure you're building with --enable-kvm?
No, I did ./configure --taget-list=s390x-softmmu
Quoted 1 line
Currently there's no emulation target for S390.
So either configure should fail without --enable-kvm, or better enable kvm by default.
Well, that's why you have to explicitly do --target-list=s390- softmmu. I'd love to see S390 bumped to a normal qemu arch with both TCG and KVM backends. But for now we don't have that.
But yeah, we should probably add some sort of detection to configure, so it fails when you're building S390 on non-S390 and w/o KVM :-).
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Alex
By the way, where do you get kernel headers for s390 which are required to build with --enable-kvm? Which distro ships them?
Uh, that's just the normal kernel headers, right?
SLE11 definitely does ship them.
kvm has architecture specific defines, does it not?
Quoted 5 lines
Worst case you just install the kernel
sources.Alex
Quoted 1 line
kernel sources is the wrong things to use for qemu. qemu should use exported sanitized sources.
Signature · 1 line
MST
Quoted 37 lines · Michael S. Tsirkin
Quoted 36 lines · Alexander Graf
Am 13.12.2009 um 20:58 schrieb "Michael S. Tsirkin" <[email protected]>:
Quoted 33 lines · Alexander Graf
Quoted 31 lines · Michael S. Tsirkin
Quoted 10 lines · Alexander Graf
Quoted 8 lines · Michael S. Tsirkin
Quoted 5 lines
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'Quoted 8 lines
Quoted 1 line
Are you sure you're building with --enable-kvm?
No, I did ./configure --taget-list=s390x-softmmu
Quoted 1 line
Currently there's no emulation target for S390.
So either configure should fail without --enable-kvm, or better enable kvm by default.
Well, that's why you have to explicitly do --target-list=s390- softmmu. I'd love to see S390 bumped to a normal qemu arch with both TCG and KVM backends. But for now we don't have that.
But yeah, we should probably add some sort of detection to configure, so it fails when you're building S390 on non-S390 and w/o KVM :-).
Alex
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
By the way, where do you get kernel headers for s390 which are required to build with --enable-kvm? Which distro ships them?
Uh, that's just the normal kernel headers, right?
SLE11 definitely does ship them.kvm has architecture specific defines, does it not?
In files called the same on x86, just with a different asm link.
Quoted 9 lines
Quoted 6 lines
Worst case you just install the kernel
sources.Alex
Quoted 1 line
kernel sources is the wrong things to use for qemu. qemu should use exported sanitized sources.
Same thing as on all other archs. What's your point here?
Alex
Quoted 44 lines · Alexander Graf
Quoted 41 lines · Michael S. Tsirkin
Quoted 40 lines · Alexander Graf
Am 13.12.2009 um 20:58 schrieb "Michael S. Tsirkin" <[email protected]>:
Quoted 36 lines · Alexander Graf
Quoted 25 lines · Michael S. Tsirkin
Quoted 10 lines · Alexander Graf
Quoted 8 lines · Michael S. Tsirkin
Quoted 5 lines
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'Quoted 8 lines
Quoted 1 line
Are you sure you're building with --enable-kvm?
No, I did ./configure --taget-list=s390x-softmmu
Quoted 1 line
Currently there's no emulation target for S390.
So either configure should fail without --enable-kvm, or better enable kvm by default.
Well, that's why you have to explicitly do --target-list=s390- softmmu. I'd love to see S390 bumped to a normal qemu arch with both TCG and KVM backends. But for now we don't have that.
Quoted 6 lines
But yeah, we should probably add some sort of detection to configure, so it fails when you're building S390 on non-S390 and w/o KVM :-).
Alex
By the way, where do you get kernel headers for s390 which are required to build with --enable-kvm? Which distro ships them?
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Uh, that's just the normal kernel headers, right?
SLE11 definitely does ship them.kvm has architecture specific defines, does it not?
In files called the same on x86, just with a different asm link.
Exactly.
ls -l /usr/src/kernels/2.6.30.8-64.fc11.i586/include/asm lrwxrwxrwx 1 root root 7 2009-10-04 17:53/usr/src/kernels/2.6.30.8-64.fc11.i586/include/asm -> asm-x86
so it won't find link for s390x.
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Worst case you just install the kernel
sources.Alex
Quoted 1 line
Quoted 6 lines
Quoted 2 lines
kernel sources is the wrong things to use for qemu. qemu should use exported sanitized sources.
Same thing as on all other archs. What's your point here?
Alex
Hmm. I'm just trying to understand how does build find kvm headers for s390 since they are not linked to from asm. Possibly what happens is we just pick a wrong arch and it kind of works most of the time?
anyway, with --enable-kvm I still get:
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'
collect2: ld returned 1 exit status
???
Signature · 1 line
MST
Quoted 50 lines · Michael S. Tsirkin
Quoted 49 lines · Alexander Graf
Quoted 45 lines · Michael S. Tsirkin
Quoted 34 lines · Alexander Graf
Am 13.12.2009 um 20:58 schrieb "Michael S. Tsirkin" <[email protected]>:
Quoted 31 lines · Alexander Graf
Quoted 30 lines · Michael S. Tsirkin
Quoted 10 lines · Alexander Graf
Quoted 8 lines · Michael S. Tsirkin
Quoted 5 lines
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'Quoted 8 lines
Quoted 1 line
Are you sure you're building with --enable-kvm?
No, I did ./configure --taget-list=s390x-softmmu
Quoted 1 line
Currently there's no emulation target for S390.
So either configure should fail without --enable-kvm, or better enable kvm by default.
Well, that's why you have to explicitly do --target-list=s390- softmmu. I'd love to see S390 bumped to a normal qemu arch with both TCG and KVM backends. But for now we don't have that.
But yeah, we should probably add some sort of detection to configure, so it fails when you're building S390 on non-S390 and w/o KVM :-).
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Alex
By the way, where do you get kernel headers for s390 which are required to build with --enable-kvm? Which distro ships them?
Uh, that's just the normal kernel headers, right?
SLE11 definitely does ship them.kvm has architecture specific defines, does it not?
Quoted 7 lines
Quoted 1 line
In files called the same on x86, just with a different asm link.
Exactly.
ls -l/usr/src/kernels/2.6.30.8-64.fc11.i586/include/asmlrwxrwxrwx 1 root root 7 2009-10-04 17:53/usr/src/kernels/2.6.30.8-64.fc11.i586/include/asm-> asm-x86so it won't find link for s390x.
Yes, because you can only build KVM for S390x on S390x :-).
Quoted 19 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Worst case you just install the kernel
sources.Alex
Quoted 1 line
Quoted 6 lines
Quoted 2 lines
kernel sources is the wrong things to use for qemu. qemu should use exported sanitized sources.
Same thing as on all other archs. What's your point here?
Alex
Hmm. I'm just trying to understand how does build find kvm headers for s390 since they are not linked to from asm. Possibly what happens is we just pick a wrong arch and it kind of works most of the time?
Quoted 6 lines
anyway, with --enable-kvm I still get:
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'
collect2: ld returned 1 exit status
Are you sure you're building on s390x? What does uname -a say?
Alex
Quoted 84 lines · Alexander Graf
Quoted 50 lines · Michael S. Tsirkin
Quoted 49 lines · Alexander Graf
Quoted 45 lines · Michael S. Tsirkin
Quoted 34 lines · Alexander Graf
Am 13.12.2009 um 20:58 schrieb "Michael S. Tsirkin" <[email protected]>:
Quoted 31 lines · Alexander Graf
Quoted 30 lines · Michael S. Tsirkin
Quoted 10 lines · Alexander Graf
Quoted 8 lines · Michael S. Tsirkin
Quoted 5 lines
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'Quoted 8 lines
Quoted 1 line
Are you sure you're building with --enable-kvm?
No, I did ./configure --taget-list=s390x-softmmu
Quoted 1 line
Currently there's no emulation target for S390.
So either configure should fail without --enable-kvm, or better enable kvm by default.
Well, that's why you have to explicitly do --target-list=s390- softmmu. I'd love to see S390 bumped to a normal qemu arch with both TCG and KVM backends. But for now we don't have that.
But yeah, we should probably add some sort of detection to configure, so it fails when you're building S390 on non-S390 and w/o KVM :-).
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Alex
By the way, where do you get kernel headers for s390 which are required to build with --enable-kvm? Which distro ships them?
Uh, that's just the normal kernel headers, right?
SLE11 definitely does ship them.kvm has architecture specific defines, does it not?
Quoted 7 lines
Quoted 1 line
In files called the same on x86, just with a different asm link.
Exactly.
ls -l/usr/src/kernels/2.6.30.8-64.fc11.i586/include/asmlrwxrwxrwx 1 root root 7 2009-10-04 17:53/usr/src/kernels/2.6.30.8-64.fc11.i586/include/asm-> asm-x86so it won't find link for s390x.
Yes, because you can only build KVM for S390x on S390x :-).
Quoted 21 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Worst case you just install the kernel
sources.Alex
Quoted 1 line
Quoted 6 lines
Quoted 2 lines
kernel sources is the wrong things to use for qemu. qemu should use exported sanitized sources.
Same thing as on all other archs. What's your point here?
Alex
Hmm. I'm just trying to understand how does build find kvm headers for s390 since they are not linked to from asm. Possibly what happens is we just pick a wrong arch and it kind of works most of the time?
anyway, with --enable-kvm I still get:
Quoted 8 lines
Quoted 4 lines
s390-virtio-bus.o: In function `virtio_s390_notify':
/scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to `kvm_s390_virtio_irq'
collect2: ld returned 1 exit statusAre you sure you're building on s390x? What does uname -a say?
Alex
No, I'm not. Ah, I forgot, kvm needs to be built native. My mistake, sorry. And anyway, it won't be much help without kvm supporting hardware. Oh well, I will get by with compile test only without linking it.
Signature · 1 line
MST