xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Tamas K Lengyel <tamas.lengyel@zentific.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Ian Campbell <ian.campbell@citrix.com>, Tim Deegan <tim@xen.org>,
	Julien Grall <julien.grall@linaro.org>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	Andres Lagar-Cavilla <andres@lagarcavilla.org>,
	Daniel De Graaf <dgdegra@tycho.nsa.gov>,
	Tamas K Lengyel <tklengyel@sec.in.tum.de>
Subject: Re: [PATCH v4 01/16] xen: Relocate mem_access and mem_event into common.
Date: Fri, 5 Sep 2014 12:52:56 +0200	[thread overview]
Message-ID: <CAErYnsiW8o0JFGw304_mZbcQ7n7SO0GQTyfreLQtQ_Du9z-pXQ@mail.gmail.com> (raw)
In-Reply-To: <5409B13B0200007800031649@mail.emea.novell.com>


[-- Attachment #1.1: Type: text/plain, Size: 2333 bytes --]

On Fri, Sep 5, 2014 at 12:48 PM, Jan Beulich <JBeulich@suse.com> wrote:

> >>> On 05.09.14 at 12:36, <tamas.lengyel@zentific.com> wrote:
> > On Fri, Sep 5, 2014 at 12:07 PM, Jan Beulich <JBeulich@suse.com> wrote:
> >
> >> >>> On 05.09.14 at 11:45, <tamas.lengyel@zentific.com> wrote:
> >> > On Fri, Sep 5, 2014 at 11:14 AM, Jan Beulich <JBeulich@suse.com>
> wrote:
> >> >
> >> >> >>> On 05.09.14 at 10:58, <tklengyel@sec.in.tum.de> wrote:
> >> >> > --- a/xen/arch/x86/x86_64/mm.c
> >> >> > +++ b/xen/arch/x86/x86_64/mm.c
> >> >> > @@ -35,9 +35,9 @@
> >> >> >  #include <asm/msr.h>
> >> >> >  #include <asm/setup.h>
> >> >> >  #include <asm/numa.h>
> >> >> > -#include <asm/mem_event.h>
> >> >> > +#include <xen/mem_event.h>
> >> >> >  #include <asm/mem_sharing.h>
> >> >> > -#include <asm/mem_access.h>
> >> >> > +#include <xen/mem_access.h>
> >> >> >  #include <public/memory.h>
> >> >>
> >> >> This is not the only place, but a specifically bad example: I'm
> pretty
> >> >> sure I asked you before to not make a mess by mixing asm/ and
> >> >> xen/ included - move the now xen/ ones to the other ones already
> >> >> coming from that directory. And do so consistently throughout the
> >> >> patch.
> >> >>
> >> >>
> >> > Sure. Is this a style-thing or does it have some other effect on the
> >> code?
> >>
> >> A style thing that is not supposed to have an effect (we should
> >> strive for headers to include their dependencies rather than relying
> >> on their users doing so up front).
> >>
> >> >> Looking at this again I wonder though
> >> >> whether we really need these - the use sites could easily check
> >> >> whether p2m_is_{paging,shared} is defined instead.
> >> >
> >> >  I would still need to wrap them in CONFIG_X86 blocks as
> common/memory.c
> >> > does, so ultimately I'm not sure there is much difference.
> >>
> >> I don't understand why - ARM doesn't define p2m_is_paging()
> >> or p2m_is_shared().
> >
> > Hm, I guess I could do that, just define them to return 0 and hope the
> > compiler just drops the always-dead if blocks.
>
> No, that's not what I was asking you to do, as that may require you
> to defined further stubs used inside the conditionals. Instead I asked
> that you replace "#ifdef CONFIG_..." with "#ifdef p2m_is_...".
>
> Jan
>
>
Oh, OK. Isn't that a bit hack-ish looking though?

Tamas

[-- Attachment #1.2: Type: text/html, Size: 3777 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

  reply	other threads:[~2014-09-05 10:52 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-05  8:58 [PATCH v4 00/16] Mem_event and mem_access for ARM Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 01/16] xen: Relocate mem_access and mem_event into common Tamas K Lengyel
2014-09-05  9:14   ` Jan Beulich
2014-09-05  9:45     ` Tamas K Lengyel
2014-09-05 10:07       ` Jan Beulich
2014-09-05 10:36         ` Tamas K Lengyel
2014-09-05 10:48           ` Jan Beulich
2014-09-05 10:52             ` Tamas K Lengyel [this message]
2014-09-05 11:26               ` Jan Beulich
2014-09-05 11:30                 ` Tamas K Lengyel
2014-09-05 11:46                   ` Jan Beulich
2014-09-05  8:58 ` [PATCH v4 02/16] xen: Relocate p2m_mem_access_resume to mem_access common Tamas K Lengyel
2014-09-05  9:16   ` Jan Beulich
2014-09-05  9:25     ` Tamas K Lengyel
2014-09-05  9:43       ` Jan Beulich
2014-09-05  9:48         ` Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 03/16] xen: Relocate struct npfec definition into common Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 04/16] xen: Relocate mem_event_op domctl and access_op memop " Tamas K Lengyel
2014-09-05  9:23   ` Jan Beulich
2014-09-05  9:29     ` Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 05/16] xen/mem_event: Clean out superfluous white-spaces Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 06/16] xen/mem_event: Relax error condition on debug builds Tamas K Lengyel
2014-09-05  9:25   ` Jan Beulich
2014-09-05  9:26     ` Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 07/16] xen/mem_event: Abstract architecture specific sanity checks Tamas K Lengyel
2014-09-05  9:28   ` Jan Beulich
2014-09-05  9:35     ` Tamas K Lengyel
2014-09-05  9:44       ` Jan Beulich
2014-09-05  9:47         ` Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 08/16] xen/mem_access: Abstract architecture specific sanity check Tamas K Lengyel
2014-09-05  9:29   ` Jan Beulich
2014-09-05  9:51     ` Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 09/16] xen/arm: p2m type definitions and changes Tamas K Lengyel
2014-09-09  0:06   ` Julien Grall
2014-09-05  8:58 ` [PATCH v4 10/16] xen/arm: Add set access required domctl Tamas K Lengyel
2014-09-09  0:07   ` Julien Grall
2014-09-12 15:54     ` Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 11/16] xen/arm: Data abort exception (R/W) mem_events Tamas K Lengyel
2014-09-09  0:25   ` Julien Grall
2014-09-05  8:58 ` [PATCH v4 12/16] xen/arm: Instruction prefetch abort (X) mem_event handling Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 13/16] xen/arm: Shatter large pages when using mem_acces Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 14/16] xen/arm: Enable the compilation of mem_access and mem_event on ARM Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 15/16] tools/libxc: Allocate magic page for mem access " Tamas K Lengyel
2014-09-05  8:58 ` [PATCH v4 16/16] tools/tests: Enable xen-access " Tamas K Lengyel
2014-09-09  0:29   ` Julien Grall

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=CAErYnsiW8o0JFGw304_mZbcQ7n7SO0GQTyfreLQtQ_Du9z-pXQ@mail.gmail.com \
    --to=tamas.lengyel@zentific.com \
    --cc=JBeulich@suse.com \
    --cc=andres@lagarcavilla.org \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=julien.grall@linaro.org \
    --cc=stefano.stabellini@citrix.com \
    --cc=tim@xen.org \
    --cc=tklengyel@sec.in.tum.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).