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]
Date:	Tue, 14 Jun 2016 13:20:30 -0500
From:	Suravee Suthikulanit <suravee.suthikulpanit@....com>
To:	Paolo Bonzini <pbonzini@...hat.com>,
	<linux-kernel@...r.kernel.org>, <kvm@...r.kernel.org>
CC:	<rkrcmar@...hat.com>
Subject: Re: [PATCH] KVM: SVM: compile out AVIC if !CONFIG_X86_LOCAL_APIC

Hi Paolo,

On 6/14/2016 11:40 AM, Paolo Bonzini wrote:
> AVIC needs __default_cpu_present_to_apicid.  Stub out all functions
> that use it, and disable the module parameter, if Linux is
> compiled without local APIC support.

I think you are right that we should disable AVIC #ifndef 
CONFIG_X86_LOCAL_APIC. However, do you think we should just use 
default_cpu_present_to_apicid() instead of the 
__default_cpu_present_to_apicid()?  This way, we can avoid having #ifdef 
CONFIG_X86_LOCAL_APIC in multiple places.

As for disabling AVIC, I think we can also do:

     if (!IS_ENABLED(CONFIG_X86_LOCAL_APIC))
         avic = false;

What do you think?

Thanks,
Suravee

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ