[0/2] kvm: x86/mmu: Skip adding write-access for spte in FNAME(sync_page) and remove shadow_host_writable_mask

Message ID 20221212153205.3360-1-jiangshanlai@gmail.com
Headers
Series kvm: x86/mmu: Skip adding write-access for spte in FNAME(sync_page) and remove shadow_host_writable_mask |

Message

Lai Jiangshan Dec. 12, 2022, 3:32 p.m. UTC
  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(-)