lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <C3B4A5C9-0AE0-49C8-A349-879ADDA01804@suse.de>
Date:	Fri, 23 Dec 2011 14:50:33 +0100
From:	Alexander Graf <agraf@...e.de>
To:	Jörg Sommer <joerg@...a.gnuu.de>
Cc:	Avi Kivity <avi@...hat.com>, Marcelo Tosatti <mtosatti@...hat.com>,
	kvm list <kvm@...r.kernel.org>, kvm-ppc@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: Current kernel fails to compile with KVM on PowerPC


On 20.12.2011, at 21:27, Jörg Sommer wrote:

> Hello Alexander,
> 
> Jörg Sommer hat am Mon 07. Nov, 20:48 (+0100) geschrieben:
>>  CHK     include/linux/version.h
>>  HOSTCC  scripts/mod/modpost.o
>>  CHK     include/generated/utsrelease.h
>>  UPD     include/generated/utsrelease.h
>>  HOSTLD  scripts/mod/modpost
>>  GEN     include/generated/bounds.h
>>  CC      arch/powerpc/kernel/asm-offsets.s
>> In file included from arch/powerpc/kernel/asm-offsets.c:59:0:
>> /home/joerg/git/linux/arch/powerpc/include/asm/kvm_book3s.h: In function ‘compute_tlbie_rb’:
>> /home/joerg/git/linux/arch/powerpc/include/asm/kvm_book3s.h:393:10: error: ‘HPTE_V_SECONDARY’ undeclared (first use in this function)
>> /home/joerg/git/linux/arch/powerpc/include/asm/kvm_book3s.h:393:10: note: each undeclared identifier is reported only once for each function it appears in
>> /home/joerg/git/linux/arch/powerpc/include/asm/kvm_book3s.h:396:12: error: ‘HPTE_V_1TB_SEG’ undeclared (first use in this function)
>> /home/joerg/git/linux/arch/powerpc/include/asm/kvm_book3s.h:401:10: error: ‘HPTE_V_LARGE’ undeclared (first use in this function)
>> /home/joerg/git/linux/arch/powerpc/include/asm/kvm_book3s.h:415:2: warning: right shift count >= width of type [enabled by default]
>> make[3]: *** [arch/powerpc/kernel/asm-offsets.s] Fehler 1
>> make[2]: *** [prepare0] Fehler 2
>> make[1]: *** [deb-pkg] Fehler 2
>> make: *** [deb-pkg] Fehler 2
> 
> I'm so sorry to have to report a new bug in one of your patches. It was
> covered by the one above. I've picked the commit for it from your git
> repository and now, the kernel build fails with this error:
> 
>  BOOTCC  arch/powerpc/boot/fdt_strerror.o
>  BOOTAR  arch/powerpc/boot/wrapper.a
>  WRAP    arch/powerpc/boot/zImage.pmac
>  WRAP    arch/powerpc/boot/zImage.coff
> ERROR: "kvmppc_h_pr" [arch/powerpc/kvm/kvm.ko] undefined!
> make[3]: *** [__modpost] Fehler 1
> make[2]: *** [modules] Fehler 2
> make[2]: *** Warte auf noch nicht beendete Prozesse...
>  WRAP    arch/powerpc/boot/zImage.miboot
> make[1]: *** [deb-pkg] Fehler 2
> make: *** [deb-pkg] Fehler 2

This is odd. kvmppc_h_pr shouldn't be accessed when not in book3s_64_pr mode:

#ifdef CONFIG_KVM_BOOK3S_64_PR
                        if (kvmppc_h_pr(vcpu, cmd) == EMULATE_DONE) {
                                r = RESUME_GUEST;
                                break;
                        }
#endif

Could you please send me your .config?


Alex

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ