From mboxrd@z Thu Jan 1 00:00:00 1970 From: Parth Dixit Subject: Re: [PATCH v2 02/41] arm/acpi: Build pmstat for x86 only Date: Sun, 24 May 2015 11:40:47 +0530 Message-ID: References: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> <1431893048-5214-3-git-send-email-parth.dixit@linaro.org> <555CC06F020000780007C4DD@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3876116058653391637==" Return-path: In-Reply-To: <555CC06F020000780007C4DD@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: keir@xen.org, Ian Campbell , andrew.cooper3@citrix.com, tim@xen.org, xen-devel , Julien Grall , Stefano Stabellini , Christoffer Dall List-Id: xen-devel@lists.xenproject.org --===============3876116058653391637== Content-Type: multipart/alternative; boundary=001a11c12f002421ee0516cdc120 --001a11c12f002421ee0516cdc120 Content-Type: text/plain; charset=UTF-8 On 20 May 2015 at 20:42, Jan Beulich wrote: > >>> On 17.05.15 at 22:03, wrote: > > Pmstat is currently not supported for arm in xen. > > Configure and build pmstat for x86 architecture only. > > Same here as for patch 1. If the architecture can be expected to > eventually support a feature, I'd generally prefer the architecture > to get necessary stubs added over fiddling with common code. > > ok, will add stubs in next patchset. > > --- a/xen/common/sysctl.c > > +++ b/xen/common/sysctl.c > > @@ -170,6 +170,7 @@ long do_sysctl(XEN_GUEST_HANDLE_PARAM(xen_sysctl_t) > u_sysctl) > > op->u.availheap.avail_bytes <<= PAGE_SHIFT; > > break; > > > > +#ifdef CONFIG_X86 > > #ifdef HAS_ACPI > > case XEN_SYSCTL_get_pmstat: > > ret = do_get_pm_info(&op->u.get_pmstat); > > Please fold the two #if-s into one, or even replace the HAS_ACPI > one if this really needs to be done. > > Jan > > --001a11c12f002421ee0516cdc120 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On 20 May 2015 at 20:42, Jan Beulich <JBeulich@suse.com>= wrote:
>>> On = 17.05.15 at 22:03, <parth.dixi= t@linaro.org> wrote:
> Pmstat is currently not supported for arm in xen.
> Configure and build pmstat for x86 architecture only.

Same here as for patch 1. If the architecture can be expected to
eventually support a feature, I'd generally prefer the architecture
to get necessary stubs added over fiddling with common code.

ok, will add stubs in next pa= tchset.
> --- a/xen/common/sysctl.c
> +++ b/xen/common/sysctl.c
> @@ -170,6 +170,7 @@ long do_sysctl(XEN_GUEST_HANDLE_PARAM(xen_sysctl_t= ) u_sysctl)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 op->u.availheap.avail_bytes <&= lt;=3D PAGE_SHIFT;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 break;
>
> +#ifdef CONFIG_X86
>=C2=A0 #ifdef HAS_ACPI
>=C2=A0 =C2=A0 =C2=A0 case XEN_SYSCTL_get_pmstat:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ret =3D do_get_pm_info(&op->u= .get_pmstat);

Please fold the two #if-s into one, or even replace the HAS_ACPI
one if this really needs to be done.

Jan


--001a11c12f002421ee0516cdc120-- --===============3876116058653391637== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============3876116058653391637==--