All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: "Ian Campbell" <ian.campbell@citrix.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	xen-devel@lists.xenproject.org
Cc: Ian Jackson <ian.jackson@eu.citrix.com>, Wei Liu <wei.liu2@citrix.com>
Subject: Re: [PATCH] libxc: fix the types used in xc_dom_image to build HVM guests
Date: Thu, 15 Oct 2015 18:17:55 +0100	[thread overview]
Message-ID: <561FDFC3.2000208@citrix.com> (raw)
In-Reply-To: <1444929367.32735.0.camel@citrix.com>

On 15/10/15 18:16, Ian Campbell wrote:
> On Thu, 2015-10-15 at 18:52 +0200, Roger Pau Monné wrote:
>> El 15/10/15 a les 18.41, Ian Campbell ha escrit:
>>> On Thu, 2015-10-15 at 18:30 +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.
>>> This header includes a xen_paddr_t in it which looks like the
>> appropriate
>>> type for most of these.
>>>
>>> The ones which have units of pages which you've changed from
>> xen_pfn_t to
>>> unsigned long (not long long) should surely remain xen_pfn_t? At
>> least
>>> target_pages should IMHO.
>>>
>>> lowmem_end doesn't strictly need to be 64-bit, but xen_paddr_t
>> seems like
>>> the appropriate type semantically nonetheless.
>> Right, I didn't realize we had a xen_paddr_t type, thanks to Juergen
>> and
>> you for pointing it out. mmio_size is not a paddr, so I'm going to
>> leave
>> it as unsigned long long.
> The size of a paddr region can be considered to be a paddr from my PoV.

+1.  Better to use xen_paddr_t across the board than to mix and match.

~Andrew

      reply	other threads:[~2015-10-15 17:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-15 14:45 [xen-unstable test] 62968: regressions - FAIL osstest service owner
2015-10-15 15:21 ` Wei Liu
2015-10-15 15:26   ` Wei Liu
2015-10-15 15:52     ` Andrew Cooper
2015-10-15 16:07       ` Wei Liu
2015-10-15 16:30         ` [PATCH] libxc: fix the types used in xc_dom_image to build HVM guests Roger Pau Monne
2015-10-15 16:39           ` Juergen Gross
2015-10-15 16:41           ` Ian Campbell
2015-10-15 16:52             ` Roger Pau Monné
2015-10-15 17:16               ` Ian Campbell
2015-10-15 17:17                 ` Andrew Cooper [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=561FDFC3.2000208@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=roger.pau@citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.