All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>, Kai Huang <kai.huang@linux.intel.com>
Cc: george.dunlap@eu.citrix.com, kevin.tian@intel.com,
	jun.nakajima@intel.com, xen-devel@lists.xen.org
Subject: Re: [PATCH] x86/ept: defer enabling of EPT A/D bit until PML get enabled.
Date: Fri, 16 Oct 2015 12:01:13 +0100	[thread overview]
Message-ID: <5620D8F9.8030209@citrix.com> (raw)
In-Reply-To: <5620DF0C02000078000ABC48@prv-mh.provo.novell.com>

On 16/10/15 10:27, Jan Beulich wrote:
>>>> On 16.10.15 at 11:17, <kai.huang@linux.intel.com> wrote:
>> On 10/16/2015 04:17 PM, Jan Beulich wrote:
>>>>>> On 16.10.15 at 04:21, <kai.huang@linux.intel.com> wrote:
>>>> +void vmx_domain_update_eptp(struct domain *d)
>>>> +{
>>>> +    struct p2m_domain *p2m = p2m_get_hostp2m(d);
>>>> +    struct vcpu *v;
>>>> +
>>>> +    ASSERT(atomic_read(&d->pause_count));
>>> This should imo check controller_pause_count.
>> This function is called between domain_pause and domain_unpause, and 
>> domain_pause increases d->pause_count, not d->controller_pause_count, so 
>> we should check d->pause_count, right?
> Ah, okay - I thought the pause was tool stack initiated.

ept_enable_pml() is the subject of p2m->enable_hardware_log_dirty(),
which happens during runtime with logdirty ops, etc.

~Andrew

      reply	other threads:[~2015-10-16 11:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-16  2:21 [PATCH] x86/ept: defer enabling of EPT A/D bit until PML get enabled Kai Huang
2015-10-16  8:17 ` Jan Beulich
2015-10-16  9:17   ` Kai Huang
2015-10-16  9:27     ` Jan Beulich
2015-10-16 11:01       ` Andrew Cooper [this message]

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=5620D8F9.8030209@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=jun.nakajima@intel.com \
    --cc=kai.huang@linux.intel.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.