From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [RFC v3 1/6] xen/arm: Add basic save/restore support for ARM Date: Fri, 09 May 2014 09:56:23 +0100 Message-ID: <536C9837.60000@linaro.org> References: <1399583908-21755-1-git-send-email-w1.huang@samsung.com> <1399583908-21755-2-git-send-email-w1.huang@samsung.com> <536C010A.8010509@citrix.com> <536C0329.50901@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <536C0329.50901@samsung.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: Wei Huang , Andrew Cooper , xen-devel@lists.xen.org Cc: keir@xen.org, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, tim@xen.org, ian.jackson@eu.citrix.com, jaeyong.yoo@samsung.com, jbeulich@suse.com, yjhyun.yoo@samsung.com List-Id: xen-devel@lists.xenproject.org Hi Andrew and Wei, On 08/05/14 23:20, Wei Huang wrote: > On 05/08/2014 05:11 PM, Andrew Cooper wrote: >> On 08/05/2014 22:18, Wei Huang wrote: >> >> >>> diff --git a/xen/include/asm-arm/hvm/support.h >>> b/xen/include/asm-arm/hvm/support.h >>> new file mode 100644 >>> index 0000000..fa5fe75 >>> --- /dev/null >>> +++ b/xen/include/asm-arm/hvm/support.h >>> @@ -0,0 +1,29 @@ >>> +/* >>> + * HVM support routines >>> + * >>> + * Copyright (c) 2014, Samsung Electronics. >>> + * >>> + * This program is free software; you can redistribute it and/or >>> modify it >>> + * under the terms and conditions of the GNU General Public License, >>> + * version 2, as published by the Free Software Foundation. >>> + * >>> + * This program is distributed in the hope it will be useful, but >>> WITHOUT >>> + * ANY WARRANTY; without even the implied warranty of >>> MERCHANTABILITY or >>> + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public >>> License for >>> + * more details. >>> + * >>> + * You should have received a copy of the GNU General Public License >>> along with >>> + * this program; if not, write to the Free Software Foundation, >>> Inc., 59 Temple >>> + * Place - Suite 330, Boston, MA 02111-1307 USA. >>> + */ >>> + >>> +#ifndef __ASM_ARM_HVM_SUPPORT_H__ >>> +#define __ASM_ARM_HVM_SUPPORT_H__ >>> + >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> + >>> +#endif /* __ASM_ARM_HVM_SUPPORT_H__ */ >> >> This header file isn't touched by any subsequent patches, and just >> having it as a list of includes is overkill. Can it be dropped? 5 >> extra includes in a few .c files is hardly breaking the bank. > Last time I tried it quickly, the compilation broke. Will try again. This header is used in common code (xen/common/hvm/save.c). It might be better on have a dummy header. Some of the includes you've added shouldn't not be used by ARM (i.e public/hvm/ioreq.h). Regards, -- Julien Grall