kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lai Jiangshan <jiangshanlai@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: kvm@vger.kernel.org, Lai Jiangshan <laijs@linux.alibaba.com>
Subject: [PATCH 00/12] KVM: X86: misc fixes and cleanup
Date: Wed, 24 Nov 2021 20:20:42 +0800	[thread overview]
Message-ID: <20211124122055.64424-1-jiangshanlai@gmail.com> (raw)

From: Lai Jiangshan <laijs@linux.alibaba.com>

This pacheset has misc fixes and cleanups with loose dependence to each
other.  It includes a prevous patch that inverts and renames
gpte_is_8_bytes.

Ohter patches focus on the usage of vcpu->arch.walk_mmu and
vcpu->arch.mmu, root_level, lpage_level.

Patch 1,4,5,6,7 fixes something, but I don't think path4,5,6,7 are worth
in stable tree.

Lai Jiangshan (12):
  KVM: X86: Fix when shadow_root_level=5 && guest root_level<4
  KVM: X86: Add parameter struct kvm_mmu *mmu into mmu->gva_to_gpa()
  KVM: X86: Remove mmu->translate_gpa
  KVM: X86: Use vcpu->arch.walk_mmu for kvm_mmu_invlpg()
  KVM: X86: Change the type of a parameter of kvm_mmu_invalidate_gva()
    and mmu->invlpg() to gpa_t
  KVM: X86: Add huge_page_level to __reset_rsvds_bits_mask_ept()
  KVM: X86: Add parameter huge_page_level to kvm_init_shadow_ept_mmu()
  KVM: VMX: Use ept_caps_to_lpage_level() in hardware_setup()
  KVM: X86: Rename gpte_is_8_bytes to has_4_byte_gpte and invert the
    direction
  KVM: X86: Remove mmu parameter from load_pdptrs()
  KVM: X86: Check root_level only in fast_pgd_switch()
  KVM: X86: Walk shadow page starting with shadow_root_level

 Documentation/virt/kvm/mmu.rst  |   8 +--
 arch/x86/include/asm/kvm_host.h |  23 ++++----
 arch/x86/kvm/mmu.h              |  16 ++++-
 arch/x86/kvm/mmu/mmu.c          | 100 +++++++++++++++-----------------
 arch/x86/kvm/mmu/mmu_audit.c    |   5 +-
 arch/x86/kvm/mmu/mmutrace.h     |   2 +-
 arch/x86/kvm/mmu/paging_tmpl.h  |  55 ++++--------------
 arch/x86/kvm/mmu/tdp_mmu.c      |   2 +-
 arch/x86/kvm/svm/nested.c       |   4 +-
 arch/x86/kvm/svm/svm.c          |   2 +-
 arch/x86/kvm/vmx/capabilities.h |   9 +++
 arch/x86/kvm/vmx/nested.c       |  12 ++--
 arch/x86/kvm/vmx/vmx.c          |  12 +---
 arch/x86/kvm/x86.c              |  55 +++++++++++-------
 14 files changed, 145 insertions(+), 160 deletions(-)

-- 
2.19.1.6.gb485710b


             reply	other threads:[~2021-11-24 13:42 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-24 12:20 Lai Jiangshan [this message]
2021-11-24 12:20 ` [PATCH 01/12] KVM: X86: Fix when shadow_root_level=5 && guest root_level<4 Lai Jiangshan
2021-12-09  1:16   ` [PATCH 1/12] " Sean Christopherson
2021-12-09  1:21     ` Sean Christopherson
2021-12-10  9:34     ` Lai Jiangshan
2021-11-24 12:20 ` [PATCH 02/12] KVM: X86: Add parameter struct kvm_mmu *mmu into mmu->gva_to_gpa() Lai Jiangshan
2021-11-24 12:20 ` [PATCH 03/12] KVM: X86: Remove mmu->translate_gpa Lai Jiangshan
2021-11-24 12:20 ` [PATCH 04/12] KVM: X86: Use vcpu->arch.walk_mmu for kvm_mmu_invlpg() Lai Jiangshan
2021-11-24 12:20 ` [PATCH 05/12] KVM: X86: Change the type of a parameter of kvm_mmu_invalidate_gva() and mmu->invlpg() to gpa_t Lai Jiangshan
2021-11-24 12:20 ` [PATCH 06/12] KVM: X86: Add huge_page_level to __reset_rsvds_bits_mask_ept() Lai Jiangshan
2021-11-24 12:20 ` [PATCH 07/12] KVM: X86: Add parameter huge_page_level to kvm_init_shadow_ept_mmu() Lai Jiangshan
2021-11-24 12:20 ` [PATCH 08/12] KVM: VMX: Use ept_caps_to_lpage_level() in hardware_setup() Lai Jiangshan
2021-11-24 12:20 ` [PATCH 09/12] KVM: X86: Rename gpte_is_8_bytes to has_4_byte_gpte and invert the direction Lai Jiangshan
2021-11-24 12:20 ` [PATCH 10/12] KVM: X86: Remove mmu parameter from load_pdptrs() Lai Jiangshan
2021-11-24 12:20 ` [PATCH 11/12] KVM: X86: Check root_level only in fast_pgd_switch() Lai Jiangshan
2021-11-26 12:56   ` Paolo Bonzini
2021-11-24 12:20 ` [PATCH 12/12] KVM: X86: Walk shadow page starting with shadow_root_level Lai Jiangshan
2021-11-26 12:58   ` Paolo Bonzini

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=20211124122055.64424-1-jiangshanlai@gmail.com \
    --to=jiangshanlai@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=laijs@linux.alibaba.com \
    --cc=linux-kernel@vger.kernel.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 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).