From: Ian Campbell <Ian.Campbell@eu.citrix.com>
To: Jan Beulich <JBeulich@novell.com>
Cc: Keir Fraser <keir.xen@gmail.com>,
"olaf@aepfle.de" <olaf@aepfle.de>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"keir@xen.org" <keir@xen.org>
Subject: Re: [Xen-devel] [PATCH] xen: update machine_to_phys_order on resume
Date: Mon, 18 Jul 2011 10:05:18 +0100 [thread overview]
Message-ID: <1310979918.20648.31.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <4E240F3D020000780004DD70@nat28.tlf.novell.com>
On Mon, 2011-07-18 at 09:47 +0100, Jan Beulich wrote:
> > @@ -960,6 +962,54 @@
> > }
> > break;
> >
> > + case XEN_DOMCTL_setfeatures:
> > + {
> > + struct domain *d;
> > + ret = -ESRCH;
> > + if ( (d = rcu_lock_domain_by_id(op->domain)) != NULL )
> > + {
> > + printk("dom%d set features[%d] = %#x\n", d->domain_id, op->u.setfeatures.submap_idx, op->u.setfeatures.submap);
> > +
> > + switch (op->u.setfeatures.submap_idx) {
> > + case 0:
> > + if ( !paging_mode_translate(d) )
>
> ... this condition looks inverted to me.
Quite possibly. I only ever actually tested this with a dodgy PV in HVM
container implementation.
> > + {
> > + op->u.setfeatures.submap &= ~(1U<<XENFEAT_writable_page_tables);
> > + op->u.setfeatures.submap &= ~(1U<<XENFEAT_auto_translated_physmap);
> > + }
> > + if ( !is_pvhvm_domain(d) )
> > + {
> > + op->u.setfeatures.submap &= ~(1U<<XENFEAT_supervisor_mode_kernel);
> > + }
> > +
> > + op->u.setfeatures.submap &= ~(1U<<XENFEAT_writable_descriptor_tables);
>
> Why do you turn this off unconditionally?
Unless you build the hypervisor with supervisor_mode_kernel=1 (i.e.
never) then it does not support XENFEAT_writable_descriptor_tables. In
fact XENFEAT_supervisor_mode_kernel should also be unconditionally
cleared (the check is a remnant of the PV in HVM container stuff).
Note that XENFEAT_writable_descriptor_tables means that the guest kernel
should not make pagetable pages RO at all, which is different from the
hypervisor's support for writing to RO pagetables (i.e. emulating
pagetable updates).
>
> > +
> > + /* XXX other features */
>
> That's perhaps also the place holder where the passed in information
> would actually get stored?
Yep ;-)
Ian.
next prev parent reply other threads:[~2011-07-18 9:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4E20873F020000780007307B@nat28.tlf.novell.com>
2011-07-15 18:23 ` Keir Fraser
2011-07-18 7:05 ` Jan Beulich
2011-07-18 7:27 ` Keir Fraser
2011-07-18 8:31 ` Ian Campbell
2011-07-18 8:47 ` Jan Beulich
2011-07-18 9:05 ` Ian Campbell [this message]
2011-07-18 9:50 ` Jan Beulich
[not found] <4E1DB9C70200007800072DCC@nat28.tlf.novell.com>
2011-07-14 10:26 ` Olaf Hering
2011-07-15 8:32 ` Jan Beulich
[not found] <20110701104148.GA32729@aepfle.de>
[not found] ` <20110712164342.GA12867@aepfle.de>
2011-07-12 18:11 ` Konrad Rzeszutek Wilk
2011-07-13 9:12 ` Ian Campbell
2011-07-13 13:20 ` Konrad Rzeszutek Wilk
2011-07-15 8:56 ` Jan Beulich
2011-07-15 16:05 ` 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=1310979918.20648.31.camel@zakaz.uk.xensource.com \
--to=ian.campbell@eu.citrix.com \
--cc=JBeulich@novell.com \
--cc=keir.xen@gmail.com \
--cc=keir@xen.org \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=olaf@aepfle.de \
--cc=xen-devel@lists.xensource.com \
/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
all inboxes | Powered by JetHome®