From: Mukesh Rathor Subject: Re: [PATCH 09/17] [V3]PVH xen: create PVH vmcs, and initialization Date: Fri, 19 Apr 2013 18:29:33 -0700 Message-ID: <20130419182933.58122dec@mantra.us.oracle.com> References: <1365814977-736-1-git-send-email-mukesh.rathor@oracle.com> <1365814977-736-10-git-send-email-mukesh.rathor@oracle.com> <516C3D4502000078000CD516@nat28.tlf.novell.com> <20130415180853.5409dcdf@mantra.us.oracle.com> <516D122702000078000CD740@nat28.tlf.novell.com> <20130416165014.GB13390@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130416165014.GB13390@ocelot.phlegethon.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tim Deegan Cc: Jan Beulich , xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, 16 Apr 2013 17:50:14 +0100 Tim Deegan wrote: > At 07:56 +0100 on 16 Apr (1366098967), Jan Beulich wrote: > > >>> On 16.04.13 at 03:08, Mukesh Rathor > > >>> wrote: > > > On Mon, 15 Apr 2013 16:47:49 +0100 "Jan Beulich" > > > wrote: > > >> > @@ -4514,6 +4591,8 @@ static int hvm_memory_event_traps(long p, > > >> > uint32_t reason, > > >> > void hvm_memory_event_cr0(unsigned long value, unsigned long > > >> > old) { > > >> > + if ( is_pvh_vcpu(current) ) > > >> > + return; > > >> > > >> This is temporary only, isn't it? If so, it should be clearly > > >> marked as such. > > > > > > I am not sure what these event calls are about, I guessed it was > > > for some external debugger? > > > > No, these are for paging and/or page sharing afaik. > > They're a separate thing from those, but along those lines. They're > used for monitoring guest behaviour in an external tool (say, a virus > scanner). > > > And this is > > functionality you definitely want for PVH guests (since it's only > > the PV MMU interface that prevents PV guests from having this > > enabled without a _lot_ of work). > > Yes, if at all possible they should Just Work. And if not, the > control hypercalls that turn them on must have appropriate gates to > stop them being enabled on PV guests. Yup, looks like do_hvm_op enables them, and the check won't allow them enabled for PVH guests. We can add them later. thanks, Mukesh