On Thu, Jan 15, 2026 at 4:29 AM Penny Zheng <[email protected]> wrote:

> Feature monitor_op is based on vm event subsystem, so monitor.o shall be
> wrapped under CONFIG_VM_EVENT.
> The following functions are only invoked by monitor-op, so they all shall
> be
> wrapped with CONFIG_VM_EVENT (otherwise they will become unreachable and
> violate Misra rule 2.1 when VM_EVENT=n):
> - hvm_enable_msr_interception
>   - hvm_function_table.enable_msr_interception
> - hvm_has_set_descriptor_access_existing
>   - hvm_function_table.set_descriptor_access_existi
> - arch_monitor_get_capabilities
> Function monitored_msr() still needs a stub to pass compilation when
> VM_EVENT=n.
>
> Signed-off-by: Penny Zheng <[email protected]>
> Acked-by: Jan Beulich <[email protected]>
> Reviewed-by: Jason Andryuk <[email protected]>


Acked-by: Tamas K Lengyel <[email protected]>

Reply via email to