Re: [PATCH] kvm/i386: Set proper nested state format for SVM

2020-11-16 Thread Paolo Bonzini
On 16/11/20 19:25, Tom Lendacky wrote: On 11/16/20 12:09 PM, Paolo Bonzini wrote: On 16/11/20 18:02, Tom Lendacky wrote: From: Tom Lendacky Currently, the nested state format is hardcoded to VMX. This will result in kvm_put_nested_state() returning an error because the KVM SVM support checks f

Re: [PATCH] kvm/i386: Set proper nested state format for SVM

2020-11-16 Thread Tom Lendacky
On 11/16/20 12:09 PM, Paolo Bonzini wrote: > On 16/11/20 18:02, Tom Lendacky wrote: >> From: Tom Lendacky >> >> Currently, the nested state format is hardcoded to VMX. This will result >> in kvm_put_nested_state() returning an error because the KVM SVM support >> checks for the nested state to be K

Re: [PATCH] kvm/i386: Set proper nested state format for SVM

2020-11-16 Thread Paolo Bonzini
On 16/11/20 18:02, Tom Lendacky wrote: From: Tom Lendacky Currently, the nested state format is hardcoded to VMX. This will result in kvm_put_nested_state() returning an error because the KVM SVM support checks for the nested state to be KVM_STATE_NESTED_FORMAT_SVM. As a result, kvm_arch_put_reg

[PATCH] kvm/i386: Set proper nested state format for SVM

2020-11-16 Thread Tom Lendacky
From: Tom Lendacky Currently, the nested state format is hardcoded to VMX. This will result in kvm_put_nested_state() returning an error because the KVM SVM support checks for the nested state to be KVM_STATE_NESTED_FORMAT_SVM. As a result, kvm_arch_put_registers() errors out early. Update the s