From: Jim Fehlig Subject: Re: [PATCH] libxl: Disallow save or migrate when host devices are assigned to a guest. Date: Fri, 01 May 2015 15:32:02 -0600 Message-ID: <5543F0D2.2020809__48466.3779185668$1430516092$gmane$org@suse.com> References: <1428504514-17992-1-git-send-email-konrad.wilk@oracle.com> <552DC9D8.9030907@suse.com> <1429226399.11969.16.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YoIXl-000189-RW for xen-devel@lists.xenproject.org; Fri, 01 May 2015 21:32:21 +0000 In-Reply-To: <1429226399.11969.16.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: libvir-list@redhat.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org Dario Faggioli wrote: > On Tue, 2015-04-14 at 20:15 -0600, Jim Fehlig wrote: > >> Konrad Rzeszutek Wilk wrote: >> > > >>> -static bool >>> -libxlDomainMigrationIsAllowed(virDomainDefPtr def) >>> -{ >>> - /* Migration is not allowed if definition contains any hostdevs */ >>> - if (def->nhostdevs > 0) { >>> - virReportError(VIR_ERR_OPERATION_INVALID, "%s", >>> - _("domain has assigned host devices")); >>> - return false; >>> - } >>> - >>> - return true; >>> -} >>> - >>> >> This function was created with the intention of adding more checks, e.g. >> is the cpu and numa configuration migratable? >> >> > Only vaguely related to the patch, I know (sorry!), but if I can ask, > what do you mean with "is the cpu and numa configuration migratable?" > I was thinking about domXML such as ... 8 62914560 104857600 ... > I mean what NUMA configuration are we talking about, and when and under > what circumstances would you consider it "migratable"? > E.g. if a domain is configured to use memory allocated from certain numa nodes, we'd want to make sure the dest has sufficient memory amongst those nodes. But these were just examples of things we may want to check before starting the migration. I suppose there are better examples wrt storage, e.g. does the domain have an attached DVD, ... Regards, Jim