All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20180416043240.8796-6-npiggin@gmail.com>

diff --git a/a/1.txt b/N1/1.txt
index 5d5abe0..b81d04d 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -62,7 +62,7 @@ index dab6b622011c..2d3af22f90dd 100644
 -							gfn, PMD_SIZE);
 +
 +		/* PTE was previously valid, so update it */
-+		if (pte_val(old_pte) = pte_val(pte)) {
++		if (pte_val(old_pte) == pte_val(pte)) {
 +			ret = -EAGAIN;
 +			goto out_unlock;
  		}
@@ -76,13 +76,13 @@ index dab6b622011c..2d3af22f90dd 100644
 +					0, pte_val(pte), lgpa, PMD_SHIFT);
 +		ret = 0;
 +		goto out_unlock;
- 	} else if (level = 1 && !pmd_none(*pmd)) {
+ 	} else if (level == 1 && !pmd_none(*pmd)) {
  		/*
  		 * There's a page table page here, but we wanted
 @@ -274,6 +278,8 @@ static int kvmppc_create_pte(struct kvm *kvm, pte_t pte, unsigned long gpa,
  		goto out_unlock;
  	}
- 	if (level = 0) {
+ 	if (level == 0) {
 +		pte_t old_pte;
 +
  		if (pmd_none(*pmd)) {
@@ -102,7 +102,7 @@ index dab6b622011c..2d3af22f90dd 100644
 +		old_pte = *ptep;
 +		if (pte_present(old_pte)) {
 +			/* PTE was previously valid, so update it */
-+			if (pte_val(old_pte) = pte_val(pte)) {
++			if (pte_val(old_pte) == pte_val(pte)) {
 +				ret = -EAGAIN;
 +				goto out_unlock;
 +			}
diff --git a/a/content_digest b/N1/content_digest
index a6c39db..073035d 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\020180416043240.8796-1-npiggin@gmail.com\0"
  "From\0Nicholas Piggin <npiggin@gmail.com>\0"
- "Subject\0[PATCH v2 5/5] KVM: PPC: Book3S HV: radix do not clear partition scoped page table when page fault r\0"
- "Date\0Mon, 16 Apr 2018 04:32:40 +0000\0"
+ "Subject\0[PATCH v2 5/5] KVM: PPC: Book3S HV: radix do not clear partition scoped page table when page fault races with other vCPUs.\0"
+ "Date\0Mon, 16 Apr 2018 14:32:40 +1000\0"
  "To\0kvm-ppc@vger.kernel.org\0"
  "Cc\0Nicholas Piggin <npiggin@gmail.com>"
  " linuxppc-dev@lists.ozlabs.org\0"
@@ -71,7 +71,7 @@
  "-\t\t\t\t\t\t\tgfn, PMD_SIZE);\n"
  "+\n"
  "+\t\t/* PTE was previously valid, so update it */\n"
- "+\t\tif (pte_val(old_pte) = pte_val(pte)) {\n"
+ "+\t\tif (pte_val(old_pte) == pte_val(pte)) {\n"
  "+\t\t\tret = -EAGAIN;\n"
  "+\t\t\tgoto out_unlock;\n"
  " \t\t}\n"
@@ -85,13 +85,13 @@
  "+\t\t\t\t\t0, pte_val(pte), lgpa, PMD_SHIFT);\n"
  "+\t\tret = 0;\n"
  "+\t\tgoto out_unlock;\n"
- " \t} else if (level = 1 && !pmd_none(*pmd)) {\n"
+ " \t} else if (level == 1 && !pmd_none(*pmd)) {\n"
  " \t\t/*\n"
  " \t\t * There's a page table page here, but we wanted\n"
  "@@ -274,6 +278,8 @@ static int kvmppc_create_pte(struct kvm *kvm, pte_t pte, unsigned long gpa,\n"
  " \t\tgoto out_unlock;\n"
  " \t}\n"
- " \tif (level = 0) {\n"
+ " \tif (level == 0) {\n"
  "+\t\tpte_t old_pte;\n"
  "+\n"
  " \t\tif (pmd_none(*pmd)) {\n"
@@ -111,7 +111,7 @@
  "+\t\told_pte = *ptep;\n"
  "+\t\tif (pte_present(old_pte)) {\n"
  "+\t\t\t/* PTE was previously valid, so update it */\n"
- "+\t\t\tif (pte_val(old_pte) = pte_val(pte)) {\n"
+ "+\t\t\tif (pte_val(old_pte) == pte_val(pte)) {\n"
  "+\t\t\t\tret = -EAGAIN;\n"
  "+\t\t\t\tgoto out_unlock;\n"
  "+\t\t\t}\n"
@@ -129,4 +129,4 @@
  "-- \n"
  2.17.0
 
-d233fa2c3b1f2150490cc8b5371a4ee6356cd318a00ecb2fa93e3f6f2756429f
+d5d5ebb8de87fbbc656bf37f1abb33b791ee09493016b81f3593f1ca54aa0c9d

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.