From: "Jan Beulich" Subject: Re: [PATCH] hvm/hpet: Alter hpet_init() to take a domain rather than vcpu Date: Fri, 25 Jul 2014 16:19:13 +0100 Message-ID: <53D291910200007800026181@mail.emea.novell.com> References: <1406294353-3692-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1406294353-3692-1-git-send-email-andrew.cooper3@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 25.07.14 at 15:19, wrote: > There is nothing vcpu-specific about hpet_init(); all it does is follow the > vcpu's domain pointer to get at the domain vhpet state. > > Signed-off-by: Andrew Cooper > CC: Jan Beulich > > --- > > Despite the comment in scope in hvm_vcpu_initialise(), the call can't > currently be moved to hvm_domain_initialise() as the extra hpet_deinit() (in > an error path) needs an allocated vcpu which wouldn't be present at that > point. I need more tuits to disentangle that mess. And indeed I was about to ask that very question. Thanks for the patch in any case! Jan