From: Andrew Cooper Date: Thu, 28 Feb 2019 12:49:13 +0000 (+0000) Subject: x86/altp2m: Fix build with !CONFIG_HVM X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~2535 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d0bd9d67b497fa49e9bb82fd8007cc1bb3b9d5ba;p=xen.git x86/altp2m: Fix build with !CONFIG_HVM c/s 0ec9b4ef3148 "x86/vmx: Fix security issue when a guest balloons out the #VE info page" introduced a caller of altp2m_vcpu_disable_ve() in a common path, but c/s e72ecc761541 "x86/altp2m: Rework #VE enable/disable paths" didn't have a suitable prototype in the !CONFIG_HVM case. Introduce one to fix the build. Spotted by Travis. Signed-off-by: Andrew Cooper Reviewed-by: Wei Liu Acked-by: Jan Beulich Release-acked-by: Juergen Gross --- diff --git a/xen/include/asm-x86/altp2m.h b/xen/include/asm-x86/altp2m.h index 8139bf832a..b206e95863 100644 --- a/xen/include/asm-x86/altp2m.h +++ b/xen/include/asm-x86/altp2m.h @@ -50,6 +50,7 @@ static inline bool altp2m_active(const struct domain *d) /* Only declaration is needed. DCE will optimise it out when linking. */ uint16_t altp2m_vcpu_idx(const struct vcpu *v); +void altp2m_vcpu_disable_ve(struct vcpu *v); #endif