KVM: X86: Processor States following Reset or INIT
authorWanpeng Li <wanpeng.li@hotmail.com>
Wed, 11 Oct 2017 12:10:19 +0000 (05:10 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Oct 2017 12:01:54 +0000 (14:01 +0200)
commita554d207dc46b205dcd707888ba31b13c7cfc009
treed3ca7a16f7e8e0e9e22567657580b832e90dadfa
parent44275932589a84a24849290b0d5c22157016a5e6
KVM: X86: Processor States following Reset or INIT

- XCR0 is reset to 1 by RESET but not INIT
- XSS is zeroed by both RESET and INIT
- BNDCFGU, BND0-BND3, BNDCFGS, BNDSTATUS are zeroed by both RESET and INIT

This patch does this according to SDM.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Jim Mattson <jmattson@google.com>
Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c