From: Qing He Subject: Re: xenstore pci global parameters Date: Fri, 4 Dec 2009 17:33:14 +0800 Message-ID: <20091204093314.GB20810@ub-qhe2> References: <20091202081028.GA15730@ub-qhe2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Wed, 2009-12-02 at 19:30 +0800, Stefano Stabellini wrote: > If I am not mistaken xend keeps an internal record of those flags so it > could use that info to set per device default flags: > > xenstore-write opts-$DEVNUM msitranslate=$MSITRANS,power_mgmt=$POWERMGM That looks good, just one question, if pci devclass is not created, can these global parameters be persistent across save/restore and live migration? > The problem was introduced by 19679, "xend: hot-plug PCI devices at > boot-time": > > - xend is creating the guest domain > - as part of this process xend forks and execs stubdom-dm > - afterward xend hotplugs a pci device into the guest > - then waits for the device model to say it is done (signalDeviceModel) > but this never happens because stubdom-dm is trying to create the > stubdom but xend hasn't replied yet because is busy with the guest > domain. > > This problem doesn't exist anymore. If it doesn't exist anymore, do you think it's easier to revert to old scheme? (Always creating pci devclass). Thanks, Qing