From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@qumranet.com>
Cc: benami@il.ibm.com, amit.shah@qumranet.com, weidong.han@intel.com,
muli@il.ibm.com, raharper@us.ibm.com, kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: PCIPT: VT-d: fix guest unmap
Date: Fri, 20 Jun 2008 14:28:27 -0500 [thread overview]
Message-ID: <485C04DB.6040207@codemonkey.ws> (raw)
In-Reply-To: <485BFE24.5080100@qumranet.com>
Avi Kivity wrote:
> Anthony Liguori wrote:
>> I think the current VT-d code needs some reworking.
>>
>> We should build the table as the shadow page table gets built. We
>> should suppress iotlb flushes unless the table is actually being
>> updated.
>>
>
> We can't, since we need the iommu tables populated before we issue any
> dma.
Yes, as I've mentioned, the lack of a DMA window notification API can be
handled as a special case.
> Perhaps we want something like MAP_POPULATE for shadow, which would
> then affect the iommu tables. Userspace would then do:
>
> mlock()
> ... set up device assignment
> ioctl(..., KVM_POPULATE)
Exactly like this :-)
Regards,
Anthony Liguori
prev parent reply other threads:[~2008-06-20 19:28 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-17 19:05 Patches for vtd pci passthrough benami
2008-06-17 19:05 ` [PATCH] KVM: PCIPT: fix compilation errors benami
2008-06-17 19:05 ` [PATCH] KVM: PCIPT: VT-d: fix guest unmap benami
2008-06-17 19:05 ` [PATCH] KVM: PCIPT: free device structure on vm destroy benami
2008-06-17 19:05 ` [PATCH] KVM: PCIPT: VT-d: fix context mapping benami
2008-06-17 19:25 ` KVM: PCIPT: temporary fix for pio (userspace part) benami
2008-06-17 19:25 ` [PATCH] " benami
2008-06-18 20:30 ` [PATCH] KVM: PCIPT: VT-d: fix context mapping Muli Ben-Yehuda
2008-06-19 8:59 ` Han, Weidong
2008-06-19 12:28 ` Ben-Ami Yassour
2008-06-19 14:18 ` Han, Weidong
2008-06-19 17:44 ` Ben-Ami Yassour1
2008-06-20 6:23 ` Han, Weidong
2008-06-30 15:32 ` Ben-Ami Yassour
2008-07-01 2:22 ` Han, Weidong
2008-06-17 21:29 ` [PATCH] KVM: PCIPT: VT-d: fix guest unmap Anthony Liguori
2008-06-18 12:06 ` Ben-Ami Yassour
2008-06-18 20:48 ` Anthony Liguori
2008-06-18 21:23 ` Muli Ben-Yehuda
2008-06-18 21:41 ` Anthony Liguori
2008-06-20 18:59 ` Avi Kivity
2008-06-20 19:28 ` Anthony Liguori [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=485C04DB.6040207@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=amit.shah@qumranet.com \
--cc=avi@qumranet.com \
--cc=benami@il.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=muli@il.ibm.com \
--cc=raharper@us.ibm.com \
--cc=weidong.han@intel.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