diff --git a/xen/arch/x86/mm/p2m-ept.c b/xen/arch/x86/mm/p2m-ept.c index 2b2bf31aada7..bb562607f7e7 100644 --- a/xen/arch/x86/mm/p2m-ept.c +++ b/xen/arch/x86/mm/p2m-ept.c @@ -702,16 +702,6 @@ ept_set_entry(struct p2m_domain *p2m, gfn_t gfn_, mfn_t mfn, ASSERT(ept); - if ( !sve ) - { - if ( !cpu_has_vmx_virt_exceptions ) - return -EOPNOTSUPP; - - /* #VE should be enabled for this vcpu. */ - if ( gfn_eq(vcpu_altp2m(current).veinfo_gfn, INVALID_GFN) ) - return -ENXIO; - } - /* * the caller must make sure: * 1. passing valid gfn and mfn at order boundary.