svm_vm_migrate_from() uses sev_lock_vcpus_for_migration() to lock all
source and target vcpu->locks. Unfortunately there is an 8 subclass
limit, so a new subclass cannot be used for each vCPU. Instead maintain
ownership of the first vcpu's mutex.dep_map using a role specific
subclass: source vs target. Release the other vcpu's mutex.dep_maps.
Fixes:
|
||
|---|---|---|
| .. | ||
| avic.c | ||
| hyperv.h | ||
| nested.c | ||
| pmu.c | ||
| sev.c | ||
| svm_onhyperv.c | ||
| svm_onhyperv.h | ||
| svm_ops.h | ||
| svm.c | ||
| svm.h | ||
| vmenter.S | ||