Re: [Xen-devel] [PATCH 2/2] x86: fix domain cleanup

2016-04-29 Thread Andrew Cooper
On 29/04/16 15:49, Jan Beulich wrote: > Free d->arch.cpuids on both the creation error path and during > destruction. > > Don't bypass iommu_domain_destroy(). > > Move psr_domain_init() up so that hvm_domain_initialise() again is the > last thing which can fail, and hence doesn't require undoing la

[Xen-devel] [PATCH 2/2] x86: fix domain cleanup

2016-04-29 Thread Jan Beulich
Free d->arch.cpuids on both the creation error path and during destruction. Don't bypass iommu_domain_destroy(). Move psr_domain_init() up so that hvm_domain_initialise() again is the last thing which can fail, and hence doesn't require undoing later on. Move psr_domain_free() up on the creation