commit | ca359066889f753ca6d54bb333b783e7a784c0d1 | [log] [tgz] |
---|---|---|
author | Wei Huang <wei@redhat.com> | Mon Jun 25 23:41:57 2018 -0400 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Mon Aug 06 17:31:59 2018 +0200 |
tree | f701a35b3bfed46ef5bd30c1a1dcb465d9e670d9 | |
parent | d2ce98ca0a192e1bcb89068adfe6cb736f5e351c [diff] |
kvm: selftests: add cr4_cpuid_sync_test 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 guest VM's CR4 and CPUID bits. Signed-off-by: Wei Huang <wei@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>