]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
x86/mem_access: put HVM only function under CONFIG_HVM
authorWei Liu <wei.liu2@citrix.com>
Fri, 17 Aug 2018 12:51:11 +0000 (13:51 +0100)
committerWei Liu <wei.liu2@citrix.com>
Sun, 26 Aug 2018 10:01:03 +0000 (11:01 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
xen/arch/x86/mm/mem_access.c

index 03a8641569590b20beefdb336576f1484eab64d9..84d260ebd8e19977fb4ebfc9bd823a73379fc764 100644 (file)
@@ -138,6 +138,7 @@ bool p2m_mem_access_emulate_check(struct vcpu *v,
     return violation;
 }
 
+#ifdef CONFIG_HVM
 bool p2m_mem_access_check(paddr_t gpa, unsigned long gla,
                           struct npfec npfec,
                           vm_event_request_t **req_ptr)
@@ -244,6 +245,7 @@ bool p2m_mem_access_check(paddr_t gpa, unsigned long gla,
     /* Return whether vCPU pause is required (aka. sync event) */
     return (p2ma != p2m_access_n2rwx);
 }
+#endif
 
 int p2m_set_altp2m_mem_access(struct domain *d, struct p2m_domain *hp2m,
                               struct p2m_domain *ap2m, p2m_access_t a,