[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 6/9] xen: move VCPUOP_register_vcpu_info to common code



On Tue, 16 Apr 2013, Julien Grall wrote:
> 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 <asm/p2m.h> on top of the file (common/domain.c)
> resolves the compilation error.

Thanks, I'll do that.

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.