From: Julien Grall <julien.grall@citrix.com>
To: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
Julien Grall <julien.grall@citrix.com>
Cc: edgar.iglesias@xilinx.com, tim@xen.org,
stefano.stabellini@citrix.com, ian.campbell@citrix.com,
xen-devel@lists.xen.org
Subject: Re: [PATCH v3 3/3] xen/iommu: arm: Use p2m_ipa_bits as stage2 input size
Date: Fri, 1 May 2015 11:20:14 +0100 [thread overview]
Message-ID: <5543535E.1050601@citrix.com> (raw)
In-Reply-To: <20150501013934.GA10142@toto>
Hi Edgar,
On 01/05/15 02:39, Edgar E. Iglesias wrote:
> On Thu, Apr 30, 2015 at 04:07:27PM +0100, Julien Grall wrote:
>> As this is a restriction of the driver we should print a error message
>> and return an appropriate error value.
>>
>> The generic IOMMU driver can then decide if it's safe to continue
>> without the SMMU setup or panic.
>>
>> FWIW, currently we use the later. I will send a patch to panic avoiding
Hmmm... I meant former not later here.
>> the user to think the SMMU is correctly setup.
>
> This is what it looks like in my new version when starting XEN and forcing
> a bad SMMU IPA size:
>
> (XEN) P2M: 40-bit IPA with 40-bit PA
> (XEN) P2M: 3 levels with order-1 root, VTCR 0x80023558
> (XEN) smmu: /amba/smmu0@0xFD800000: probing hardware configuration...
> (XEN) smmu: /amba/smmu0@0xFD800000: SMMUv2 with:
> (XEN) smmu: /amba/smmu0@0xFD800000: stage 2 translation
> (XEN) smmu: /amba/smmu0@0xFD800000: stream matching with 48 register groups, mask 0x7fff
> (XEN) smmu: /amba/smmu0@0xFD800000: 16 context banks (0 stage-2 only)
> (XEN) smmu: /amba/smmu0@0xFD800000: P2M IPA size not supported (P2M=40 SMMU=36)!
> (XEN) I/O virtualisation disabled
> (XEN) *** LOADING DOMAIN 0 ***
>
> Dom0 boots fine but without IOMMU protections...
I was expected this behavior. IOMMU is only important for device
passthrough. In this case, the user won't be able to assign the device
protected by this SMMU to any guest.
We currently have the same behavior as x86. Xen will continue to boot
DOM0 unless "iommu=force/required" is passed on the command line.
I think we should keep the same behavior.
Regards,
--
--
Julien Grall
prev parent reply other threads:[~2015-05-01 10:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-30 11:55 [PATCH v3 0/3] Set SMMU s2 input-size based on p2m tables Edgar E. Iglesias
2015-04-30 11:55 ` [PATCH v3 1/3] xen/arm: Re-order iommu_setup to after setup_virt_paging Edgar E. Iglesias
2015-04-30 11:55 ` [PATCH v3 2/3] xen/arm: Add p2m_ipa_bits Edgar E. Iglesias
2015-04-30 14:52 ` Julien Grall
2015-04-30 11:55 ` [PATCH v3 3/3] xen/iommu: arm: Use p2m_ipa_bits as stage2 input size Edgar E. Iglesias
2015-04-30 15:07 ` Julien Grall
2015-05-01 1:39 ` Edgar E. Iglesias
2015-05-01 10:20 ` Julien Grall [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=5543535E.1050601@citrix.com \
--to=julien.grall@citrix.com \
--cc=edgar.iglesias@gmail.com \
--cc=edgar.iglesias@xilinx.com \
--cc=ian.campbell@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--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.