Re: [PATCH 1/1] kvm: selftests: add cr4_cpuid_sync_test

2018-06-26 Thread Paolo Bonzini
On 26/06/2018 05:41, Wei Huang wrote: > KVM is supposed to update some guest VM's CPUID bits (e.g. OSXSAVE) when > CR4 is changed. A bug was found in KVM recently and it was fixed by > Commit c4d2188206ba ("KVM: x86: Update cpuid properly when CR4.OSXAVE or > CR4.PKE is changed"). This patch adds a

[PATCH 1/1] kvm: selftests: add cr4_cpuid_sync_test

2018-06-25 Thread Wei Huang
KVM is supposed to update some guest VM's CPUID bits (e.g. OSXSAVE) when CR4 is changed. A bug was found in KVM recently and it was fixed by Commit c4d2188206ba ("KVM: x86: Update cpuid properly when CR4.OSXAVE or CR4.PKE is changed"). This patch adds a test to verify the synchronization between gu