mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Xiao Guangrong <guangrong.xiao@linux.intel.com>
To: pbonzini@redhat.com
Cc: gleb@kernel.org, mtosatti@redhat.com, kvm@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Xiao Guangrong <guangrong.xiao@linux.intel.com>
Subject: [PATCH 0/3] KVM: MMU: fix SMAP virtualization
Date: Thu,  7 May 2015 16:20:14 +0800	[thread overview]
Message-ID: <1430986817-6260-1-git-send-email-guangrong.xiao@linux.intel.com> (raw)

There are some bugs in current code:
- the PFEC.RSVD is not always true and KVM reuses this bit to cache
  CPL and flags.AC bit

- the shadow page will be resued for SMAP enabled and SMAP disabled,
  however, user page will be turned to kernel page under some cases
  so that SMAP check is missed on that entry

This patchset fixes these bugs and a test case will be posted out soon

Xiao Guangrong (3):
  KVM: MMU: fix smap permission check
  KVM: MMU: fix SMAP virtualization
  KVM: MMU: document smap_andnot_wp

 Documentation/virtual/kvm/mmu.txt | 18 ++++++++++++++----
 arch/x86/include/asm/kvm_host.h   |  1 +
 arch/x86/kvm/mmu.c                |  7 +++++--
 arch/x86/kvm/mmu.h                |  4 ++--
 arch/x86/kvm/paging_tmpl.h        |  7 +++++++
 arch/x86/kvm/x86.c                |  8 +++-----
 6 files changed, 32 insertions(+), 13 deletions(-)

-- 
2.1.0


             reply	other threads:[~2015-05-07  8:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-07  8:20 Xiao Guangrong [this message]
2015-05-07  8:20 ` [PATCH 1/3] KVM: MMU: fix smap permission check Xiao Guangrong
2015-05-07  9:32   ` Paolo Bonzini
2015-05-07  9:50     ` Xiao Guangrong
2015-05-07  8:20 ` [PATCH 2/3] KVM: MMU: fix SMAP virtualization Xiao Guangrong
2015-05-11 13:17   ` [PATCH v2 " Xiao Guangrong
2015-05-11 13:41     ` Paolo Bonzini
2015-05-07  8:20 ` [PATCH 3/3] KVM: MMU: document smap_andnot_wp Xiao Guangrong

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=1430986817-6260-1-git-send-email-guangrong.xiao@linux.intel.com \
    --to=guangrong.xiao@linux.intel.com \
    --cc=gleb@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --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 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®