From: Balbir Singh <bsingharora@gmail.com> To: Paul Mackerras <paulus@ozlabs.org> Cc: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> Subject: [RFC][PATCH] Remove duplicate setting of the B field in tlbie Date: Tue, 13 Sep 2016 17:45:34 +1000 [thread overview] Message-ID: <4bbac7fd-ed99-a5c4-1bda-94345b88f18c@gmail.com> (raw) Remove duplicate setting of the the "B" field when doing a tlbie(l). In compute_tlbie_rb(), the "B" field is set again just before returning the rb value to be used for tlbie(l). Signed-off-by: Balbir Singh <bsingharora@gmail.com> --- Quickly boot tested a VM with these changes in kvm with 64k as the page size for the guest. arch/powerpc/include/asm/kvm_book3s_64.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/include/asm/kvm_book3s_64.h b/arch/powerpc/include/asm/kvm_book3s_64.h index 88d17b4..63b6900 100644 --- a/arch/powerpc/include/asm/kvm_book3s_64.h +++ b/arch/powerpc/include/asm/kvm_book3s_64.h @@ -159,7 +159,6 @@ static inline unsigned long compute_tlbie_rb(unsigned long v, unsigned long r, /* This covers 14..54 bits of va*/ rb = (v & ~0x7fUL) << 16; /* AVA field */ - rb |= (v >> HPTE_V_SSIZE_SHIFT) << 8; /* B field */ /* * AVA in v had cleared lower 23 bits. We need to derive * that from pteg index -- 2.5.5
WARNING: multiple messages have this Message-ID (diff)
From: Balbir Singh <bsingharora@gmail.com> To: Paul Mackerras <paulus@ozlabs.org> Cc: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> Subject: [RFC][PATCH] Remove duplicate setting of the B field in tlbie Date: Tue, 13 Sep 2016 07:45:34 +0000 [thread overview] Message-ID: <4bbac7fd-ed99-a5c4-1bda-94345b88f18c@gmail.com> (raw) Remove duplicate setting of the the "B" field when doing a tlbie(l). In compute_tlbie_rb(), the "B" field is set again just before returning the rb value to be used for tlbie(l). Signed-off-by: Balbir Singh <bsingharora@gmail.com> --- Quickly boot tested a VM with these changes in kvm with 64k as the page size for the guest. arch/powerpc/include/asm/kvm_book3s_64.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/include/asm/kvm_book3s_64.h b/arch/powerpc/include/asm/kvm_book3s_64.h index 88d17b4..63b6900 100644 --- a/arch/powerpc/include/asm/kvm_book3s_64.h +++ b/arch/powerpc/include/asm/kvm_book3s_64.h @@ -159,7 +159,6 @@ static inline unsigned long compute_tlbie_rb(unsigned long v, unsigned long r, /* This covers 14..54 bits of va*/ rb = (v & ~0x7fUL) << 16; /* AVA field */ - rb |= (v >> HPTE_V_SSIZE_SHIFT) << 8; /* B field */ /* * AVA in v had cleared lower 23 bits. We need to derive * that from pteg index -- 2.5.5
next reply other threads:[~2016-09-13 7:45 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-09-13 7:45 Balbir Singh [this message] 2016-09-13 7:45 ` [RFC][PATCH] Remove duplicate setting of the B field in tlbie Balbir Singh 2016-09-14 4:55 ` Aneesh Kumar K.V 2016-09-14 4:55 ` Aneesh Kumar K.V 2016-09-14 6:15 ` Balbir Singh 2016-09-14 6:15 ` Balbir Singh
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=4bbac7fd-ed99-a5c4-1bda-94345b88f18c@gmail.com \ --to=bsingharora@gmail.com \ --cc=aneesh.kumar@linux.vnet.ibm.com \ --cc=kvm-ppc@vger.kernel.org \ --cc=kvm@vger.kernel.org \ --cc=paulus@ozlabs.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: linkBe 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.