xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>,
	Tamas Lengyel <tamas.lengyel@zentific.com>
Cc: kevin.tian@intel.com, Ian Campbell <ian.campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Jun Nakajima <jun.nakajima@intel.com>,
	eddie.dong@intel.com, Ian Jackson <ian.jackson@eu.citrix.com>,
	Aravind.Gopalakrishnan@amd.com, suravee.suthikulpanit@amd.com,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>
Subject: Re: [PATCH v3 1/2] x86/mem_event: Deliver gla fault EPT violation information
Date: Fri, 8 Aug 2014 10:02:17 +0100	[thread overview]
Message-ID: <53E49219.8070602@citrix.com> (raw)
In-Reply-To: <53E4ACFC020000780002A7BD@mail.emea.novell.com>

On 08/08/14 09:57, Jan Beulich wrote:
>>>> On 08.08.14 at 10:36, <tamas.lengyel@zentific.com> wrote:
>> I actually disagree here because there is still a slight difference between
>> the Intel and AMD implementation. In Intel's case gla_fault is only
>> available iff gla_valid is set. AMD doesn't have gla_valid. So in the
>> abstracted code, having gla_fault 0 could mean potentially different
>> things. That's certainly not good for abstraction. The AMD side could set
>> gla_valid = 1 if either if their two-bits that we will aggregate into
>> gla_fault is set, but without actually providing a gla.. and that could
>> lead to its own set of problems. So if we want to keep the bit aggregated
>> in gla_fault, we would need a bool_t gla_fault_valid.... which is just
>> going back to square one of having two bool_t fields as this patch does
>> already.
> Hmm, the question is of what use the fault kind is when you don't
> get passed the GLA. I.e. part of the problem may be a naming one:
> "gla_fault" clearly implies a connection to there being a GLA.
>
> Jan
>

I made the assumption that "gla_fault" was more "linear fault
information valid", and it does appear to be used that way in the
current code.  Renaming it might be hard, as it is now in the public
API, but a clarifying comment in public/mem_event.h might not go amiss.

~Andrew

  reply	other threads:[~2014-08-08  9:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-07 23:12 [PATCH v3 1/2] x86/mem_event: Deliver gla fault EPT violation information Tamas K Lengyel
2014-08-07 23:12 ` [PATCH v3 2/2] tools/xen-access: Print gla valid/fault information Tamas K Lengyel
2014-08-08  8:07   ` Andrew Cooper
2014-08-07 23:33 ` [PATCH v3 1/2] x86/mem_event: Deliver gla fault EPT violation information Tian, Kevin
2014-08-08  7:00 ` Jan Beulich
2014-08-08  8:04   ` Andrew Cooper
2014-08-08  8:36     ` Tamas Lengyel
2014-08-08  8:57       ` Jan Beulich
2014-08-08  9:02         ` Andrew Cooper [this message]
2014-08-08  9:17           ` Tamas Lengyel
2014-08-08  8:48   ` Tamas Lengyel
2014-08-08 10:28     ` Tamas Lengyel
2014-08-08 10:34       ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53E49219.8070602@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=Aravind.Gopalakrishnan@amd.com \
    --cc=JBeulich@suse.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=eddie.dong@intel.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jun.nakajima@intel.com \
    --cc=kevin.tian@intel.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=tamas.lengyel@zentific.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).