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

From: Sean Christopherson
Date: Tue Jun 11 2024 - 21:50:43 EST


On Wed, Jun 12, 2024, Yan Zhao wrote:
> 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/ :)

Doh, I did squash that, I just forgot to update the "thanks" email with the
correct hashes.

[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/184ee0d5
[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/ee1d79c3