From: Juergen Gross <jgross@suse.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: PCI-passthrough for 32 bit guests and high MMIO addresses
Date: Fri, 21 Nov 2014 16:17:16 +0100 [thread overview]
Message-ID: <546F577C.6080207@suse.com> (raw)
In-Reply-To: <546F60470200007800049D06@suse.com>
On 11/21/2014 03:54 PM, Jan Beulich wrote:
>>>> On 21.11.14 at 15:39, <JGross@suse.com> wrote:
>> Trying to do PCI-passthrough with a 32-bit pv-domain I passed the
>> wrong device to the domain. The MMIO address was too large for a
>> MFN of a 32-bit system (it was 380003200000-3800036fffff).
>>
>> Instead of rejecting the operation Xen tried to perform it resulting
>> in a (quite understandable) failure in the domU.
>>
>> I think either the hypervisor or the tools should refuse to do
>> PCI-passthrough in this case.
>
> What's wrong with this large an address? 32-bit PV uses PAE, i.e.
> can map them. If the kernel isn't capable of that that's not
> something to make Xen (or the tools) refuse such assignments. I
> would only see an issue if a hypercall interface involved here isn't
> using wide enough fields (but these addresses should be read
> from the BARs, i.e. no hypercall involved).
The MFN format is part of the pv-ABI. And a MFN of a 32-bit pv-guest is
only 32 bits (even if don't take the invalid bit into account).
Should a pv-guest really be capable to map an address outside it's
accessible MFN-range?
Are the tools capable of processing such a mapping in case of saving the
domain?
Juergen
next prev parent reply other threads:[~2014-11-21 15:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 14:39 PCI-passthrough for 32 bit guests and high MMIO addresses Juergen Gross
2014-11-21 14:45 ` Andrew Cooper
2014-11-21 15:04 ` Juergen Gross
2014-11-21 15:29 ` Andrew Cooper
2014-11-21 14:54 ` Jan Beulich
2014-11-21 15:01 ` Andrew Cooper
2014-11-21 15:38 ` Jan Beulich
2014-11-21 15:48 ` David Vrabel
2014-11-21 16:00 ` Jan Beulich
2014-11-21 16:01 ` David Vrabel
[not found] ` <546F60470200007800049D06@suse.com>
2014-11-21 15:17 ` Juergen Gross [this message]
2014-11-21 15:40 ` Jan Beulich
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=546F577C.6080207@suse.com \
--to=jgross@suse.com \
--cc=JBeulich@suse.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.