On 8/4/2025 11:35 PM, Tianyu Lan wrote:
> From: Tianyu Lan <ti...@microsoft.com>
> 

...

> diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
> index 308c8f279df8..2ff433cb5cc2 100644
> --- a/drivers/hv/hv.c
> +++ b/drivers/hv/hv.c
> @@ -314,8 +314,11 @@ void hv_synic_enable_regs(unsigned int cpu)
>       shared_sint.vector = vmbus_interrupt;
>       shared_sint.masked = false;
>       shared_sint.auto_eoi = hv_recommend_using_aeoi();
> +

Nit: extra newline.

>       hv_set_msr(HV_MSR_SINT0 + VMBUS_MESSAGE_SINT, shared_sint.as_uint64);
>  
> +     hv_enable_coco_interrupt(cpu, vmbus_interrupt, true);
> +
>       /* Enable the global synic bit */
>       sctrl.as_uint64 = hv_get_msr(HV_MSR_SCONTROL);
>       sctrl.enable = 1;
> @@ -342,7 +345,6 @@ void hv_synic_disable_regs(unsigned int cpu)
>       union hv_synic_scontrol sctrl;
>  
>       shared_sint.as_uint64 = hv_get_msr(HV_MSR_SINT0 + VMBUS_MESSAGE_SINT);
> -

Nit: extra newline.


>       shared_sint.masked = 1;
>  
>       /* Need to correctly cleanup in the case of SMP!!! */
> @@ -350,6 +352,9 @@ void hv_synic_disable_regs(unsigned int cpu)
>       hv_set_msr(HV_MSR_SINT0 + VMBUS_MESSAGE_SINT, shared_sint.as_uint64);
>  
>       simp.as_uint64 = hv_get_msr(HV_MSR_SIMP);
> +
> +     hv_enable_coco_interrupt(cpu, vmbus_interrupt, false);
> +

Nit: Maybe this should be above "simp.as_uint64 = hv_get_msr(HV_MSR_SIMP)" ?

Reviewed-by: Neeraj Upadhyay <neeraj.upadh...@amd.com>


- Neeraj



Reply via email to