Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1200161 > unrolled thread
| Started by | Alex Williamson <alex.williamson@redhat.com> |
|---|---|
| First post | 2015-08-04 19:00 +0200 |
| Last post | 2015-08-05 12:00 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] KVM: MTRR: Use default type for non-MTRR-covered gfn before WARN_ON Alex Williamson <alex.williamson@redhat.com> - 2015-08-04 19:00 +0200
Re: [PATCH] KVM: MTRR: Use default type for non-MTRR-covered gfn before WARN_ON Xiao Guangrong <guangrong.xiao@linux.intel.com> - 2015-08-05 04:30 +0200
Re: [PATCH] KVM: MTRR: Use default type for non-MTRR-covered gfn before WARN_ON Paolo Bonzini <pbonzini@redhat.com> - 2015-08-05 12:00 +0200
| From | Alex Williamson <alex.williamson@redhat.com> |
|---|---|
| Date | 2015-08-04 19:00 +0200 |
| Subject | [PATCH] KVM: MTRR: Use default type for non-MTRR-covered gfn before WARN_ON |
| Message-ID | <pTNJg-7YT-1@gated-at.bofh.it> |
The patch was munged on commit to re-order these tests resulting in
excessive warnings when trying to do device assignment. Return to
original ordering: https://lkml.org/lkml/2015/7/15/769
Fixes: 3e5d2fdceda1 ("KVM: MTRR: simplify kvm_mtrr_get_guest_memory_type")
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---
For v4.2
arch/x86/kvm/mtrr.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/x86/kvm/mtrr.c b/arch/x86/kvm/mtrr.c
index dc0a84a..9e8bf13 100644
--- a/arch/x86/kvm/mtrr.c
+++ b/arch/x86/kvm/mtrr.c
@@ -672,16 +672,16 @@ u8 kvm_mtrr_get_guest_memory_type(struct kvm_vcpu *vcpu, gfn_t gfn)
if (iter.mtrr_disabled)
return mtrr_disabled_type();
+ /* not contained in any MTRRs. */
+ if (type == -1)
+ return mtrr_default_type(mtrr_state);
+
/*
* We just check one page, partially covered by MTRRs is
* impossible.
*/
WARN_ON(iter.partial_map);
- /* not contained in any MTRRs. */
- if (type == -1)
- return mtrr_default_type(mtrr_state);
-
return type;
}
EXPORT_SYMBOL_GPL(kvm_mtrr_get_guest_memory_type);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Xiao Guangrong <guangrong.xiao@linux.intel.com> |
|---|---|
| Date | 2015-08-05 04:30 +0200 |
| Subject | Re: [PATCH] KVM: MTRR: Use default type for non-MTRR-covered gfn before WARN_ON |
| Message-ID | <pTWCR-4ug-5@gated-at.bofh.it> |
| In reply to | #1200161 |
On 08/05/2015 12:58 AM, Alex Williamson wrote: > The patch was munged on commit to re-order these tests resulting in > excessive warnings when trying to do device assignment. Return to > original ordering: https://lkml.org/lkml/2015/7/15/769 > Reviewed-by: Xiao Guangrong <guangrong.xiao@linux.intel.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Paolo Bonzini <pbonzini@redhat.com> |
|---|---|
| Date | 2015-08-05 12:00 +0200 |
| Subject | Re: [PATCH] KVM: MTRR: Use default type for non-MTRR-covered gfn before WARN_ON |
| Message-ID | <pU3Em-66q-5@gated-at.bofh.it> |
| In reply to | #1200161 |
On 04/08/2015 18:58, Alex Williamson wrote:
> The patch was munged on commit to re-order these tests resulting in
> excessive warnings when trying to do device assignment. Return to
> original ordering: https://lkml.org/lkml/2015/7/15/769
>
> Fixes: 3e5d2fdceda1 ("KVM: MTRR: simplify kvm_mtrr_get_guest_memory_type")
> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Applied, thanks. Sorry for the delay.
Paolo
> ---
>
> For v4.2
>
> arch/x86/kvm/mtrr.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/x86/kvm/mtrr.c b/arch/x86/kvm/mtrr.c
> index dc0a84a..9e8bf13 100644
> --- a/arch/x86/kvm/mtrr.c
> +++ b/arch/x86/kvm/mtrr.c
> @@ -672,16 +672,16 @@ u8 kvm_mtrr_get_guest_memory_type(struct kvm_vcpu *vcpu, gfn_t gfn)
> if (iter.mtrr_disabled)
> return mtrr_disabled_type();
>
> + /* not contained in any MTRRs. */
> + if (type == -1)
> + return mtrr_default_type(mtrr_state);
> +
> /*
> * We just check one page, partially covered by MTRRs is
> * impossible.
> */
> WARN_ON(iter.partial_map);
>
> - /* not contained in any MTRRs. */
> - if (type == -1)
> - return mtrr_default_type(mtrr_state);
> -
> return type;
> }
> EXPORT_SYMBOL_GPL(kvm_mtrr_get_guest_memory_type);
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web