All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Pop <apop@bitdefender.com>
To: Tamas K Lengyel <tamas@tklengyel.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
	Razvan Cojocaru <rcojocaru@bitdefender.com>,
	Adrian Pop <apop@bitdefender.com>,
	George Dunlap <george.dunlap@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Vlad Ioan Topan <itopan@bitdefender.com>,
	Jan Beulich <jbeulich@suse.com>,
	Xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH v3 1/2] x86/mm: Change default value for suppress #VE in set_mem_access()
Date: Wed, 19 Jul 2017 14:47:06 +0300	[thread overview]
Message-ID: <20170719114706.GA16480@hel> (raw)
In-Reply-To: <CABfawhnZmKOPNKeyg2ibjKUMsGcOXb540twZ8voGz2_73NwAsg@mail.gmail.com>

Hello,

On Tue, Jul 18, 2017 at 11:26:45AM -0600, Tamas K Lengyel wrote:
> On Tue, Jul 18, 2017 at 9:25 AM, Adrian Pop <apop@bitdefender.com> wrote:
> > From: Vlad Ioan Topan <itopan@bitdefender.com>
> >
> > The default value for the "suppress #VE" bit set by set_mem_access()
> > currently depends on whether the call is made from the same domain (the
> > bit is set when called from another domain and cleared if called from
> > the same domain). This patch changes that behavior to inherit the old
> > suppress #VE bit value if it is already set and to set it to 1
> > otherwise, which is safer and more reliable.
> 
> With the way things are currently if the in-guest tool calls
> set_mem_access for an altp2m view, it implies it wants to receive #VE
> for it. Wouldn't this change in this patch effectively make it
> impossible for an in-guest tool to decide which pages it wants to
> receive #VE for? The new HVMOP you are introducing is only accessible
> from a privileged domain..

Yes, this change, along with the restrictions from the new HVMOP would
virtually prevent a guest from changing the suppress #VE bit for its
pages.  The current set_mem_access functionality, if I'm not mistaken,
is a bit odd since the guest can only clear the sve, but to set it,
another domain would have to call set_mem_access for it.

I think the issue would be whether to allow a domain to set/clear the
suppress #VE bit for its pages by calling the new HVMOP on itself.

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

  reply	other threads:[~2017-07-19 11:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-18 15:25 [PATCH v3 0/2] Add a hvmop for setting the #VE suppress bit Adrian Pop
2017-07-18 15:25 ` [PATCH v3 1/2] x86/mm: Change default value for suppress #VE in set_mem_access() Adrian Pop
2017-07-18 17:26   ` Tamas K Lengyel
2017-07-19 11:47     ` Adrian Pop [this message]
2017-07-19 18:24       ` Tamas K Lengyel
2017-07-20 16:43         ` George Dunlap
2017-07-20 16:46           ` Tamas K Lengyel
2017-07-20 16:57             ` George Dunlap
2017-07-20 17:03               ` Tamas K Lengyel
2017-07-20 17:36                 ` Tamas K Lengyel
2017-07-20 18:25             ` Razvan Cojocaru
2017-07-20 18:52               ` Tamas K Lengyel
2017-07-20 19:13                 ` Razvan Cojocaru
2017-07-18 15:25 ` [PATCH v3 2/2] x86/altp2m: Add a hvmop for setting the suppress #VE bit Adrian Pop
2017-07-18 17:19   ` Tamas K Lengyel
2017-07-19 11:47     ` Adrian Pop

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=20170719114706.GA16480@hel \
    --to=apop@bitdefender.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=itopan@bitdefender.com \
    --cc=jbeulich@suse.com \
    --cc=rcojocaru@bitdefender.com \
    --cc=tamas@tklengyel.com \
    --cc=wei.liu2@citrix.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 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.