Tested-by: Xiangfei Ma <[email protected]> I have verified this method which can solve the issue.
-----Original Message----- From: Zhao, Yan Y <[email protected]> Sent: Friday, March 22, 2024 9:08 PM To: Sean Christopherson <[email protected]>; Ma, XiangfeiX <[email protected]>; Hao, Xudong <[email protected]> Cc: Paolo Bonzini <[email protected]>; Lai Jiangshan <[email protected]>; Paul E. McKenney <[email protected]>; Josh Triplett <[email protected]>; [email protected]; [email protected]; [email protected]; Tian, Kevin <[email protected]>; Yiwei Zhang <[email protected]> Subject: Re: [PATCH 0/5] KVM: VMX: Drop MTRR virtualization, honor guest PAT Xiangfei found out an failure in kvm unit test rdtsc_vmexit_diff_test with below error log: "FAIL: RDTSC to VM-exit delta too high in 100 of 100 iterations, last = 902 FAIL: Guest didn't run to completion." Fixed it by adding below lines in the unit test rdtsc_vmexit_diff_test before enter guest in my side. vmcs_write(HOST_PAT, 0x6); vmcs_clear_bits(EXI_CONTROLS, EXI_SAVE_PAT); vmcs_set_bits(EXI_CONTROLS, EXI_LOAD_PAT);
