From: Paolo Bonzini <pbonzini@redhat.com>
To: Le Tan <tamlokveer@gmail.com>
Cc: Jan Kiszka <jan.kiszka@web.de>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] About AddressSpace in intel-iommu emulation
Date: Fri, 27 Jun 2014 06:55:41 +0200 [thread overview]
Message-ID: <53ACF94D.20206@redhat.com> (raw)
In-Reply-To: <CACrq+iKhpjdHVvag_umAv1xSk5TYiX7Tm_Q7Yts2tQDFQMJ85Q@mail.gmail.com>
Il 27/06/2014 04:08, Le Tan ha scritto:
> 1. In struct IOMMUTLBEntry, I think the addr_mask field should be the
> mask of the page offset, right? But I see different usages of this
> field. In spapr_tce_translate_iommu(), the addr_mask field is assigned
> with the mask of the page offset. However, in pbm_translate_iommu(),
> in the passthrough case, the addr_mask field seems to be assigned the
> mask of the page number. Is there any problem here?
The intended usage is the one of spapr_tce_translate_iommu(). In
practice it doesn't matter, both work.
> 2. For q35, how to identify origination of DMA requests? The VT-d
> manual says we should use source-id(for PCI-Express devices, it is
> requester identifier) to map devices to domains. What is the related
> part in QEMU? Where can I get the source-id of a DMA request?
You need to create a different AddressSpace for each PCI bus or device.
Paolo
next prev parent reply other threads:[~2014-06-27 4:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-26 14:01 [Qemu-devel] About AddressSpace in intel-iommu emulation Le Tan
2014-06-26 14:05 ` Paolo Bonzini
2014-06-26 14:16 ` Le Tan
2014-06-27 2:08 ` Le Tan
2014-06-27 4:55 ` Paolo Bonzini [this message]
2014-06-27 5:46 ` Le Tan
2014-06-27 9:55 ` Jan Kiszka
2014-06-27 14:15 ` Le Tan
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=53ACF94D.20206@redhat.com \
--to=pbonzini@redhat.com \
--cc=jan.kiszka@web.de \
--cc=qemu-devel@nongnu.org \
--cc=tamlokveer@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).