Re: [PATCH v3] hyperv: root partition faults writing to VP ASSIST MSR PAGE

From: Wei Liu
Date: Tue Jul 27 2021 - 13:51:38 EST


On Tue, Jul 27, 2021 at 04:10:44PM +0530, Praveen Kumar wrote:
[...]
>
> @@ -170,9 +185,21 @@ static int hv_cpu_die(unsigned int cpu)
>
> hv_common_cpu_die(cpu);
>
> - if (hv_vp_assist_page && hv_vp_assist_page[cpu])
> + if (hv_vp_assist_page && hv_vp_assist_page[cpu]) {
> wrmsrl(HV_X64_MSR_VP_ASSIST_PAGE, 0);
>

The content of the MSR should be preserved; otherwise you hit the same
fault for root kernel.

Wei.