Re: [RFC PATCH 3/9] KVM: x86: Add a kvm-only leaf for BHI_CTRL

Ricardo Neri
2022-12-14T21:28:58Z

On Sun, Dec 11, 2022 at 12:00:40AM +0800, Zhang Chen wrote:
> KVM needs to check if guests can see BHI_CTRL. If a guest is using
> BHB-clearing sequence and cannot see BHI_CTRL and the host enumerates BHI,
> KVM is responsible for setting BHI_DIS_S for the guest.
>
> This allows VM migration from parts doesn't enumerate BHI to those
> that enumerate BHI.

Similar comment as in patch 2.