From: Sean Christopherson <seanjc@google.com>
To: Sean Christopherson <seanjc@google.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
Jason Gunthorpe <jgg@nvidia.com>,
Yan Zhao <yan.y.zhao@intel.com>,
David Matlack <dmatlack@google.com>
Subject: [ANNOUNCE] PUCK Notes - 2024.01.17 - TDP MMU for IOMMU
Date: Thu, 18 Jan 2024 08:58:38 -0800 [thread overview]
Message-ID: <20240118165838.1934853-1-seanjc@google.com> (raw)
Recording and slides:
https://drive.google.com/corp/drive/folders/1sSr_8FE5KjjGGnpX7_QlHAX3QGoRnck7?resourcekey=0-UB_vbXfpY4Dezo9xI_-6iA
Key Takeways:
- Having KVM notify (or install PTEs in) the IOMMU page tables for _all_ PTEs
created by KVM may not be necessary to achieve the desired performance, e.g.
proactively mapping in the IOMMU may only be necessary when swapping in
memory for oversubscribed VMs.
- Synchronously notifying/installing could be a net negative for guest
performance, e.g. could add significant latency in KVM's page fault path if
a PTE operation necessitates an IOMMU TLB invalidation.
- Despite hardware vendors' intentions/claims, CPU and IOMMU page table entries
aren't 100% interchangeable. E.g. even on Intel, where the formats are
compatible, it's still possible to create EPT PTEs (CPU) that are not usable
in the IOMMU.
- Given the above, having KVM manage and/or notify IOMMU Page tables would be
a premature optimization.
- Recommended next step is to explore using heterogeneous memory management
(HMM) to manage IOMMU page tables and coordinate with mmu_notifiers, and see
if HMM can be optimized to meet the performance goals without involving KVM.
reply other threads:[~2024-01-18 16:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20240118165838.1934853-1-seanjc@google.com \
--to=seanjc@google.com \
--cc=dmatlack@google.com \
--cc=jgg@nvidia.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yan.y.zhao@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
all inboxes | Powered by JetHome®