On Thu, Sep 26, 2019 at 10:46:26AM +0100, hongyax@amazon.com wrote: > From: Hongyan Xia <hongyax@amazon.com> > > Signed-off-by: Hongyan Xia <hongyax@amazon.com> AIUI there is where we want to end up. I do wonder if this is the correct place for this patch though. The bottom line is we need to make sure the HVM path works before we can allow HVM to use it. I don't have an answer yet. I will have to look at later patches. Wei.
diff --git a/xen/arch/x86/domain_page.c b/xen/arch/x86/domain_page.c index 348ea9ebf3..4a3995ccef 100644 --- a/xen/arch/x86/domain_page.c +++ b/xen/arch/x86/domain_page.c @@ -84,7 +84,7 @@ void *map_domain_page(mfn_t mfn) #endif v = mapcache_current_vcpu(); - if ( !v || !is_pv_vcpu(v) ) + if ( !v ) { void *ret; pmap_lock(); @@ -208,7 +208,7 @@ void unmap_domain_page(const void *ptr) ASSERT(va >= MAPCACHE_VIRT_START && va < MAPCACHE_VIRT_END); v = mapcache_current_vcpu(); - ASSERT(v && is_pv_vcpu(v)); + ASSERT(v); dcache = &v->domain->arch.mapcache; ASSERT(dcache->inuse);