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

Re: [Xen-devel] [PATCH v2] libxc: fix the types used in xc_dom_image to build HVM guests



On Fri, 2015-10-16 at 11:03 +0200, Roger Pau Monnà wrote:
> El 16/10/15 a les 11.00, Wei Liu ha escrit:
> > On Fri, Oct 16, 2015 at 09:57:02AM +0100, Ian Campbell wrote:
> > > On Thu, 2015-10-15 at 19:23 +0200, Roger Pau Monne wrote:
> > > > Fix the types used to store the memory parameters of an HVM guest,
> > > > previously they defaulted to unsigned long on 32bit toolstack
> > > > builds, which
> > > > is wrong because a 32bit value cannot hold a 64bit memory address
> > > > that
> > > > crosses the 4GB boundary.
> > > 
> > > Just for my own interest, I suppose this was a latent issue even
> > > before the
> > > dom builder rework, but what was the change which exposed it now?
> > > 
> > 
> > I don't think this is a latent issue.
> > 
> > During the refactoring a bunch of types were changed to unsigned long.
> > The original types used were uint64_t, which is of the same width on 32
> > bit and 64 bit.
> 
> Yes, those fields were in xc_hvm_build_args as uint64_t, and during the
> rework of the HVM builder I had changed them to xen_pfn_t, so it's
> completely my fault, previous code should be fine.

Ah ok, thanks.

> I will keep an eye on the smoke OSSTest tests.

Thank you.

Ian.

> 
> Roger.
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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