From: "Jan Beulich" Subject: Re: [PATCH RFC V7 4/5] xen, libxc: Request page fault injection via libxc Date: Wed, 27 Aug 2014 07:58:42 +0100 Message-ID: <53FD9DC2020000780002DF0B@mail.emea.novell.com> References: <1407943689-9249-1-git-send-email-rcojocaru@bitdefender.com> <1407943689-9249-4-git-send-email-rcojocaru@bitdefender.com> <53FCB226020000780002DA7B@mail.emea.novell.com> <53FC98AD.6010104@bitdefender.com> <53FCB954020000780002DB08@mail.emea.novell.com> <53FCA00C.3070404@bitdefender.com> <53FCC88D020000780002DC05@mail.emea.novell.com> <53FCBCEE.5090700@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 , Kevin Tian , Tim Deegan Cc: "ian.campbell@citrix.com" , "stefano.stabellini@eu.citrix.com" , "andrew.cooper3@citrix.com" , Eddie Dong , "xen-devel@lists.xen.org" , Jun Nakajima , "ian.jackson@eu.citrix.com" List-Id: xen-devel@lists.xenproject.org >>> On 27.08.14 at 02:54, wrote: > From code seems this info is a condition for PF injection, instead of > recording VCPU faulting information. So it looks OK to be a per-domain > structure, but the structure name 'fault_info' is too generic... Not really, because it also makes assumptions about the guest OS. Which I'd consider okay for a particular end product like the one BitDefender is creating, but not for an interface. In particular here the assumption is that you can inject a fault on an arbitrary vCPU to achieve a certain goal, which certainly isn't valid without knowing how the OS works. But yes, with the naming changed to reflect the special purpose, this might become less of an issue. Pretending (or making appear) something to be general purpose when it isn't, however, would only be setting us up for future problems. An alternative might be to design the external interface in a way being vCPU-centric, with a way to specify a "wildcard" to serve the particular purpose here. Jan