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]
Date:	Sun, 30 Jan 2011 14:21:11 -0800
From:	Kaushik Barde <kbarde@...wei.com>
To:	'Avi Kivity' <avi@...hat.com>,
	'Jeremy Fitzhardinge' <jeremy@...p.org>
Cc:	'Jan Beulich' <JBeulich@...ell.com>,
	'Xiaowei Yang' <xiaowei.yang@...wei.com>,
	'Nick Piggin' <npiggin@...nel.dk>,
	'Peter Zijlstra' <a.p.zijlstra@...llo.nl>,
	fanhenglong@...wei.com, 'Kenneth Lee' <liguozhu@...wei.com>,
	'linqaingmin' <linqiangmin@...wei.com>, wangzhenguo@...wei.com,
	'Wu Fengguang' <fengguang.wu@...el.com>,
	xen-devel@...ts.xensource.com, linux-kernel@...r.kernel.org,
	'Marcelo Tosatti' <mtosatti@...hat.com>
Subject: RE: One (possible) x86 get_user_pages bug

I agree i.e. deviation from underlying arch consideration is not a good
idea.

Also, agreed, hypervisor knows which page entries are ready for TLB flush
across vCPUs. 

But, using above knowledge, along with TLB flush based on IPI is a better
solution.  Its ability to synchronize it with pCPU based IPI and TLB flush
across vCPU. is key. 

IPIs themselves should be in few hundred uSecs in terms latency. Also, why
should pCPU be in sleep state for active vCPU scheduled page workload?

-Kaushik

-----Original Message-----
From: Avi Kivity [mailto:avi@...hat.com] 
Sent: Sunday, January 30, 2011 5:02 AM
To: Jeremy Fitzhardinge
Cc: Jan Beulich; Xiaowei Yang; Nick Piggin; Peter Zijlstra;
fanhenglong@...wei.com; Kaushik Barde; Kenneth Lee; linqaingmin;
wangzhenguo@...wei.com; Wu Fengguang; xen-devel@...ts.xensource.com;
linux-kernel@...r.kernel.org; Marcelo Tosatti
Subject: Re: One (possible) x86 get_user_pages bug

On 01/27/2011 08:27 PM, Jeremy Fitzhardinge wrote:
> And even just considering virtualization, having non-IPI-based tlb
> shootdown is a measurable performance win, since a hypervisor can
> optimise away a cross-VCPU shootdown if it knows no physical TLB
> contains the target VCPU's entries.  I can imagine the KVM folks could
> get some benefit from that as well.

It's nice to avoid the IPI (and waking up a cpu if it happens to be 
asleep) but I think the risk of deviating too much from the baremetal 
arch is too large, as demonstrated by this bug.

(well, async page faults is a counterexample, I wonder if/when it will 
bite us)

-- 
error compiling committee.c: too many arguments to function

--
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