From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 6/9] xen: move VCPUOP_register_vcpu_info to common code Date: Tue, 16 Apr 2013 13:51:20 +0100 Message-ID: <516D4948.5070409@citrix.com> References: <1364309252-26688-6-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1364309252-26688-6-git-send-email-stefano.stabellini@eu.citrix.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: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , "Tim (Xen.org)" , Ian Campbell List-Id: xen-devel@lists.xenproject.org On 03/26/2013 02:47 PM, Stefano Stabellini wrote: > +int map_vcpu_info(struct vcpu *v, unsigned long gfn, unsigned offset) > +{ > + struct domain *d = v->domain; > + void *mapping; > + vcpu_info_t *new_info; > + struct page_info *page; > + int i; > + > + if ( offset > (PAGE_SIZE - sizeof(vcpu_info_t)) ) > + return -EINVAL; > + > + if ( v->vcpu_info_mfn != INVALID_MFN ) > + return -EINVAL; > + > + /* Run this command on yourself or on other offline VCPUS. */ > + if ( (v != current) && !test_bit(_VPF_down, &v->pause_flags) ) > + return -EINVAL; > + > + page = get_page_from_gfn(d, gfn, NULL, P2M_ALLOC); This patch doesn't compile on x86. get_page_from_gfn is missing. Adding #include on top of the file (common/domain.c) resolves the compilation error. Julien