[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3] xen: handle paged gfn in wrmsr_hypervisor_regs
On 03/05/2013 16:30, "Jan Beulich" <JBeulich@xxxxxxxx> wrote: >> if ( idx > 0 ) >> { >> gdprintk(XENLOG_WARNING, >> "Out of range index %u to MSR %08x\n", >> idx, 0x40000000); >> - return 0; >> + return -EINVAL; > > But I'd stay away from converting to actual errors both here ... > >> } >> >> - page = get_page_from_gfn(d, gmfn, NULL, P2M_ALLOC); >> + page = get_page_from_gfn(d, gmfn, &t, P2M_ALLOC); >> >> if ( !page || !get_page_type(page, PGT_writable_page) ) >> { >> if ( page ) >> put_page(page); >> + >> + if ( p2m_is_paging(t) ) >> + { >> + p2m_mem_paging_populate(d, gmfn); >> + return -EAGAIN; >> + } >> + >> gdprintk(XENLOG_WARNING, >> "Bad GMFN %lx (MFN %lx) to MSR %08x\n", >> - gmfn, page_to_mfn(page), base + idx); >> - return 0; >> + gmfn, page ? page_to_mfn(page) : -1UL, base); >> + return -EINVAL; > > ... and here. If at all these ought to go into a separate patch > (which we'd likely postpone until after 4.3). But they are errors? Could agree with postponing to post-4.3 though. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |