Skip to content
Commit 91b692a0 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: SEV: provide helpers to charge/uncharge misc_cg



Avoid code duplication across all callers of misc_cg_try_charge and
misc_cg_uncharge.  The resource type for KVM is always derived from
sev->es_active, and the quantity is always 1.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent f4d31653
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment