diff options
author | 2021-11-11 10:02:26 -0500 | |
---|---|---|
committer | 2021-11-11 10:35:26 -0500 | |
commit | 91b692a03c9993ad2a9dea0534eaff169a98742c (patch) | |
tree | dc0bad22407dc0c34ed5f02911b1ca427a0affab /drivers/fpga/fpga-mgr.c | |
parent | KVM: generalize "bugged" VM to "dead" VM (diff) | |
download | linux-dev-91b692a03c9993ad2a9dea0534eaff169a98742c.tar.xz linux-dev-91b692a03c9993ad2a9dea0534eaff169a98742c.zip |
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: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions