[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC v1 28/74] x86: initialise shared_info page
>>> On 04.01.18 at 14:05, <wei.liu2@xxxxxxxxxx> wrote: > --- a/xen/arch/x86/guest/xen.c > +++ b/xen/arch/x86/guest/xen.c > @@ -72,6 +72,30 @@ void __init probe_hypervisor(void) > xen_guest = true; > } > > +static void map_shared_info(struct e820map *e820) > +{ > + paddr_t frame = 0xff000000; /* TODO: Hardcoded beside magic frames. */ What are the plans here? > + struct xen_add_to_physmap xatp = { > + .domid = DOMID_SELF, > + .idx = 0, > + .space = XENMAPSPACE_shared_info, > + .gpfn = frame >> PAGE_SHIFT, > + }; > + > + if ( !e820_add_range(e820, frame, frame + PAGE_SIZE, E820_RESERVED) ) > + panic("Failed to reserve shared_info range"); > + > + if ( xen_hypercall_memory_op(XENMEM_add_to_physmap, &xatp) ) > + panic("Failed to map shared_info page"); Also report the error code? Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |