From: "Huang, Kai" <kai.huang@intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
<linux-kernel@vger.kernel.org>, <kvm@vger.kernel.org>
Cc: <yan.y.zhao@intel.com>, <isaku.yamahata@intel.com>,
<binbin.wu@linux.intel.com>, <rick.p.edgecombe@intel.com>
Subject: Re: [PATCH 09/18] KVM: x86/tdp_mmu: Extract root invalid check from tdx_mmu_next_root()
Date: Mon, 16 Dec 2024 20:35:16 +0800 [thread overview]
Message-ID: <9c726906-10d3-47c6-acec-18604eb83e0d@intel.com> (raw)
In-Reply-To: <20241213195711.316050-10-pbonzini@redhat.com>
On 14/12/2024 3:57 am, Paolo Bonzini wrote:
> From: Isaku Yamahata<isaku.yamahata@intel.com>
>
> Extract tdp_mmu_root_match() to check if the root has given types and use
> it for the root page table iterator. It checks only_invalid now.
>
> TDX KVM operates on a shared page table only (Shared-EPT), a mirrored page
> table only (Secure-EPT), or both based on the operation. KVM MMU notifier
> operations only on shared page table. KVM guest_memfd invalidation
> operations only on mirrored page table, and so on. Introduce a centralized
> matching function instead of open coding matching logic in the iterator.
> The next step is to extend the function to check whether the page is shared
> or private
Missing a period at the end of the sentence.
next prev parent reply other threads:[~2024-12-16 12:35 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 19:56 [PATCH v5 00/18] TDX MMU prep series part 1 Paolo Bonzini
2024-12-13 19:56 ` [PATCH 01/18] KVM: x86/mmu: Zap invalid roots with mmu_lock holding for write at uninit Paolo Bonzini
2024-12-13 19:56 ` [PATCH 02/18] KVM: Add member to struct kvm_gfn_range for target alias Paolo Bonzini
2024-12-13 19:56 ` [PATCH 03/18] KVM: x86: Add a VM type define for TDX Paolo Bonzini
2024-12-13 19:56 ` [PATCH 04/18] KVM: x86/mmu: Add an external pointer to struct kvm_mmu_page Paolo Bonzini
2024-12-16 12:31 ` Huang, Kai
2024-12-13 19:56 ` [PATCH 05/18] KVM: x86/mmu: Add an is_mirror member for union kvm_mmu_page_role Paolo Bonzini
2024-12-13 19:56 ` [PATCH 06/18] KVM: x86/mmu: Make kvm_tdp_mmu_alloc_root() return void Paolo Bonzini
2024-12-13 19:57 ` [PATCH 07/18] KVM: x86/tdp_mmu: Take struct kvm in iter loops Paolo Bonzini
2024-12-13 19:57 ` [PATCH 08/18] KVM: x86/mmu: Support GFN direct bits Paolo Bonzini
2024-12-13 19:57 ` [PATCH 09/18] KVM: x86/tdp_mmu: Extract root invalid check from tdx_mmu_next_root() Paolo Bonzini
2024-12-16 12:35 ` Huang, Kai [this message]
2024-12-13 19:57 ` [PATCH 10/18] KVM: x86/tdp_mmu: Introduce KVM MMU root types to specify page table type Paolo Bonzini
2024-12-13 19:57 ` [PATCH 11/18] KVM: x86/tdp_mmu: Take root in tdp_mmu_for_each_pte() Paolo Bonzini
2024-12-13 19:57 ` [PATCH 12/18] KVM: x86/tdp_mmu: Support mirror root for TDP MMU Paolo Bonzini
2024-12-13 19:57 ` [PATCH 13/18] KVM: x86/tdp_mmu: Propagate attr_filter to MMU notifier callbacks Paolo Bonzini
2024-12-17 12:53 ` Yan Zhao
2024-12-13 19:57 ` [PATCH 14/18] KVM: x86/tdp_mmu: Propagate building mirror page tables Paolo Bonzini
2024-12-13 19:57 ` [PATCH 15/18] KVM: x86/tdp_mmu: Propagate tearing down " Paolo Bonzini
2024-12-13 19:57 ` [PATCH 16/18] KVM: x86/tdp_mmu: Take root types for kvm_tdp_mmu_invalidate_all_roots() Paolo Bonzini
2024-12-13 19:57 ` [PATCH 17/18] KVM: x86/tdp_mmu: Don't zap valid mirror roots in kvm_tdp_mmu_zap_all() Paolo Bonzini
2024-12-18 2:49 ` Yan Zhao
2024-12-13 19:57 ` [PATCH 18/18] KVM: x86/mmu: Prevent aliased memslot GFNs Paolo Bonzini
2024-12-18 0:34 ` [PATCH v5 00/18] TDX MMU prep series part 1 Edgecombe, Rick P
2024-12-20 9:32 ` Yan Zhao
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=9c726906-10d3-47c6-acec-18604eb83e0d@intel.com \
--to=kai.huang@intel.com \
--cc=binbin.wu@linux.intel.com \
--cc=isaku.yamahata@intel.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rick.p.edgecombe@intel.com \
--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®