From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: [PATCH 07/28] kvm tools: Move 'kvm__recommended_cpus' to arch-specific code Date: Wed, 07 Dec 2011 17:25:27 +0200 Message-ID: <1323271527.4009.25.camel@lappy> References: <4EDD8E73.8040505@ozlabs.org> <1323159616.3882.7.camel@lappy> <4EDF04F4.40805@ozlabs.org> <1323239695.8489.25.camel@lappy> <4EDF138E.6040703@ozlabs.org> <4EDF158E.1050607@ozlabs.org> <1323246564.4009.2.camel@lappy> <4EDF7404.4010909@redhat.com> <1323267728.4009.14.camel@lappy> <4EDF7740.7040104@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Matt Evans , "kvm@vger.kernel.org" , "kvm-ppc@vger.kernel.org" To: Alexander Graf Return-path: In-Reply-To: Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Wed, 2011-12-07 at 16:00 +0100, Alexander Graf wrote: > On 07.12.2011, at 15:25, Avi Kivity wrote: > > > On 12/07/2011 04:22 PM, Sasha Levin wrote: > >> On Wed, 2011-12-07 at 16:11 +0200, Avi Kivity wrote: > >>> On 12/07/2011 10:29 AM, Sasha Levin wrote: > >>>> I also got another one, but it's **completely untested** (not even > >>>> compiled). Alex, Matt, any chance one of you can loan a temporary ppc > >>>> shell for the upcoming tests of KVM tool/ppc KVM? > >>>> > >>> > >>> qemu offers free ppc shells > >> > >> qemu would let me nest a guest inside a ppc guest on my x86? > > > > On supervisor mode only (trap-and-emulate virtualization); I don't think > > qemu emulates ppc hypervisor mode. > > Yup, that should work for PR KVM. I'm not sure Matt's patches work in that mode though. > > So you should be able to run qemu-system-ppc64 -M pseries -nographic to emulate a ppc box and then do the same in the guest with -enable-kvm. > > If that works, you can try with kvm tool in the first guest :). Tried that, got the following (qemu-kvm-1.0 on qemu-kvm.git): LINK ppc64-softmmu/qemu-system-ppc64 ../libhw64/i8259.o: In function `kvm_i8259_set_irq': /root/work/src/qemu-kvm/hw/i8259.c:707: undefined reference to `apic_set_irq_delivered' ../libhw64/i8259.o: In function `pic_read_irq': /root/work/src/qemu-kvm/hw/i8259.c:240: undefined reference to `timer_acks' /root/work/src/qemu-kvm/hw/i8259.c:241: undefined reference to `timer_ints_to_push' collect2: ld returned 1 exit status make[1]: *** [qemu-system-ppc64] Error 1 make: *** [subdir-ppc64-softmmu] Error 2 What am I doing wrong? -- Sasha.