From: Christian Borntraeger Subject: Re: KVM compile fails on s390x Date: Mon, 4 Aug 2008 13:02:38 +0200 Message-ID: <200808041302.38847.borntraeger@de.ibm.com> References: <200807312107.39200.robin@binro.org> <200808011409.02379.borntraeger@de.ibm.com> <200808021900.23830.robin@binro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Robin Atwood Return-path: Received: from mtagate2.uk.ibm.com ([195.212.29.135]:33349 "EHLO mtagate2.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752190AbYHDLCx (ORCPT ); Mon, 4 Aug 2008 07:02:53 -0400 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate2.uk.ibm.com (8.13.8/8.13.8) with ESMTP id m74B2gxp159642 for ; Mon, 4 Aug 2008 11:02:42 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m74B2eEQ2801858 for ; Mon, 4 Aug 2008 12:02:41 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m74B2d9F011901 for ; Mon, 4 Aug 2008 12:02:39 +0100 In-Reply-To: <200808021900.23830.robin@binro.org> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Am Samstag, 2. August 2008 schrieb Robin Atwood: > On Friday 01 Aug 2008, Christian Borntraeger wrote: > > Am Donnerstag, 31. Juli 2008 schrieb Robin Atwood: > > > I guess I am doing something very dumb, but when I try to compile kvm-72 > > > on z900 architecture (actually Hercules) I immediately get a compile > > > error: > > > > > > zgentoo kvm-72 # ./configure --disable-gfx-check --disable-sdl > > > > Your userspace headers dont have all the necessary pieces... > > You want to add --with-patched-kernel, that should trigger an headers_sync > > to get the header files from the kernel. > > The correct headers are now found but later into the compile I get: > > In file included > from /var/tmp/portage/app-emulation/kvm-72/work/kvm-72/qemu/exec.c:41: > /var/tmp/portage/app-emulation/kvm-72/work/kvm-72/qemu/tcg/tcg.h:24:24: error: > tcg-target.h: No such file or directory > /var/tmp/portage/app-emulation/kvm-72/work/kvm-72/qemu/tcg/tcg.h:37:2: error: > #error unsupported > > make[2]: *** [exec.o] Error 1 > make[2]: Leaving directory > `/var/tmp/portage/app-emulation/kvm-72/work/kvm-72/qemu/i386-softmmu' > make[1]: *** [subdir-i386-softmmu] Error 2 > make[1]: Leaving directory > `/var/tmp/portage/app-emulation/kvm-72/work/kvm-72/qemu' > make: *** [qemu] Error 2 > > There is no tcg-target.h for the s390 arch but why is i386-softmmu being > compiled? Yes. Expect further breakage in kvm-userspace on s390. At the moment libkvm is the only part of kvm-userspace that is finished. Anything else is not yet done. At the moment you have to use kuli to start a guest. If you start kuli with: # kuli -k -a "noinitrd" you will get a booting kernel until the no device found panic message you can use a file, disk or partition as a root device. If you have a copy of your distribution on lets say /dev/dasdb1 you can boot with: # kuli -k /boot/image- -a "initrd root=/dev/vda" \ -d file=/dev/dasdb1 -i /boot/initrd- Make sure to adopt the guest fstab to /dev/vda and so on. Christian