[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH v9 0/8] domain context infrastructure


  • To: "Durrant, Paul" <pdurrant@xxxxxxxxxxxx>
  • From: "Lengyel, Tamas" <tamas.lengyel@xxxxxxxxx>
  • Date: Tue, 29 Sep 2020 14:19:18 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YUOKBx2d26jY6f5sRICHs0T+TQTjX57au9P4KC7SYiA=; b=H6wTfk4uyBIXou/XQjNGXeV9uFytSJsQtM0bPedByp5ORcY74073Qk3FHvgdP28Bz/jWoVCNZzQCin6XgwhnLxHcS3UhziYBV78+xMP+DRKImvYPOeC5Qv5PoKP5TipXNyU7DAPhx8pOfCuDgk5U2494rNsfTTEyXZkrqwkKUKQ59nu4zlqpSiWCT4gCQWM4xe+FM1PTh4rh0KmzOz4/bs/bnAPhOmSNEYXYHkD+lOljqZAalIzSEGv7Pw1I9FkGaBzQCQNzmRfRsApxDevkg79z91b+7wPr1i30PzDlnMeLbIt+EJyuXDBvIacHwI9P0nAO05RoEIuKzYSLkU7Hnw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kIxOIDuNZJRtYbe7kCnx3UyJ8UaQeCOLPhp6M0oTWvH0EyluONnDxLMinEnvdkQir78hN2I+4Ub7MM0SOmzM1WPikkH18OIV09KpA76SBvyYd71j6NyaztTIaCj5sLKW/n9R5jzJSqRikKKWec4QX2brVb54VXE6el8ma21VF8LHeOhnGJRLTr8Mfkv8VPYxR6+DmT8ObGtg5pK4h/p+FvWP91AwWQzlZhCgrFgV+JhmA6mbEgzdcIR+JNnAW/FExc6+r2iiomhhf9dU8JbKDdHOAHyP+ddTXTNzVKhREgWyrj5Nj7b9U6LL6xmfdeZk2mb7/B/bdzdg4+ljCIxFmw==
  • Authentication-results: amazon.co.uk; dkim=none (message not signed) header.d=none;amazon.co.uk; dmarc=none action=none header.from=intel.com;
  • Cc: "paul@xxxxxxx" <paul@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 29 Sep 2020 14:19:42 +0000
  • Dlp-product: dlpe-windows
  • Dlp-reaction: no-action
  • Dlp-version: 11.5.1.3
  • Ironport-sdr: LlkqAPuAstfyz2ZdLaCYOo0oT50rowa3JR1RdD4E9M7SiaMrBhaQnyryKB4LbR40a+iK99ILlh kOZvNKemdkAQ==
  • Ironport-sdr: BrbYVpTdctWL8dmbT+B5pvJmETtBHUrPLzr9qQ986yOOY0t494HsFcA3Y96IjioeVzP7EIkK34 4ZOm7VIjti3g==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWknRuHXFGg/c6C0CkM2JZfSFRjal4LpeAgAEhBgCABM4f0IABaTIQgAAF3gCAAAFPkIAAIaAA
  • Thread-topic: [PATCH v9 0/8] domain context infrastructure

> -----Original Message-----
> From: Durrant, Paul <pdurrant@xxxxxxxxxxxx>
> Sent: Tuesday, September 29, 2020 8:14 AM
> To: Tamas K Lengyel <tamas.k.lengyel@xxxxxxxxx>
> Cc: Lengyel, Tamas <tamas.lengyel@xxxxxxxxx>; paul@xxxxxxx; xen-
> devel@xxxxxxxxxxxxxxxxxxxx; Andrew Cooper <andrew.cooper3@xxxxxxxxxx>;
> Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>; George Dunlap
> <george.dunlap@xxxxxxxxxx>; Ian Jackson <ian.jackson@xxxxxxxxxxxxx>; Jan
> Beulich <jbeulich@xxxxxxxx>; Julien Grall <julien@xxxxxxx>; Marek
> Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>; Roger Pau Monné
> <roger.pau@xxxxxxxxxx>; Stefano Stabellini <sstabellini@xxxxxxxxxx>;
> Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>; Wei Liu
> <wl@xxxxxxx>
> Subject: RE: [PATCH v9 0/8] domain context infrastructure
> 
> > -----Original Message-----
> > From: Tamas K Lengyel <tamas.k.lengyel@xxxxxxxxx>
> > Sent: 29 September 2020 13:06
> > To: Durrant, Paul <pdurrant@xxxxxxxxxxxx>
> > Cc: Lengyel, Tamas <tamas.lengyel@xxxxxxxxx>; paul@xxxxxxx;
> > xen-devel@xxxxxxxxxxxxxxxxxxxx; Andrew Cooper
> > <andrew.cooper3@xxxxxxxxxx>; Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>;
> > George Dunlap <george.dunlap@xxxxxxxxxx>; Ian Jackson
> > <ian.jackson@xxxxxxxxxxxxx>; Jan Beulich <jbeulich@xxxxxxxx>; Julien
> > Grall <julien@xxxxxxx>; Marek Marczykowski-Górecki
> > <marmarek@xxxxxxxxxxxxxxxxxxxxxx>; Roger Pau Monné
> > <roger.pau@xxxxxxxxxx>; Stefano Stabellini <sstabellini@xxxxxxxxxx>;
> > Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>; Wei Liu
> <wl@xxxxxxx>
> > Subject: RE: [EXTERNAL] [PATCH v9 0/8] domain context infrastructure
> >
> > CAUTION: This email originated from outside of the organization. Do
> > not click links or open attachments unless you can confirm the sender and
> know the content is safe.
> >
> >
> >
> > On Tue, Sep 29, 2020 at 7:54 AM Durrant, Paul <pdurrant@xxxxxxxxxxxx>
> wrote:
> > >
> > > > -----Original Message-----
> > > > From: Lengyel, Tamas <tamas.lengyel@xxxxxxxxx>
> > > > Sent: 28 September 2020 15:17
> > > > To: paul@xxxxxxx; xen-devel@xxxxxxxxxxxxxxxxxxxx
> > > > Cc: Durrant, Paul <pdurrant@xxxxxxxxxxxx>; 'Andrew Cooper'
> > > > <andrew.cooper3@xxxxxxxxxx>; 'Daniel De Graaf'
> <dgdegra@xxxxxxxxxxxxx>; 'George Dunlap' <george.dunlap@xxxxxxxxxx>; 'Ian
> Jackson'
> > > > <ian.jackson@xxxxxxxxxxxxx>; 'Jan Beulich' <jbeulich@xxxxxxxx>;
> > > > 'Julien Grall' <julien@xxxxxxx>; 'Marek Marczykowski-Górecki'
> <marmarek@xxxxxxxxxxxxxxxxxxxxxx>; 'Roger Pau Monné'
> > > > <roger.pau@xxxxxxxxxx>; 'Stefano Stabellini' <sstabellini@xxxxxxxxxx>;
> 'Volodymyr Babchuk'
> > > > <Volodymyr_Babchuk@xxxxxxxx>; 'Wei Liu' <wl@xxxxxxx>
> > > > Subject: RE: [EXTERNAL] [PATCH v9 0/8] domain context
> > > > infrastructure
> > > >
> > > > CAUTION: This email originated from outside of the organization.
> > > > Do not click links or open attachments unless you can confirm the sender
> and know the content is safe.
> > > >
> > > >
> > > >
> > > > > > Hi Paul,
> > > > > > Could you push a git branch somewhere for this series? I would
> > > > > > like to see this being integrated with VM forking and if its
> > > > > > not too much effort just create the patch for that so that it
> > > > > > could be appended to the
> > > > > series.
> > > > > >
> > > > >
> > > > > Hi Tamas,
> > > > >
> > > > >   Done. See
> > > > > https://xenbits.xen.org/gitweb/?p=people/pauldu/xen.git;a=shortl
> > > > > og;h=refs/h
> > > > > eads/domain-save14
> > > > >
> > > > >   Cheers,
> > > > >
> > > > >     Paul
> > > >
> > > > Hi Paul,
> > > > I added a small patch that would save & load the PV context from
> > > > one domain to another that would
> > be
> > > > called during VM forking. Please take a look at
> > > >
> > https://xenbits.xen.org/gitweb/?p=people/tklengyel/xen.git;a=commitdif
> > f;h=1843ca7302e415317fdb9a63b3a4
> > > > d29a385dc766;hp=8149296fdf80c73727e61cea6fe3251aecf8b333. I called
> > > > the function
> > copy_pv_domaincontext
> > > > for now as that seemed like the most appropriate description for
> > > > it. Please let me know if this
> > looks
> > > > good to you. I'm still testing it but if everything checks out it
> > > > would be nice to just append
> > this
> > > > patch to your series.
> > >
> > > Hi Tamas,
> > >
> > >   The code structure appears to be ok... just some cosmetic tweaks:
> > >
> > > - I think you should call the function simply 'copy_domaincontext'
> > > as the idea is that all state
> > (including what is now in hvm context) will be consolidated
> >
> > Sure, I wasn't entirely clear about whether this will be limited to PV
> > context or if it will eventually add the hvm stuff too. Right now I
> > still would have to do that separately.
> >
> > > - The prevailing style in domctl.c AFAICS is that assignments are
> > > mostly not done inside if
> > statements. Personally I think this is a good thing.
> >
> > I think it cuts down on function sizes when all that is being done
> > after an assigment is a NULL-check. No need for a separate line for it
> > but I also don't care that much. So if it's more important to whoever
> > maintains this to keep the style consistent in this regard I can
> > change it.
> >
> > >
> > >   Once you have something ready to go then I'd be happy to tag it
> > > onto my series if I need to do a
> > v10... but I'm currently hoping that won't be necessary.
> >
> > I think I'll wait until HVM context is included in the framework as
> > well so that we can just switch over everything at once.
> >
> 
> It may be a while before I have everything moved over so you may still want to
> go ahead with this patch if the delay is likely to block things. Also, 
> without this I
> assume any records I port over from HVM context (and hence remove the save
> code) are going to cause breakage for VM forking?

If you do remove the existing hvm_save/hvm_load functions then yes, that would 
pretty much break VM forking right away. We use those in 
hvm_copy_context_and_params. So if you do make significant changes in there I 
would ask that you at least compile test with CONFIG_MEM_SHARING enabled. That 
would be the point where we would want to start using this new 
copy_domaincontext function. Right now just for the PV stuff it's not critical 
as we do copy those internally ourself, it would just be nicer to use this 
plumbing you add that will be shared with domain save/restore/migrate.

Tamas

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.