From: Lai Jiangshan <jiangshanlai@gmail.com>
To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
Paolo Bonzini <pbonzini@redhat.com>
Cc: Lai Jiangshan <laijs@linux.alibaba.com>
Subject: [PATCH 0/4] KVM: X86: Improve permission_fault() for SMAP
Date: Tue, 7 Dec 2021 17:50:35 +0800 [thread overview]
Message-ID: <20211207095039.53166-1-jiangshanlai@gmail.com> (raw)
From: Lai Jiangshan <laijs@linux.alibaba.com>
permission_fault() calls two callbacks to get CPL and RFLAGS for SMAP,
but it is unneeded for some cases, this patchset improves it.
Lai Jiangshan (4):
KVM: X86: Fix comments in update_permission_bitmask
KVM: X86: Rename variable smap to not_smap in permission_fault()
KVM: X86: Handle implicit supervisor access with SMAP
KVM: X86: Only get rflags when needed in permission_fault()
arch/x86/include/asm/kvm_host.h | 9 +++++++
arch/x86/kvm/mmu.h | 45 +++++++++++++++++++++------------
arch/x86/kvm/mmu/mmu.c | 8 +++---
arch/x86/kvm/x86.c | 20 ++++++++++++---
4 files changed, 59 insertions(+), 23 deletions(-)
--
2.19.1.6.gb485710b
next reply other threads:[~2021-12-07 9:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-07 9:50 Lai Jiangshan [this message]
2021-12-07 9:50 ` [PATCH 1/4] KVM: X86: Fix comments in update_permission_bitmask Lai Jiangshan
2021-12-07 9:50 ` [PATCH 2/4] KVM: X86: Rename variable smap to not_smap in permission_fault() Lai Jiangshan
2021-12-07 9:50 ` [PATCH 3/4] KVM: X86: Handle implicit supervisor access with SMAP Lai Jiangshan
2021-12-07 21:52 ` Sean Christopherson
2021-12-07 23:30 ` Lai Jiangshan
2021-12-08 9:12 ` Paolo Bonzini
2021-12-07 9:50 ` [PATCH 4/4] KVM: X86: Only get rflags when needed in permission_fault() Lai Jiangshan
2021-12-07 21:57 ` Sean Christopherson
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=20211207095039.53166-1-jiangshanlai@gmail.com \
--to=jiangshanlai@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=laijs@linux.alibaba.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.