Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1352933

[RFC PATCH 0/2] KVM: MMU: return page fault error code from permission_fault

From Paolo Bonzini <pbonzini@redhat.com>
Newsgroups linux.kernel
Subject [RFC PATCH 0/2] KVM: MMU: return page fault error code from permission_fault
Date 2016-03-08 12:50 +0100
Message-ID <raojh-hv-37@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Intel's new PKU extension introduces a bit of the page fault error code
that must be dynamically computed after the PTE lookup (unlike I/D, U/S
and W/R).  To ease this, these two patches make permission_fault return
the page fault error code.

Right now it only adds the P bit to the input parameter "pfec", but PKU
can change that.

Paolo

Paolo Bonzini (2):
  KVM: MMU: precompute page fault error code
  KVM: MMU: return page fault error code from permission_fault

 arch/x86/kvm/mmu.c         |  2 +-
 arch/x86/kvm/mmu.h         | 15 ++++++++++-----
 arch/x86/kvm/paging_tmpl.h | 31 +++++++++++++++++--------------
 3 files changed, 28 insertions(+), 20 deletions(-)

-- 
1.8.3.1

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH 0/2] KVM: MMU: return page fault error code from permission_fault Paolo Bonzini <pbonzini@redhat.com> - 2016-03-08 12:50 +0100
  [RFC PATCH 1/2] KVM: MMU: precompute page fault error code Paolo Bonzini <pbonzini@redhat.com> - 2016-03-08 12:50 +0100
    Re: [RFC PATCH 1/2] KVM: MMU: precompute page fault error code Paolo Bonzini <pbonzini@redhat.com> - 2016-03-10 15:10 +0100
    Re: [RFC PATCH 1/2] KVM: MMU: precompute page fault error code Xiao Guangrong <guangrong.xiao@linux.intel.com> - 2016-03-10 15:10 +0100
  [RFC PATCH 2/2] KVM: MMU: return page fault error code from permission_fault Paolo Bonzini <pbonzini@redhat.com> - 2016-03-08 12:50 +0100
    Re: [RFC PATCH 2/2] KVM: MMU: return page fault error code from  permission_fault Xiao Guangrong <guangrong.xiao@linux.intel.com> - 2016-03-10 15:10 +0100
      Re: [RFC PATCH 2/2] KVM: MMU: return page fault error code from  permission_fault Paolo Bonzini <pbonzini@redhat.com> - 2016-03-10 15:10 +0100

csiph-web