x86: hap_enabled() is HVM-only
authorJan Beulich <jbeulich@suse.com>
Fri, 28 Sep 2018 15:13:38 +0000 (17:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 28 Sep 2018 15:13:38 +0000 (17:13 +0200)
commit82f7659c9bd72e80c4734113f30907198326e39c
treeac2dd16df823c8dcdc0a4a6b82a11f6f728cf394
parent2fb57e4beefeda923446b73f88b392e59b07d847
x86: hap_enabled() is HVM-only

There at least two cases where the field so far got accessed for PV
guests as well: One is in iommu_construct(), via iommu_use_hap_pt(),
and the other is
arch_domain_create()
-> paging_domain_init()
   -> p2m_init()
      -> p2m_init_hostp2m()
         -> p2m_init_one()
            -> p2m_initialise()
It just so happens that the field currently lives in struct hvm_domain
at an offset larger than sizeof(struct pv_domain).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/asm-x86/hvm/domain.h