• Paolo Bonzini's avatar
    kvm: selftests: ensure vcpu file is released · 0a505fe6
    Paolo Bonzini authored
    The selftests were not munmap-ing the kvm_run area from the vcpu file descriptor.
    The result was that kvm_vcpu_release was not called and a reference was left in the
    parent "struct kvm".  Ultimately this was visible in the upcoming state save/restore
    test as an error when KVM attempted to create a duplicate debugfs entry.
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    0a505fe6
kvm_util.c 38.4 KB