Re: [PATCH 0/2] nVMX: Ensure host's PAT stays sane

From: Yan Zhao
Date: Tue Jun 11 2024 - 21:48:29 EST


On Tue, Jun 11, 2024 at 06:18:40PM -0700, Sean Christopherson wrote:
> On Wed, 05 Jun 2024 15:45:25 -0700, Sean Christopherson wrote:
> > Fix a bug(s) where test_load_host_pat clobbers PAT and causes all
> > subsequent tests to effectively run with all memory mapped as UC. Xiangfei
> > first noticed that this caused rdtsc_vmexit_diff_test to fail, but it can
> > also lead to timeouts if more tests are added, i.e. if more stuff runs after
> > test_load_host_pat.
> >
> > Sean Christopherson (2):
> > nVMX: Ensure host's PAT is loaded at the end of all VMX tests
> > nVMX: Verify KVM actually loads the value in HOST_PAT into the PAT MSR
> >
> > [...]
>
> Applied to kvm-x86 next, thanks!
>
> [1/2] nVMX: Ensure host's PAT is loaded at the end of all VMX tests
> https://github.com/kvm-x86/kvm-unit-tests/commit/8cbb8d3cbca9
This is also good, though I thought you would fix the theoretical one as
https://lore.kernel.org/all/ZmesywdpFG3qDIkZ@xxxxxxxxxx/ :)

> [2/2] nVMX: Verify KVM actually loads the value in HOST_PAT into the PAT MSR
> https://github.com/kvm-x86/kvm-unit-tests/commit/d31433807f2b
>
> --
> https://github.com/kvm-x86/kvm-unit-tests/tree/next