All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: shannon.zhao@linaro.org
Cc: stable@vger.kernel.org, christoffer.dall@linaro.org,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	Marc Zyngier <marc.zyngier@arm.com>
Subject: Re: [PATCH for 3.14.y stable 11/32] ARM/arm64: KVM: fix use of WnR bit in kvm_is_write_fault()
Date: Mon, 29 Jun 2015 17:13:30 -0700	[thread overview]
Message-ID: <20150630001330.GF29763@kroah.com> (raw)
In-Reply-To: <1433256507-7856-12-git-send-email-shannon.zhao@linaro.org>

On Tue, Jun 02, 2015 at 10:48:06PM +0800, shannon.zhao@linaro.org wrote:
> From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> 
> commit a7d079cea2dffb112e26da2566dd84c0ef1fce97 upstream.
> 
> The ISS encoding for an exception from a Data Abort has a WnR
> bit[6] that indicates whether the Data Abort was caused by a
> read or a write instruction. While there are several fields
> in the encoding that are only valid if the ISV bit[24] is set,
> WnR is not one of them, so we can read it unconditionally.
> 
> Instead of fixing both implementations of kvm_is_write_fault()
> in place, reimplement it just once using kvm_vcpu_dabt_iswrite(),
> which already does the right thing with respect to the WnR bit.
> Also fix up the callers to pass 'vcpu'
> 
> Acked-by: Laszlo Ersek <lersek@redhat.com>
> Acked-by: Marc Zyngier <marc.zyngier@arm.com>
> Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
> ---
>  arch/arm/include/asm/kvm_mmu.h   | 11 -----------
>  arch/arm/kvm/mmu.c               | 10 +++++++++-
>  arch/arm64/include/asm/kvm_mmu.h | 13 -------------
>  3 files changed, 9 insertions(+), 25 deletions(-)

Please always say that you modified the code from the original version,
and _why_ you did such a modification.  Otherwise I'll assume you did
this backport wrong and throw it out.  Like I'm doing now :)

Please fix up and resend all of the remaining of the series you wish to
see added to 3.14-stable.

thanks,

gre k-h

  reply	other threads:[~2015-06-30  0:13 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02 14:47 [PATCH for 3.14.y stable 00/32] Backport fixes of KVM/ARM to 3.14.y stable kernel shannon.zhao
2015-06-02 14:47 ` [PATCH for 3.14.y stable 01/32] arm/arm64: KVM: Fix and refactor unmap_range shannon.zhao
2015-06-02 14:47 ` [PATCH for 3.14.y stable 02/32] ARM: KVM: Unmap IPA on memslot delete/move shannon.zhao
2015-06-02 14:47 ` [PATCH for 3.14.y stable 03/32] ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping shannon.zhao
2015-06-02 14:47 ` [PATCH for 3.14.y stable 04/32] arm64: KVM: export demux regids as KVM_REG_ARM64 shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 05/32] ARM: virt: fix wrong HSCTLR.EE bit setting shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 06/32] ARM64: KVM: store kvm_vcpu_fault_info est_el2 as word shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 07/32] KVM: ARM/arm64: fix non-const declaration of function returning const shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 08/32] KVM: ARM/arm64: fix broken __percpu annotation shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 09/32] KVM: ARM/arm64: avoid returning negative error code as bool shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 10/32] KVM: vgic: return int instead of bool when checking I/O ranges shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 11/32] ARM/arm64: KVM: fix use of WnR bit in kvm_is_write_fault() shannon.zhao
2015-06-30  0:13   ` Greg KH [this message]
2015-06-02 14:48 ` [PATCH for 3.14.y stable 12/32] KVM: ARM: vgic: plug irq injection race shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 13/32] arm/arm64: KVM: Fix set_clear_sgi_pend_reg offset shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 14/32] arm/arm64: KVM: Fix VTTBR_BADDR_MASK and pgd alloc shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 15/32] arm: kvm: fix CPU hotplug shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 16/32] arm/arm64: KVM: fix potential NULL dereference in user_mem_abort() shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 17/32] arm/arm64: KVM: Ensure memslots are within KVM_PHYS_SIZE shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 18/32] arm: kvm: STRICT_MM_TYPECHECKS fix for user_mem_abort shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 19/32] arm64: KVM: fix unmapping with 48-bit VAs shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 20/32] arm/arm64: KVM: vgic: Fix error code in kvm_vgic_create() shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 21/32] arm64/kvm: Fix assembler compatibility of macros shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 22/32] arm/arm64: kvm: drop inappropriate use of kvm_is_mmio_pfn() shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 23/32] arm/arm64: KVM: Don't clear the VCPU_POWER_OFF flag shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 24/32] arm/arm64: KVM: Correct KVM_ARM_VCPU_INIT power off option shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 25/32] arm/arm64: KVM: Reset the HCR on each vcpu when resetting the vcpu shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 26/32] arm/arm64: KVM: Introduce stage2_unmap_vm shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 27/32] arm/arm64: KVM: Don't allow creating VCPUs after vgic_initialized shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 28/32] arm/arm64: KVM: Require in-kernel vgic for the arch timers shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 29/32] arm64: KVM: Fix TLB invalidation by IPA/VMID shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 30/32] arm64: KVM: Fix HCR setting for 32bit guests shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 31/32] arm64: KVM: Do not use pgd_index to index stage-2 pgd shannon.zhao
2015-06-02 14:48 ` [PATCH for 3.14.y stable 32/32] arm/arm64: KVM: Keep elrsr/aisr in sync with software model shannon.zhao
2015-06-27  1:09 ` [PATCH for 3.14.y stable 00/32] Backport fixes of KVM/ARM to 3.14.y stable kernel Greg KH

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=20150630001330.GF29763@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=ard.biesheuvel@linaro.org \
    --cc=christoffer.dall@linaro.org \
    --cc=marc.zyngier@arm.com \
    --cc=shannon.zhao@linaro.org \
    --cc=stable@vger.kernel.org \
    /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.