Re: [PATCH 11/13] KVM: SVM: Drop redundant svm_sev_enabled() helper

2021-01-11 Thread Sean Christopherson
On Mon, Jan 11, 2021, Tom Lendacky wrote: > On 1/8/21 6:47 PM, Sean Christopherson wrote: > > Replace calls to svm_sev_enabled() with direct checks on sev_enabled, or > > in the case of svm_mem_enc_op, simply drop the call to svm_sev_enabled(). > > This effectively replaces checks against a valid

Re: [PATCH 11/13] KVM: SVM: Drop redundant svm_sev_enabled() helper

2021-01-11 Thread Tom Lendacky
On 1/8/21 6:47 PM, Sean Christopherson wrote: > Replace calls to svm_sev_enabled() with direct checks on sev_enabled, or > in the case of svm_mem_enc_op, simply drop the call to svm_sev_enabled(). > This effectively replaces checks against a valid max_sev_asid with checks > against sev_enabled.

[PATCH 11/13] KVM: SVM: Drop redundant svm_sev_enabled() helper

2021-01-08 Thread Sean Christopherson
Replace calls to svm_sev_enabled() with direct checks on sev_enabled, or in the case of svm_mem_enc_op, simply drop the call to svm_sev_enabled(). This effectively replaces checks against a valid max_sev_asid with checks against sev_enabled. sev_enabled is forced off by sev_hardware_setup() if