KVM/x86: Move X86_CR4_OSXSAVE check into kvm_valid_sregs()
authorTianyu Lan <Tianyu.Lan@microsoft.com>
Mon, 23 Jul 2018 12:31:21 +0000 (12:31 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:59:19 +0000 (17:59 +0200)
commit74fec5b9dbaa5e6fe776f6c73e6c00fb23dca844
tree2b80ce2408e7910c32fd40cb5d156dc9be2ac413
parentee6268ba3a6861b2806e569bff7fe91fbdf846dd
KVM/x86: Move X86_CR4_OSXSAVE check into kvm_valid_sregs()

X86_CR4_OSXSAVE check belongs to sregs check and so move into
kvm_valid_sregs().

Signed-off-by: Lan Tianyu <Tianyu.Lan@microsoft.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c