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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOJsxLG7K=Xua+=EVCDmT1JJ1MAudHGEz123EHX2CsHmasBooQ@mail.gmail.com>
Date:	Fri, 31 Aug 2012 10:12:24 +0300
From:	Pekka Enberg <penberg@...nel.org>
To:	"Yan, Zheng" <zheng.z.yan@...el.com>
Cc:	a.p.zijlstra@...llo.nl, eranian@...gle.com, mingo@...e.hu,
	andi@...stfloor.org, avi@...hat.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] perf/x86: Disable uncore on virtualized CPU.

On Tue, Aug 21, 2012 at 12:08 PM, Yan, Zheng <zheng.z.yan@...el.com> wrote:
>> From: "Yan, Zheng" <zheng.z.yan@...el.com>
>>
>> Initializing uncore PMU on virtualized CPU may hang the kernel.
>> This is because kvm does not emulate the entire hardware. Thers
>> are lots of uncore related MSRs, making kvm enumerate them all
>> is a non-trival task. So just disable uncore on virtualized CPU.
>>
>> Signed-off-by: Yan, Zheng <zheng.z.yan@...el.com>
>> ---
>>  arch/x86/kernel/cpu/perf_event_intel_uncore.c | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c b/arch/x86/kernel/cpu/perf_event_intel_uncore.c
>> index 0a55710..2f005ba 100644
>> --- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c
>> +++ b/arch/x86/kernel/cpu/perf_event_intel_uncore.c
>> @@ -2898,6 +2898,9 @@ static int __init intel_uncore_init(void)
>>         if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL)
>>                 return -ENODEV;
>>
>> +       if (cpu_has_hypervisor)
>> +               return -ENODEV;
>> +
>>         ret = uncore_pci_init();
>>         if (ret)
>>                 goto fail;

On Tue, Aug 21, 2012 at 3:55 PM, Pekka Enberg <penberg@...nel.org> wrote:
> Tested-by: Pekka Enberg <penberg@...nel.org>

Ping? I have not seen a tip bot email for this. Is the patch queued?
--
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