diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2021-11-12 12:02:24 +0300 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-11-12 12:37:51 +0300 |
| commit | 501cfe06790651af4470d8ca77f162515867cd4d (patch) | |
| tree | 5f9a4722d31b34358cc74e376d68f89a17c8cab3 /drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | |
| parent | 3e067fd8503d6205aa0c1c8f48f6b209c592d19c (diff) | |
| download | linux-501cfe06790651af4470d8ca77f162515867cd4d.tar.xz | |
KVM: SEV: unify cgroup cleanup code for svm_vm_migrate_from
Use the same cleanup code independent of whether the cgroup to be
uncharged and unref'd is the source or the destination cgroup. Use a
bool to track whether the destination cgroup has been charged, which also
fixes a bug in the error case: the destination cgroup must be uncharged
only if it does not match the source.
Fixes: b56639318bb2 ("KVM: SEV: Add support for SEV intra host migration")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c')
0 files changed, 0 insertions, 0 deletions
