[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <168667323139.1927661.906756138841169877.b4-ty@google.com>
Date: Tue, 13 Jun 2023 16:22:52 -0700
From: Sean Christopherson <seanjc@...gle.com>
To: Sean Christopherson <seanjc@...gle.com>,
Paolo Bonzini <pbonzini@...hat.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
Alexander Mikhalitsyn <alexander@...alicyn.com>
Subject: Re: [PATCH] KVM: SVM: WARN, but continue, if misc_cg_set_capacity() fails
On Tue, 06 Jun 2023 17:44:49 -0700, Sean Christopherson wrote:
> WARN and continue if misc_cg_set_capacity() fails, as the only scenario
> in which it can fail is if the specified resource is invalid, which should
> never happen when CONFIG_KVM_AMD_SEV=y. Deliberately not bailing "fixes"
> a theoretical bug where KVM would leak the ASID bitmaps on failure, which
> again can't happen.
>
> If the impossible should happen, the end result is effectively the same
> with respect to SEV and SEV-ES (they are unusable), while continuing on
> has the advantage of letting KVM load, i.e. userspace can still run
> non-SEV guests.
>
> [...]
Applied to kvm-x86 svm, thanks!
[1/1] KVM: SVM: WARN, but continue, if misc_cg_set_capacity() fails
https://github.com/kvm-x86/linux/commit/106ed2cad9f7
--
https://github.com/kvm-x86/linux/tree/next
https://github.com/kvm-x86/linux/tree/fixes
Powered by blists - more mailing lists