From: Julien Grall <julien.grall@arm.com>
To: Jan Beulich <JBeulich@suse.com>, Roger Pau Monne <roger.pau@citrix.com>
Cc: StefanoStabellini <sstabellini@kernel.org>,
Wei Liu <wei.liu2@citrix.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Punit Agrawal <punit.agrawal@arm.com>,
IanJackson <ian.jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com
Subject: Re: [PATCH v3 5/9] xen/vpci: add handlers to map the BARs
Date: Mon, 22 May 2017 12:38:55 +0100 [thread overview]
Message-ID: <716fab85-6a13-d42c-bb44-c6b4ff96ae35@arm.com> (raw)
In-Reply-To: <591F29B4020000780015B5AE@prv-mh.provo.novell.com>
Hi,
On 19/05/17 16:21, Jan Beulich wrote:
>>>> On 27.04.17 at 16:35, <roger.pau@citrix.com> wrote:
>> + VPCI_BAR_MEM64_LO,
>> + VPCI_BAR_MEM64_HI,
>> + } type;
>> + /* Hardware address. */
>> + paddr_t paddr;
>> + /* Guest address where the BAR should be mapped. */
>> + paddr_t gaddr;
>> + /* Current guest address where the BAR is mapped. */
>> + paddr_t mapped_addr;
>
> Why do you need to track both "should be" and "is" addresses? Also
> I think all three would more naturally be frame numbers.
>
>> + size_t size;
>
> Is this enough for e.g. ARM32 (remember this is a common
> header)?
ARM 32 support up to 40 bits address space. So theoretically it would to
would be possible to have BAR bigger than 4GB.
Also, I have seen quite few use of GENMASK(63...) which is not going to
work on arm32.
Cheers,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-05-22 11:39 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-27 14:35 [PATCH v3 0/9] vpci: PCI config space emulation Roger Pau Monne
2017-04-27 14:35 ` [PATCH v3 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space Roger Pau Monne
2017-05-19 11:35 ` Jan Beulich
2017-05-29 12:57 ` Roger Pau Monne
2017-05-29 14:16 ` Jan Beulich
2017-05-29 15:05 ` Roger Pau Monne
2017-05-29 15:26 ` Jan Beulich
2017-04-27 14:35 ` [PATCH v3 2/9] x86/ecam: add handlers for the PVH Dom0 MMCFG areas Roger Pau Monne
2017-05-19 13:25 ` Jan Beulich
2017-06-20 11:56 ` Roger Pau Monne
2017-06-20 13:14 ` Jan Beulich
2017-06-20 15:04 ` Roger Pau Monne
2017-04-27 14:35 ` [PATCH v3 3/9] xen/mm: move modify_identity_mmio to global file and drop __init Roger Pau Monne
2017-05-19 13:35 ` Jan Beulich
2017-06-21 11:11 ` Roger Pau Monne
2017-06-21 11:57 ` Jan Beulich
2017-06-21 12:43 ` Roger Pau Monne
2017-06-21 12:51 ` Jan Beulich
2017-06-21 13:10 ` Roger Pau Monne
2017-06-21 13:29 ` Jan Beulich
2017-04-27 14:35 ` [PATCH v3 4/9] xen/pci: split code to size BARs from pci_add_device Roger Pau Monne
2017-05-19 13:56 ` Jan Beulich
2017-06-21 15:16 ` Roger Pau Monne
2017-04-27 14:35 ` [PATCH v3 5/9] xen/vpci: add handlers to map the BARs Roger Pau Monne
2017-05-19 15:21 ` Jan Beulich
2017-05-22 11:38 ` Julien Grall [this message]
2017-06-22 17:13 ` Roger Pau Monne
2017-06-23 8:58 ` Jan Beulich
2017-06-23 10:55 ` Roger Pau Monne
2017-04-27 14:35 ` [PATCH v3 6/9] xen/vpci: trap access to the list of PCI capabilities Roger Pau Monne
2017-05-23 12:49 ` Jan Beulich
2017-06-26 11:50 ` Roger Pau Monne
2017-06-27 6:44 ` Jan Beulich
2017-05-29 13:32 ` Jan Beulich
2017-04-27 14:35 ` [PATCH v3 7/9] vpci: add a priority field to the vPCI register initializer Roger Pau Monne
2017-05-23 12:52 ` Jan Beulich
2017-06-26 14:41 ` Roger Pau Monne
2017-04-27 14:35 ` [PATCH v3 8/9] vpci/msi: add MSI handlers Roger Pau Monne
2017-05-26 15:26 ` Jan Beulich
2017-06-27 10:22 ` Roger Pau Monne
2017-06-27 11:44 ` Jan Beulich
2017-06-27 12:44 ` Roger Pau Monné
2017-04-27 14:35 ` [PATCH v3 9/9] vpci/msix: add MSI-X handlers Roger Pau Monne
2017-05-29 13:29 ` Jan Beulich
2017-06-28 15:29 ` Roger Pau Monne
2017-06-29 6:19 ` Jan Beulich
2017-06-29 8:25 ` Roger Pau Monné
2017-05-29 13:38 ` [PATCH v3 0/9] vpci: PCI config space emulation Jan Beulich
2017-05-29 14:14 ` Roger Pau Monne
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=716fab85-6a13-d42c-bb44-c6b4ff96ae35@arm.com \
--to=julien.grall@arm.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=ian.jackson@eu.citrix.com \
--cc=punit.agrawal@arm.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--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.