public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] kvm: x86/mmu: Skip adding write-access for spte in FNAME(sync_page) and remove shadow_host_writable_mask
@ 2022-12-12 15:32 Lai Jiangshan
  2022-12-12 15:32 ` [PATCH 1/2] kvm: x86/mmu: Reduce the update to the spte in FNAME(sync_page) Lai Jiangshan
  2022-12-12 15:32 ` [PATCH 2/2] kvm: x86/mmu: Remove useless shadow_host_writable_mask Lai Jiangshan
  0 siblings, 2 replies; 7+ messages in thread
From: Lai Jiangshan @ 2022-12-12 15:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: Paolo Bonzini, Sean Christopherson, Lai Jiangshan

From: Lai Jiangshan <jiangshan.ljs@antgroup.com>

shadow_host_writable_mask is used only in FNAME(sync_page) for adding
write-access for spte which can be added in later page fault.

Skip adding it and save a bit from spte.

Lai Jiangshan (2):
  kvm: x86/mmu: Reduce the update to the spte in FNAME(sync_page)
  kvm: x86/mmu: Remove useless shadow_host_writable_mask

 arch/x86/kvm/mmu/paging_tmpl.h | 26 +++++++++++++++++++++--
 arch/x86/kvm/mmu/spte.c        |  8 +------
 arch/x86/kvm/mmu/spte.h        | 38 +++++++++++-----------------------
 3 files changed, 37 insertions(+), 35 deletions(-)

-- 
2.19.1.6.gb485710b


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-01-05 10:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-12 15:32 [PATCH 0/2] kvm: x86/mmu: Skip adding write-access for spte in FNAME(sync_page) and remove shadow_host_writable_mask Lai Jiangshan
2022-12-12 15:32 ` [PATCH 1/2] kvm: x86/mmu: Reduce the update to the spte in FNAME(sync_page) Lai Jiangshan
2022-12-13 18:11   ` Sean Christopherson
2022-12-14 13:47     ` Lai Jiangshan
2022-12-14 19:09       ` Sean Christopherson
2023-01-05 10:08     ` Lai Jiangshan
2022-12-12 15:32 ` [PATCH 2/2] kvm: x86/mmu: Remove useless shadow_host_writable_mask Lai Jiangshan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox