On 12/01/2011 03:15 PM, Avi Kivity wrote: > > > + > > + if (kvm->arch.gmap) > > + gmap_free(kvm->arch.gmap); > > + > > + kvm->arch.gmap = NULL; > > Locking? > > What happens if a vcpu is created afterwards? >
Having read the code, I think you can repurpose the argument of KVM_CREATE_VM to be a vm type; with 0 being a normal vm, and 1 being your new monster. The code already checks that the argument is zero, so we're safe there. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html