[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2/2] xen/mm: Introduce PGC_state_uninitialised
On 20.03.2020 14:33, Paul Durrant wrote: >> -----Original Message----- >> From: Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of David >> Woodhouse >> Sent: 19 March 2020 21:22 >> >> --- a/xen/arch/x86/mm.c >> +++ b/xen/arch/x86/mm.c >> @@ -491,7 +491,8 @@ void share_xen_page_with_guest(struct page_info *page, >> struct domain *d, >> >> page_set_owner(page, d); >> smp_wmb(); /* install valid domain ptr before updating refcnt. */ >> - ASSERT((page->count_info & ~PGC_xen_heap) == 0); >> + ASSERT((page->count_info & ~PGC_xen_heap) == PGC_state_inuse || >> + (page->count_info & ~PGC_xen_heap) == PGC_state_uninitialised); > > Could the page state perhaps be bumped to inuse in this case? It > seems odd to leave state uninitialized yet succeed in sharing with a guest. This would be quite nice indeed, if of course it doesn't cause new complications. 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 |