From: Cornelia Huck <cohuck@redhat.com>
To: "Víctor Colombo" <victor.colombo@eldorado.org.br>,
qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Cc: clg@kaod.org, danielhb413@gmail.com, david@gibson.dropbear.id.au,
groug@kaod.org, richard.henderson@linaro.org,
victor.colombo@eldorado.org.br, mst@redhat.com,
pbonzini@redhat.com, farosas@linux.ibm.com
Subject: Re: [RFC PATCH v2 1/2] target/ppc: Implement hashst and hashchk
Date: Mon, 11 Jul 2022 16:18:02 +0200 [thread overview]
Message-ID: <87tu7n68dh.fsf@redhat.com> (raw)
In-Reply-To: <20220711134258.63147-2-victor.colombo@eldorado.org.br>
On Mon, Jul 11 2022, Víctor Colombo <victor.colombo@eldorado.org.br> wrote:
> Implementation for instructions hashst and hashchk, which were added
> in Power ISA 3.1B.
>
> It was decided to implement the hash algorithm from ground up in this
> patch exactly as described in Power ISA.
>
> Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
> ---
> linux-headers/asm-powerpc/kvm.h | 2 +
> target/ppc/cpu.h | 1 +
> target/ppc/cpu_init.c | 4 ++
> target/ppc/excp_helper.c | 80 ++++++++++++++++++++++
> target/ppc/helper.h | 2 +
> target/ppc/insn32.decode | 8 +++
> target/ppc/translate.c | 5 ++
> target/ppc/translate/fixedpoint-impl.c.inc | 32 +++++++++
> 8 files changed, 134 insertions(+)
>
> diff --git a/linux-headers/asm-powerpc/kvm.h b/linux-headers/asm-powerpc/kvm.h
> index 9f18fa090f..dd58d574bf 100644
> --- a/linux-headers/asm-powerpc/kvm.h
> +++ b/linux-headers/asm-powerpc/kvm.h
> @@ -646,6 +646,8 @@ struct kvm_ppc_cpu_char {
> #define KVM_REG_PPC_SIER3 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xc3)
> #define KVM_REG_PPC_DAWR1 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xc4)
> #define KVM_REG_PPC_DAWRX1 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xc5)
> +/* FIXME: KVM hasn't exposed these registers yet */
> +#define KVM_REG_PPC_HASHKEYR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x00)
>
> /* Transactional Memory checkpointed state:
> * This is all GPRs, all VSX regs and a subset of SPRs
<editorial>
Please split any header updates into a separate patch (a full header
update or, if the changes are not yet included in Linux, a placeholder
patch. Thank you :)
</editorial>
next prev parent reply other threads:[~2022-07-11 14:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-11 13:42 [RFC PATCH v2 0/2] Implement Power ISA 3.1B hash insns Víctor Colombo
2022-07-11 13:42 ` [RFC PATCH v2 1/2] target/ppc: Implement hashst and hashchk Víctor Colombo
2022-07-11 14:18 ` Cornelia Huck [this message]
2022-07-11 15:30 ` Víctor Colombo
2022-07-11 13:42 ` [RFC PATCH v2 2/2] target/ppc: Implement hashstp and hashchkp Víctor Colombo
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=87tu7n68dh.fsf@redhat.com \
--to=cohuck@redhat.com \
--cc=clg@kaod.org \
--cc=danielhb413@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=farosas@linux.ibm.com \
--cc=groug@kaod.org \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=victor.colombo@eldorado.org.br \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).