From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH 2/18 V2]: PVH xen: add XENMEM_add_to_physmap_range
Date: Tue, 19 Mar 2013 09:40:35 -0400 [thread overview]
Message-ID: <20130319134035.GF2706@phenom.dumpdata.com> (raw)
In-Reply-To: <5148327602000078000C6A00@nat28.tlf.novell.com>
On Tue, Mar 19, 2013 at 08:40:06AM +0000, Jan Beulich wrote:
> >>> On 18.03.13 at 21:15, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> > On Mon, Mar 18, 2013 at 11:38:35AM +0000, Jan Beulich wrote:
> >> >>> On 16.03.13 at 01:20, Mukesh Rathor <mukesh.rathor@oracle.com> wrote:
> >> > In this patch we add a new function xenmem_add_to_physmap_range(), and
> >> > change xenmem_add_to_physmap_once parameters so it can be called from
> >> > xenmem_add_to_physmap_range. There is no PVH specific change here.
> >> >
> >> > Changes in V2:
> >> > - Do not break parameter so xenmem_add_to_physmap_once() but pass in
> >> > struct xen_add_to_physmap.
> >> >
> >> > Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
> >> > ---
> >> > xen/arch/x86/mm.c | 82
> > +++++++++++++++++++++++++++++++++++++++++++++++++++--
> >> > 1 files changed, 79 insertions(+), 3 deletions(-)
> >>
> >> This continued to lack compat mode support (i.e. modification to
> >> xen/arch/x86/x86_64/compat/mm.c:compat_arch_memory_op()).
> >
> > Do we need it? Only 64-bit kernels can use PVH - and that was from the start
> > the idea.
>
> I wasn't really aware of that, but I certainly do mind implementing
> a hypercall usable by a PV or HVM guest only half way. Or did I
> overlook code refusing the particular sub-op for plain PV and plain
> HVM guests?
There were some patches in the series (I can't recall the names of them
thought) that had some of the PV hypercalls return -EINVAL (or -ENOSYS
as I suggested).
I think it might be better to introduce one patch that would neuter
the PV/HVM hypercalls that we don't want to support or can't yet
(for example b/c we haven't fixed the bugs).
Are you OK if those paths are done in the common code? Meaning say
for the PHYSDEV_op hypercalls some return -ENOSYS?
Or would doing it via the grand hypercall[0->X] table that was in
one of the patches and filtering the unsafe hypercalls? That seems
a much easier way and won't mess with the generic code paths?
>
> Jan
>
next prev parent reply other threads:[~2013-03-19 13:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-16 0:20 [PATCH 2/18 V2]: PVH xen: add XENMEM_add_to_physmap_range Mukesh Rathor
2013-03-18 11:38 ` Jan Beulich
2013-03-18 20:15 ` Konrad Rzeszutek Wilk
2013-03-19 8:40 ` Jan Beulich
2013-03-19 13:40 ` Konrad Rzeszutek Wilk [this message]
2013-03-19 14:06 ` Jan Beulich
2013-03-21 1:01 ` Mukesh Rathor
2013-03-21 18:39 ` Konrad Rzeszutek Wilk
2013-03-18 13:59 ` Konrad Rzeszutek Wilk
2013-03-18 14:28 ` Konrad Rzeszutek Wilk
2013-03-18 15:25 ` Jan Beulich
2013-03-18 16:38 ` Konrad Rzeszutek Wilk
2013-03-21 14:53 ` Tim Deegan
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=20130319134035.GF2706@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.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.