From: Andrew Cooper Date: Tue, 30 Nov 2021 14:37:59 +0000 (+0000) Subject: x86/hvm: Simplify hvm_enable_msr_interception() X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~1154 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=32a971bfa6760d8fb260d9d721c5ecdd894deafd;p=xen.git x86/hvm: Simplify hvm_enable_msr_interception() The sole caller doesn't check the return value, and both vendors implement the hook. Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- diff --git a/xen/arch/x86/include/asm/hvm/hvm.h b/xen/arch/x86/include/asm/hvm/hvm.h index bd2cbb0e7b..2767427aa9 100644 --- a/xen/arch/x86/include/asm/hvm/hvm.h +++ b/xen/arch/x86/include/asm/hvm/hvm.h @@ -631,15 +631,9 @@ static inline enum hvm_intblk nhvm_interrupt_blocked(struct vcpu *v) return hvm_funcs.nhvm_intr_blocked(v); } -static inline bool_t hvm_enable_msr_interception(struct domain *d, uint32_t msr) +static inline void hvm_enable_msr_interception(struct domain *d, uint32_t msr) { - if ( hvm_funcs.enable_msr_interception ) - { - hvm_funcs.enable_msr_interception(d, msr); - return 1; - } - - return 0; + hvm_funcs.enable_msr_interception(d, msr); } static inline bool_t hvm_is_singlestep_supported(void)