From: "Jan Beulich" Subject: Re: Blocking CR and MSR writes via mem_access? Date: Tue, 07 Oct 2014 13:40:01 +0100 Message-ID: <5433FB41020000780003CDBA@mail.emea.novell.com> References: <542D2DA7.1060903@bitdefender.com> <542E98A1.5070706@citrix.com> <5432A674.7000205@bitdefender.com> <5433BEB3.2070300@bitdefender.com> <5433C4E7.5040102@bitdefender.com> 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: Razvan Cojocaru , Tamas K Lengyel Cc: Andrew Cooper , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 07.10.14 at 14:30, wrote: > IMHO that entire struct is in dire need of a cleanup. It is really hacky to > have fields like gla and gfn transfer values that mean different things > under different event type that don't have anything to do with gla/gfn. > It's sort of just a legacy struct from the time when we only had EPT events > and everything else just got hacked on top. I would be in favor of having > the struct as a union of substructs that nicely define all the values that > are transferred in the given context, with meaningful struct member names. And the whole thing isn't just "mem-event" anymore either ... Jan