From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mario Smarduch Subject: Re: [PATCH 3/3] arm, arm64: KVM: handle potential incoherency of readonly memslots Date: Thu, 20 Nov 2014 11:15:54 -0800 Message-ID: <546E3DEA.5010205@samsung.com> References: <1416236333-9378-1-git-send-email-ard.biesheuvel@linaro.org> <1416236333-9378-3-git-send-email-ard.biesheuvel@linaro.org> <546A146E.1020804@redhat.com> <546A1905.6080607@redhat.com> <546D288F.1040107@samsung.com> <546DA19B.5050306@redhat.com> <546E3489.2050809@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Laszlo Ersek , kvm-devel , Ard Biesheuvel , Jon Masters , Paolo Bonzini , "kvmarm@lists.cs.columbia.edu" To: Peter Maydell Return-path: Received: from mailout3.w2.samsung.com ([211.189.100.13]:14914 "EHLO usmailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756899AbaKTTP5 (ORCPT ); Thu, 20 Nov 2014 14:15:57 -0500 Received: from uscpsbgex2.samsung.com (u123.gpu85.samsung.co.kr [203.254.195.123]) by usmailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NFC00588QUKD290@usmailout3.samsung.com> for kvm@vger.kernel.org; Thu, 20 Nov 2014 14:15:56 -0500 (EST) In-reply-to: Sender: kvm-owner@vger.kernel.org List-ID: On 11/20/2014 10:40 AM, Peter Maydell wrote: > On 20 November 2014 18:35, Mario Smarduch wrote: >> I think beyond consistency, there should be no double mappings with >> conflicting attributes at any time or CPU state is undefined. > > The situation is not so bleak as this. See section B2.9 "Mismatched > memory attributes" in the ARMv8 ARM ARM (DDI0487A.d), which lays > out in some detail what the results of mismatched attributes are > (generally, you lose ordering or coherency guarantees you might > have hoped to have). They're not pretty, but it's not as bad > as completely UNPREDICTABLE behaviour. > > thanks > -- PMM > Hi Peter, thanks for digging that up, quite a list to navigate but it does provide detailed guidance. - Mario