Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJwn6-0003tp-Kw for qemu-devel@nongnu.org; Sun, 13 Dec 2009 17:19:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJwn1-0003sv-UJ for qemu-devel@nongnu.org; Sun, 13 Dec 2009 17:19:48 -0500 Received: from [199.232.76.173] (port=37658 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJwn1-0003ss-S2 for qemu-devel@nongnu.org; Sun, 13 Dec 2009 17:19:43 -0500 Received: from cantor2.suse.de ([195.135.220.15]:46267 helo=mx2.suse.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NJwn1-00056Q-Fd for qemu-devel@nongnu.org; Sun, 13 Dec 2009 17:19:43 -0500 Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <20091213221302.GA26577@redhat.com> Date: Sun, 13 Dec 2009 23:19:40 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20091213145132.GA11258@redhat.com> <20091213190839.GA25519@redhat.com> <20091213195809.GA25615@redhat.com> <20091213201900.GA25658@redhat.com> <8E2A839B-F3EA-46E0-9E11-52117F47C5EA@suse.de> <20091213221302.GA26577@redhat.com> Subject: [Qemu-devel] Re: link failure with s390 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S.Tsirkin" Cc: "qemu-devel@nongnu.org" On 13.12.2009, at 23:13, Michael S. Tsirkin wrote: > On Sun, Dec 13, 2009 at 10:44:04PM +0100, Alexander Graf wrote: >>=20 >> On 13.12.2009, at 21:19, Michael S. Tsirkin wrote: >>=20 >>> On Sun, Dec 13, 2009 at 09:15:30PM +0100, Alexander Graf wrote: >>>>=20 >>>> Am 13.12.2009 um 20:58 schrieb "Michael S. Tsirkin" = : >>>>=20 >>>>> On Sun, Dec 13, 2009 at 08:21:57PM +0100, Alexander Graf wrote: >>>>>>=20 >>>>>> On 13.12.2009, at 20:08, Michael S. Tsirkin wrote: >>>>>>=20 >>>>>>> On Sun, Dec 13, 2009 at 06:30:56PM +0100, Alexander Graf wrote: >>>>>>>>=20 >>>>>>>> On 13.12.2009, at 15:51, Michael S. Tsirkin wrote: >>>>>>>>=20 >>>>>>>>> s390-virtio-bus.o: In function `virtio_s390_notify': >>>>>>>>> /scm/qemu/hw/s390-virtio-bus.c:310: undefined reference to >>>>>>>>> `kvm_s390_virtio_irq' >>>>>>>>>=20 >>>>>>>>=20 >>>>>>>> Are you sure you're building with --enable-kvm? >>>>>>>=20 >>>>>>> No, I did ./configure --taget-list=3Ds390x-softmmu >>>>>>>=20 >>>>>>>> Currently there's no emulation target for S390. >>>>>>>=20 >>>>>>> So either configure should fail without --enable-kvm, >>>>>>> or better enable kvm by default. >>>>>>=20 >>>>>> Well, that's why you have to explicitly do --target-list=3Ds390-=20= >>>>>> softmmu. I'd love to see S390 bumped to a normal qemu arch with = both=20 >>>>>> TCG and KVM backends. But for now we don't have that. >>>>>>=20 >>>>>> But yeah, we should probably add some sort of detection to =20 >>>>>> configure, so it fails when you're building S390 on non-S390 and = w/o=20 >>>>>> KVM :-). >>>>>>=20 >>>>>>=20 >>>>>> Alex >>>>>=20 >>>>> By the way, where do you get kernel headers for s390 >>>>> which are required to build with --enable-kvm? >>>>> Which distro ships them? >>>>=20 >>>> Uh, that's just the normal kernel headers, right? >>>> SLE11 definitely does ship them. >>>=20 >>> kvm has architecture specific defines, does it not? >>=20 >> In files called the same on x86, just with a different asm link. >=20 > 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 >=20 > so it won't find link for s390x. Yes, because you can only build KVM for S390x on S390x :-). >=20 >>>=20 >>>> Worst case you just install the kernel=20 >>>> sources. >>>>=20 >>>> Alex >>>>>=20 >>>=20 >>> kernel sources is the wrong things to use for qemu. qemu should use >>> exported sanitized sources. >>=20 >> Same thing as on all other archs. What's your point here? >>=20 >> Alex >=20 > 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? >=20 > anyway, with --enable-kvm I still get: >=20 > 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=