All of lore.kernel.org
 help / color / mirror / Atom feed
From: Razvan Cojocaru <rcojocaru@bitdefender.com>
To: Jan Beulich <JBeulich@suse.com>,
	Petre Pircalabu <ppircalabu@bitdefender.com>
Cc: tim@xen.org, sstabellini@kernel.org, wei.liu2@citrix.com,
	konrad.wilk@oracle.com, George.Dunlap@eu.citrix.com,
	andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com,
	xen-devel@lists.xen.org
Subject: Re: [PATCH v3] x86/altp2m: Added xc_altp2m_set_mem_access_multi()
Date: Mon, 9 Oct 2017 10:25:42 +0300	[thread overview]
Message-ID: <83fc4937-0015-0849-10d1-c635910f0185@bitdefender.com> (raw)
In-Reply-To: <59DB3FF60200007800183C01@prv-mh.provo.novell.com>

On 09.10.2017 10:23, Jan Beulich wrote:
>>>> On 06.10.17 at 18:07, <rcojocaru@bitdefender.com> wrote:
>> On 10/06/2017 06:34 PM, Jan Beulich wrote:
>>>>>> On 05.10.17 at 17:42, <ppircalabu@bitdefender.com> wrote:
>>>> @@ -4451,6 +4453,7 @@ static int do_altp2m_op(
>>>>       case HVMOP_altp2m_destroy_p2m:
>>>>       case HVMOP_altp2m_switch_p2m:
>>>>       case HVMOP_altp2m_set_mem_access:
>>>> +    case HVMOP_altp2m_set_mem_access_multi:
>>>
>>> Was it agreed that this, just like others (many wrongly, I think) is
>>> supposed to be invokable by the affected domain itself? Its non-
>>> altp2m counterpart is a DM_PRIV operation. If the one here is
>>> meant to be different, I think the commit message should say why.
>>
>> In the absence of an answer from the designers of altp2m, we've chosen
>> to remain consistent with HVMOP_altp2m_set_mem_access - since that is
>> allowed to be invoked by the domain itself, this operation is also
>> allowed to do that.
>>
>> Back in March, I've sent a DOMCTL version:
>>
>> https://patchwork.kernel.org/patch/9633615/
>>
>> and a HVMOP version (minus the compat part):
>>
>> https://patchwork.kernel.org/patch/9612799/
>>
>> It has been discussed, and an authoritative answer on the design of this
>> was sought out, but despite several kind reminders during this time, it
>> never came. At this point, the least modification to the initial design
>> appears to be to keep the new operation as a HVMOP. This is an important
>> optimization, and the waiting period for objections has surely been
>> reasonable.
> 
> Okay, this is (sort of) fine, but especially when there was no
> feedback the decision taken (and its reason) should be recorded
> in the commit message. As stated above as well as earlier, I
> strongly think that the altp2m permissions are too lax right now
> (and hence the patch here widens the problem, but I can agree
> that making it match set_mem_access is not unreasonable).

Of course. We'll update the commit message. Thanks for the review!


Razvan

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

  reply	other threads:[~2017-10-09  7:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-05 15:42 [PATCH v3] x86/altp2m: Added xc_altp2m_set_mem_access_multi() Petre Pircalabu
2017-10-06 15:34 ` Jan Beulich
2017-10-06 16:07   ` Razvan Cojocaru
2017-10-09  7:23     ` Jan Beulich
2017-10-09  7:25       ` Razvan Cojocaru [this message]
2017-10-09 10:10   ` Petre Ovidiu PIRCALABU
2017-10-09 10:36     ` Jan Beulich
2017-10-09 11:19       ` Petre Ovidiu PIRCALABU
2017-10-09 11:56         ` 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=83fc4937-0015-0849-10d1-c635910f0185@bitdefender.com \
    --to=rcojocaru@bitdefender.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=konrad.wilk@oracle.com \
    --cc=ppircalabu@bitdefender.com \
    --cc=sstabellini@kernel.org \
    --cc=tim@xen.org \
    --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.