From: Ian Jackson Subject: Re: [PATCH v2] tools: libxc: flush data cache after loading images into guest memory Date: Thu, 12 Dec 2013 19:43:48 +0000 Message-ID: <21162.4596.416567.333514@mariner.uk.xensource.com> References: <1386850863-16373-1-git-send-email-ian.campbell@citrix.com> <1386858199-18882-1-git-send-email-ian.campbell@citrix.com> <1386869495.20076.22.camel@kazak.uk.xensource.com> <21161.63445.82446.927215@mariner.uk.xensource.com> <1386876727.20787.53.camel@dagon.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1386876727.20787.53.camel@dagon.hellion.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Andre Przywara , stefano.stabellini@eu.citrix.com, julien.grall@linaro.org, tim@xen.org, xen-devel@lists.xen.org, Anup Patel , Pranavkumar Sawargaonkar List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH v2] tools: libxc: flush data cache after loading images into guest memory"): > These are all the ones I know of/could find in the domain building case, > which is the main time we access guest memory like this, and the one > which is problematic because the guest starts with its caches turned > off. This is where we have an actual problem in practice today. I'm reassured, thanks. > > That appears to just print a warning message to a file no-one will > > read. I think it should crash. > > Actually, for minios there is no PERROR defined at all so it won't > compile, I clearly forgot to build test stubdoms. Heh. > The rest of xc_minios.c just uses printf, so I will do the same. I find > it hard to believe that whoever is developing a minios based builder on > ARM or some new platform wouldn't be looking at the stubdom console. > Unless you feel strongly that I should stick an abort() in here (not > sure what minios will do with that...). Well, I would prefer an abort() in all of these cases. (Not just the minios one.) It seems to me that it's better for the code to crash than to carry on and do something which probably has undefined behaviour! Ian.