From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoffer Dall Subject: Re: [ARM] Bash often segfaults in Dom0 with the latest Xen Date: Tue, 11 Jun 2013 07:25:51 -0700 Message-ID: References: <51AE6DFD.3060308@linaro.org> <51B70E96.1030306@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51B70E96.1030306@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Andre Przywara , Ian Campbell , Stefano Stabellini , xen-devel List-Id: xen-devel@lists.xenproject.org On 11 June 2013 04:48, Julien Grall wrote: > On 06/05/2013 02:38 AM, Christoffer Dall wrote: > >> - All other cache accesses should be coherent across cores and are >> physically indexed/physically tagged so I don't see how this could be >> your issue. > > > I was looking on KVM code and I noticed that it traps all data cache > instruction. Is there any reason to trap it? > > I wonder if it could be the issue on Xen because we don't trap cache > instruction and the manual is not clear on that. > We don't trap all cache maintenance instructions, only those that work by set/way, since if the vcpu gets migrated in the middle, it will potentially clean one pcpu partially and another pcpu partially. So we simply stop everything, clean everything, and carry on. Luckily, this is not very common with linux guests. This may be your issue if it really happens...