diff for duplicates of <20121114043320.GE13832@drongo> diff --git a/a/1.txt b/N1/1.txt index 2483a21..d6625e4 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -114,7 +114,7 @@ index 4ca4f25..dc0a78d 100644 + + if (psize > 0x1000) { + senc = SLB_VSID_L; -+ if (psize = 0x10000) ++ if (psize == 0x10000) + senc |= SLB_VSID_LP_01; + } + return senc; @@ -122,7 +122,7 @@ index 4ca4f25..dc0a78d 100644 + +static inline int is_vrma_hpte(unsigned long hpte_v) +{ -+ return (hpte_v & ~0xffffffUL) = ++ return (hpte_v & ~0xffffffUL) == + (HPTE_V_1TB_SEG | (VRMA_VSID << (40 - 16))); +} + @@ -258,14 +258,14 @@ index 6ee6516..42a1088 100644 + r = revp->guest_rpte | (hptp[1] & (HPTE_R_R | HPTE_R_C)); + dirty = !!(revp->guest_rpte & HPTE_GR_MODIFIED); + /* only clear modified if this is the right sort of entry */ -+ if (valid = want_valid && dirty) { ++ if (valid == want_valid && dirty) { + r &= ~HPTE_GR_MODIFIED; + revp->guest_rpte = r; + } + asm volatile(PPC_RELEASE_BARRIER "" : : : "memory"); + hptp[0] &= ~HPTE_V_HVLOCK; + preempt_enable(); -+ if (!(valid = want_valid && (first_pass || dirty))) ++ if (!(valid == want_valid && (first_pass || dirty))) + ok = 0; + } + hpte[0] = v; @@ -523,7 +523,7 @@ index 6ee6516..42a1088 100644 + return ret; + } + -+ if (rwflag = O_RDONLY) { ++ if (rwflag == O_RDONLY) { + mutex_lock(&kvm->slots_lock); + atomic_inc(&kvm->arch.hpte_mod_interest); + /* make sure kvmppc_do_h_enter etc. see the increment */ @@ -551,7 +551,7 @@ index 843eb75..a4f59db 100644 - - if (psize > 0x1000) { - senc = SLB_VSID_L; -- if (psize = 0x10000) +- if (psize == 0x10000) - senc |= SLB_VSID_LP_01; - } - return senc; diff --git a/a/content_digest b/N1/content_digest index 14cb50e..5300a7a 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020121114043034.GA13832@drongo\0" "From\0Paul Mackerras <paulus@samba.org>\0" "Subject\0[PATCH 4/4] KVM: PPC: Book3S HV: Provide a method for userspace to read and write the HPT\0" - "Date\0Wed, 14 Nov 2012 04:33:20 +0000\0" + "Date\0Wed, 14 Nov 2012 15:33:20 +1100\0" "To\0Alexander Graf <agraf@suse.de>\0" "Cc\0kvm@vger.kernel.org" " kvm-ppc@vger.kernel.org\0" @@ -123,7 +123,7 @@ "+\n" "+\tif (psize > 0x1000) {\n" "+\t\tsenc = SLB_VSID_L;\n" - "+\t\tif (psize = 0x10000)\n" + "+\t\tif (psize == 0x10000)\n" "+\t\t\tsenc |= SLB_VSID_LP_01;\n" "+\t}\n" "+\treturn senc;\n" @@ -131,7 +131,7 @@ "+\n" "+static inline int is_vrma_hpte(unsigned long hpte_v)\n" "+{\n" - "+\treturn (hpte_v & ~0xffffffUL) =\n" + "+\treturn (hpte_v & ~0xffffffUL) ==\n" "+\t\t(HPTE_V_1TB_SEG | (VRMA_VSID << (40 - 16)));\n" "+}\n" "+\n" @@ -267,14 +267,14 @@ "+\t\tr = revp->guest_rpte | (hptp[1] & (HPTE_R_R | HPTE_R_C));\n" "+\t\tdirty = !!(revp->guest_rpte & HPTE_GR_MODIFIED);\n" "+\t\t/* only clear modified if this is the right sort of entry */\n" - "+\t\tif (valid = want_valid && dirty) {\n" + "+\t\tif (valid == want_valid && dirty) {\n" "+\t\t\tr &= ~HPTE_GR_MODIFIED;\n" "+\t\t\trevp->guest_rpte = r;\n" "+\t\t}\n" "+\t\tasm volatile(PPC_RELEASE_BARRIER \"\" : : : \"memory\");\n" "+\t\thptp[0] &= ~HPTE_V_HVLOCK;\n" "+\t\tpreempt_enable();\n" - "+\t\tif (!(valid = want_valid && (first_pass || dirty)))\n" + "+\t\tif (!(valid == want_valid && (first_pass || dirty)))\n" "+\t\t\tok = 0;\n" "+\t}\n" "+\thpte[0] = v;\n" @@ -532,7 +532,7 @@ "+\t\treturn ret;\n" "+\t}\n" "+\n" - "+\tif (rwflag = O_RDONLY) {\n" + "+\tif (rwflag == O_RDONLY) {\n" "+\t\tmutex_lock(&kvm->slots_lock);\n" "+\t\tatomic_inc(&kvm->arch.hpte_mod_interest);\n" "+\t\t/* make sure kvmppc_do_h_enter etc. see the increment */\n" @@ -560,7 +560,7 @@ "-\n" "-\tif (psize > 0x1000) {\n" "-\t\tsenc = SLB_VSID_L;\n" - "-\t\tif (psize = 0x10000)\n" + "-\t\tif (psize == 0x10000)\n" "-\t\t\tsenc |= SLB_VSID_LP_01;\n" "-\t}\n" "-\treturn senc;\n" @@ -628,4 +628,4 @@ "-- \n" 1.7.10.4 -ce8afc62417f29d83d7e7a5354638bff24ac40322ea38c8175557286e98260ff +b88ccc9e9ea6d72ccbcb69a99011caad9f52a63adccd0676f88e98019291a55a
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.