All of lore.kernel.org
 help / color / mirror / Atom feed
From: Razvan Cojocaru <rcojocaru@bitdefender.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Ravi Sahita <ravi.sahita@intel.com>,
	Tamas K Lengyel <tamas@tklengyel.com>,
	"wei.liu2@citrix.com" <wei.liu2@citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH V2] x86/altp2m: Added xc_altp2m_set_mem_access_multi()
Date: Mon, 13 Mar 2017 14:44:36 +0200	[thread overview]
Message-ID: <579ac046-a82c-64df-61e1-9a8d722efc36@bitdefender.com> (raw)
In-Reply-To: <58C6A1460200007800142811@prv-mh.provo.novell.com>

On 03/13/2017 02:40 PM, Jan Beulich wrote:
>>>> On 13.03.17 at 13:29, <rcojocaru@bitdefender.com> wrote:
>> On 03/13/2017 02:19 PM, Jan Beulich wrote:
>>> I think as long as there's no need for the guest to use an operation
>>> on itself, it should not be a hvmop. After all, if you make it a domctl
>>> now and later find a need for it to be called by the guest, we can
>>> always replace the domctl by a hvmop. If, however, you start out
>>> with a hvmop, we'll be bound to be supporting it virtually forever.
>>
>> Since we're on this point, IMHO the xc_altp2m_ prefixed versions of
>> set_mem_access() and set_mem_access_multi() shouldn't exist at all.
>> Plain xc_set_mem_access() and xc_set_mem_access_multi() (as DOMCTLs)
>> should be enough, as long as we also add the view_id as an
>> extra-parameter, where view ID 0 is (already) the default EPT view.
>>
>> As it stands now, xc_set_mem_access() can do less than
>> xc_altp2m_set_mem_access() in that its view ID is always 0, but more
>> than xc_altp2m_set_mem_access() in that it is able to set more than one
>> page with a single hypercall, while the underlying hypervisor code is
>> the same.
>>
>> Maybe I'm missing something design-wise (obviously if these really do
>> need to be HVMOPs a separate libxc function is required). Maybe the
>> altp2m maintainers have a different view of the matter.
> 
> "altp2m maintainers"? Maintainership is covered by the x86/mm/
> entry afaict, so perhaps you mean the original altp2m authors. In
> any event - you didn't Cc anyone of them.

I've used scripts/get_maintainer.pl on the patch, and CCd everyone in
the output. Consulting the original authors is a very good idea, I've
CCd Ravi Sahita here, perhaps he can help us out.


Thanks,
Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-03-13 12:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-09  9:38 [PATCH V2] x86/altp2m: Added xc_altp2m_set_mem_access_multi() Razvan Cojocaru
2017-03-09 16:56 ` Jan Beulich
2017-03-09 17:15   ` Razvan Cojocaru
2017-03-10  7:31     ` Jan Beulich
2017-03-10  8:04       ` Razvan Cojocaru
2017-03-09 17:29   ` Tamas K Lengyel
2017-03-10  7:34     ` Jan Beulich
2017-03-10 11:21       ` Andrew Cooper
2017-03-10 19:01         ` Tamas K Lengyel
2017-03-13 12:01           ` Razvan Cojocaru
2017-03-13 12:19             ` Jan Beulich
2017-03-13 12:29               ` Razvan Cojocaru
2017-03-13 12:40                 ` Jan Beulich
2017-03-13 12:44                   ` Razvan Cojocaru [this message]
2017-03-13 17:17                 ` Tamas K Lengyel
2017-03-15 13:12                   ` Razvan Cojocaru
2017-08-03  7:09   ` Razvan Cojocaru

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=579ac046-a82c-64df-61e1-9a8d722efc36@bitdefender.com \
    --to=rcojocaru@bitdefender.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=ravi.sahita@intel.com \
    --cc=tamas@tklengyel.com \
    --cc=wei.liu2@citrix.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.