From: "Jan Beulich" Subject: Re: [PATCH] Don't track all memory when enabling log dirty to track vram Date: Tue, 20 May 2014 08:20:18 +0100 Message-ID: <537B1E520200007800013EB7@mail.emea.novell.com> References: <20140210080314.GA758@deinos.phlegethon.org> <20140211090202.GC92054@deinos.phlegethon.org> <20140211115553.GB97288@deinos.phlegethon.org> <52FA2C63020000780011B201@nat28.tlf.novell.com> <52FA480D.9040707@eu.citrix.com> <52FCE8BE.8050105@eu.citrix.com> <52FCF90F020000780011C29A@nat28.tlf.novell.com> <20140213162022.GE82703@deinos.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Yang Z Zhang Cc: George Dunlap , "andrew.cooper3@citrix.com" , Tim Deegan , "xen-devel@lists.xen.org" , "Keir Fraser(keir.xen@gmail.com)" , Jun Nakajima , Xiantao Zhang List-Id: xen-devel@lists.xenproject.org >>> On 20.05.14 at 05:13, wrote: > George Dunlap wrote on 2014-05-19: >> Avoiding these by "hoping" that the guest OS doesn't DMA into a video >> buffer isn't really robust enough. I think that was Tim and Jan's > > Video buffer is only one case. How we can prevent the DMA to other reserved > region? You continue to neglect the difference: Accessing VRAM this way is legitimate (and potentially useful). And - as just said in the other reply - ideally we'd also simply ignore accesses to reserved regions (and in fact we try to, by not immediately bringing down a guest device doing such). Jan