Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1217137
| From | Xiao Guangrong <guangrong.xiao@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [GIT PULL] Early batch of KVM changes for 4.3 merge window |
| Date | 2015-09-02 00:50 +0200 |
| Message-ID | <q42xk-3mq-19@gated-at.bofh.it> (permalink) |
| References | <pXx3c-rb-5@gated-at.bofh.it> <q3HVU-7oG-9@gated-at.bofh.it> <q3Xei-4mR-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 09/02/2015 01:03 AM, Paolo Bonzini wrote:
>
> diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
> index fb16a8ea3dee..3c745f3abde8 100644
> --- a/arch/x86/kvm/mmu.c
> +++ b/arch/x86/kvm/mmu.c
> @@ -3309,13 +3309,13 @@ walk_shadow_page_get_mmio_spte(struct kvm_vcpu *vcpu, u64 addr, u64 *sptep)
>
> walk_shadow_page_lockless_begin(vcpu);
>
> - for (shadow_walk_init(&iterator, vcpu, addr), root = iterator.level;
> + for (shadow_walk_init(&iterator, vcpu, addr),
> + leaf = root = iterator.level;
> shadow_walk_okay(&iterator);
> __shadow_walk_next(&iterator, spte)) {
> - leaf = iterator.level;
> spte = mmu_spte_get_lockless(iterator.sptep);
>
> - sptes[leaf - 1] = spte;
> + sptes[--leaf] = spte;
>
> if (!is_shadow_present_pte(spte))
> break;
> @@ -3329,7 +3329,7 @@ walk_shadow_page_get_mmio_spte(struct kvm_vcpu *vcpu, u64 addr, u64 *sptep)
> if (reserved) {
> pr_err("%s: detect reserved bits on spte, addr 0x%llx, dump hierarchy:\n",
> __func__, addr);
> - while (root >= leaf) {
> + while (root > leaf) {
> pr_err("------ spte 0x%llx level %d.\n",
> sptes[root - 1], root);
> root--;
>
>
> But honestly I haven't even compiled it yet. Xiao, what do you think?
>
It looks good to me!
--
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/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [GIT PULL] Early batch of KVM changes for 4.3 merge window Linus Torvalds <torvalds@linux-foundation.org> - 2015-09-01 02:50 +0200
Re: [GIT PULL] Early batch of KVM changes for 4.3 merge window Xiao Guangrong <guangrong.xiao@linux.intel.com> - 2015-09-01 08:00 +0200
Re: [GIT PULL] Early batch of KVM changes for 4.3 merge window Paolo Bonzini <pbonzini@redhat.com> - 2015-09-01 19:10 +0200
Re: [GIT PULL] Early batch of KVM changes for 4.3 merge window Paolo Bonzini <pbonzini@redhat.com> - 2015-09-01 19:10 +0200
Re: [GIT PULL] Early batch of KVM changes for 4.3 merge window Xiao Guangrong <guangrong.xiao@linux.intel.com> - 2015-09-02 00:50 +0200
csiph-web