Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment