Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com>
struct p2m_domain *hostp2m = p2m_get_hostp2m(v->domain);
const struct paging_mode *hostmode = paging_get_hostmode(v);
- if ( is_hvm_domain(v->domain)
- && paging_mode_hap(v->domain)
- && nestedhvm_is_n2(v) )
+ if ( is_hvm_vcpu(v) && paging_mode_hap(v->domain) && nestedhvm_is_n2(v) )
{
unsigned long gfn;
struct p2m_domain *p2m;
if ( pg->shadow_flags &
((SHF_page_type_mask & ~SHF_L1_ANY) | SHF_out_of_sync)
|| sh_page_has_multiple_shadows(pg)
- || is_pv_domain(v->domain)
+ || is_pv_vcpu(v)
|| !v->domain->arch.paging.shadow.oos_active )
return 0;
void shadow_vcpu_init(struct vcpu *v)
{
- ASSERT(is_pv_domain(v->domain));
+ ASSERT(is_pv_vcpu(v));
v->arch.paging.mode = &sh_paging_none;
}