All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@citrix.com>
To: Jan Beulich <jbeulich@suse.com>,
	julien.grall@citrix.com, tklengyel@sec.in.tum.de
Cc: wei.liu2@citrix.com, ian.campbell@citrix.com,
	stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com,
	julien.grall@linaro.org, tim@xen.org, xen-devel@lists.xen.org,
	stefano.stabellini@citrix.com, keir@xen.org,
	ian.jackson@eu.citrix.com
Subject: Re: [PATCH V15 5/9] xen: Make gpfn related memops compatible with wider return values
Date: Mon, 27 Apr 2015 11:18:43 +0100	[thread overview]
Message-ID: <553E0D03.2030003@citrix.com> (raw)
In-Reply-To: <553DED2102000078000CDDEE@mail.emea.novell.com>

Hi Jan,

On 27/04/2015 08:02, Jan Beulich wrote:
>>>> Julien Grall <julien.grall@citrix.com> 04/25/15 10:37 PM >>>
>> On 21/04/2015 20:13, Jan Beulich wrote:
>>> For this specific one - is there a reasonable use case? Other than
>>> for host PFN, we have control over guest ones, and I'm not sure
>>> managing a guest with GPFNs extending past 4 billion can be
>>> expected to work if only this one hypercall got fixed. IOW I'm
>>> expecting to NAK any such addition without proper rationale.
>>
>> There is hardware coming out with 48 bits address support (i.e 36 bit pfn).
>>
>> Even though the current layout of 64bit address space is using 40 bits
>> IPA, I wouldn't be surprise if we decide to extend it soon (I have in
>> mind PCI passthrough).
>>
>> Without this new hypercall, you rule out the possibility to run the
>> toolstack (included memaccess or any software requiring the maximum PFN
>> used by a domain) in a 32bit domain or 32bit userspace on 64bit domain.
>
> For a 32-bit domain, I suppose there are more limitations (unsigned long
> being used for MFNs/PFNs), so I don't see how this one addition would
> help.  For 32-bit userspace on 64-bit domains the hypercall again isn't
> the limiting factor, but the kernel's hypercall interface is. (And again I
> doubt widening the MFN/PFN/GFN representation just here would
> really make 32-bit userspace work on such large hosts.)

On ARM 32/64 bits xen_pfn_t is defined as uint64_t. So I don't see any 
problem, unless the toolstack uses unsigned long which is already 
obviously wrong...

Although, I still don't see why it prevents us to fix this hypercall... 
It's the first step to make the toolstack x86 agnostic (because unsigned 
long is x86 specific).

Regards,

-- 
Julien Grall

  reply	other threads:[~2015-04-27 10:18 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-20 15:06 [PATCH V15 0/9] Mem_access for ARM Tamas K Lengyel
2015-04-20 15:06 ` [PATCH V15 1/9] xen/arm: groundwork for mem_access support on ARM Tamas K Lengyel
2015-04-20 15:06 ` [PATCH V15 2/9] xen/arm: Allow hypervisor access to mem_access protected pages Tamas K Lengyel
2015-04-21 13:14   ` Ian Campbell
2015-04-21 14:10     ` Tamas K Lengyel
2015-04-21 14:22       ` Ian Campbell
2015-04-20 15:06 ` [PATCH V15 3/9] xen/arm: Data abort exception (R/W) mem_access events Tamas K Lengyel
2015-04-21 13:16   ` Ian Campbell
2015-04-20 15:06 ` [PATCH V15 4/9] xen/arm: Instruction prefetch abort (X) mem_access event handling Tamas K Lengyel
2015-04-21 13:19   ` Ian Campbell
2015-04-20 15:06 ` [PATCH V15 5/9] xen: Make gpfn related memops compatible with wider return values Tamas K Lengyel
2015-04-20 15:22   ` Andrew Cooper
2015-04-20 15:25     ` Tamas K Lengyel
2015-04-21 13:23     ` Ian Campbell
2015-04-21 14:14       ` Jan Beulich
2015-04-21 14:24         ` Ian Campbell
2015-04-21 14:29           ` Jan Beulich
2015-04-21 14:42             ` Tamas K Lengyel
2015-04-21 15:13               ` Jan Beulich
2015-04-21 15:21                 ` Tamas K Lengyel
2015-04-25 16:54                 ` Julien Grall
2015-04-27  7:02                   ` Jan Beulich
2015-04-27 10:18                     ` Julien Grall [this message]
2015-04-21 14:47             ` Ian Campbell
2015-04-21 14:33         ` Tamas K Lengyel
2015-04-21 14:41           ` Jan Beulich
2015-04-20 15:06 ` [PATCH V15 6/9] xen/arm: Implement domain_get_maximum_gpfn Tamas K Lengyel
2015-04-21 13:24   ` Ian Campbell
2015-04-20 15:06 ` [PATCH V15 7/9] tools/libxc: Allocate magic page for mem access on ARM Tamas K Lengyel
2015-04-20 15:06 ` [PATCH V15 8/9] tools/tests: Enable xen-access " Tamas K Lengyel
2015-04-21 13:28   ` Ian Campbell
2015-04-21 14:13     ` Tamas K Lengyel
2015-04-20 15:06 ` [PATCH V15 9/9] xen/arm: Enable mem_access " Tamas K Lengyel
2015-04-22 13:29 ` [PATCH V15 0/9] Mem_access for ARM Ian Campbell

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=553E0D03.2030003@citrix.com \
    --to=julien.grall@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien.grall@linaro.org \
    --cc=keir@xen.org \
    --cc=stefano.stabellini@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=tklengyel@sec.in.tum.de \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.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.