target/arm: Add sve_access_check to ADDVL, ADDPL, RDVL
A message that is not in the archive (sent off-list or not yet received): [email protected]
I don't really know how it usually works here but may I ask why you are turning my patch into your own and putting me as a reporter ? Are you allowed to do that ??
I did not just report a bug, I actually provided the fix and submitted a patch, you can see here that it's timestamped prior to yours (https://patchew.org/QEMU/ ), I was waiting for your reply to send it to the mailing list, so is it fair that yours is the one getting reviewed ?
Thanks,
Regards,
Amir
-----Message d'origine-----
De : Richard Henderson <[email protected]>
Envoyé : jeudi 14 mars 2019 17:33
À : Amir CHARIF <[email protected]>
Objet : [PATCH for-4.0] target/arm: Add sve_access_check to ADDVL, ADDPL, RDVL
[Oops, forgot to cc you in the post to qemu-devel.]
This failed to trap when required, which allowed an EL0 guest to execute with inconsistent data loaded into ZCR_EL1.
--- target/arm/translate-sve.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)
target/arm/translate-sve.c +14 -9
@@ -943,24 +943,30 @@ static bool trans_INDEX_rr(DisasContext *s, arg_INDEX_rr *a)static bool trans_ADDVL (DisasContext *s,arg_ADDVL *a) { -TCGv_i64 rd =cpu_reg_sp (s, a->rd); -TCGv_i64 rn =cpu_reg_sp (s, a->rn); -tcg_gen_addi_i64 (rd, rn, a->imm *vec_full_reg_size (s)); +if (sve_access_check (s)) { +TCGv_i64 rd =cpu_reg_sp (s, a->rd); +TCGv_i64 rn =cpu_reg_sp (s, a->rn); +tcg_gen_addi_i64 (rd, rn, a->imm *vec_full_reg_size (s)); + }return true; }static bool trans_ADDPL (DisasContext *s,arg_ADDPL *a) { -TCGv_i64 rd =cpu_reg_sp (s, a->rd); -TCGv_i64 rn =cpu_reg_sp (s, a->rn); -tcg_gen_addi_i64 (rd, rn, a->imm *pred_full_reg_size (s)); +if (sve_access_check (s)) { +TCGv_i64 rd =cpu_reg_sp (s, a->rd); +TCGv_i64 rn =cpu_reg_sp (s, a->rn); +tcg_gen_addi_i64 (rd, rn, a->imm *pred_full_reg_size (s)); + }return true; }static bool trans_RDVL (DisasContext *s,arg_RDVL *a) { -TCGv_i64 reg =cpu_reg (s, a->rd); -tcg_gen_movi_i64 (reg, a->imm *vec_full_reg_size (s)); +if (sve_access_check (s)) { +TCGv_i64 reg =cpu_reg (s, a->rd); +tcg_gen_movi_i64 (reg, a->imm *vec_full_reg_size (s)); + }return true; } --
2.17.2
Quoted 3 lines · Amir CHARIF
I don't really know how it usually works here but may I ask why you are turning my patch into your own and putting me as a reporter ? Are you allowed to do that ??
I did not just report a bug, I actually provided the fix and submitted a patch, you can see here that it's timestamped prior to yours (https://patchew.org/QEMU/ ), I was waiting for your reply to send it to the mailing list, so is it fair that yours is the one getting reviewed ?
Your emails crossed in the post, so to speak -- yours is timestamped 16:00 but looking at the Received headers # Received: from amir-VirtualBox.intra.cea.fr
# (is233176-dock.intra.cea.fr [10.8.35.126]) by
# muguet2-sys.intra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) # with ESMTP id x2EGY9WN003367; Thu, 14 Mar 2019 17:34:09 +0100
an email system sat on it for half an hour; and then it took 10 or 15 minutes to get through the QEMU mailing list infrastructure, so by the time Richard could have seen your email he would have already sent his version.
This does happen from time to time, because email isn't instantaneous. Richard's happened to get review first because he cc'd some people who might want to review it, which tends to bring it to their attention more.
I'm happy to apply your version.
thanks
-- PMM
Okay, I undestand.
Thank you and sorry for the overreaction,
Cheers,
Amir
-----Message d'origine-----
De : Peter Maydell <[email protected]>
Envoyé : jeudi 14 mars 2019 18:32
À : Amir CHARIF <[email protected]>
Cc : Richard Henderson <[email protected]>; [email protected]; [email protected] Objet : Re: [Qemu-devel] [PATCH for-4.0] target/arm: Add sve_access_check to ADDVL, ADDPL, RDVL
Quoted 3 lines · Amir CHARIF
I don't really know how it usually works here but may I ask why you are turning my patch into your own and putting me as a reporter ? Are you allowed to do that ??
I did not just report a bug, I actually provided the fix and submitted a patch, you can see here that it's timestamped prior to yours (https://patchew.org/QEMU/ ), I was waiting for your reply to send it to the mailing list, so is it fair that yours is the one getting reviewed ?
Your emails crossed in the post, so to speak -- yours is timestamped 16:00 but looking at the Received headers # Received: from amir-VirtualBox.intra.cea.fr # (is233176-dock.intra.cea.fr [10.8.35.126]) by # muguet2-sys.intra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0)
# with ESMTP id x2EGY9WN003367; Thu, 14 Mar 2019 17:34:09 +0100
an email system sat on it for half an hour; and then it took
10 or 15 minutes to get through the QEMU mailing list infrastructure, so by the time Richard could have seen your email he would have already sent his version.
This does happen from time to time, because email isn't instantaneous. Richard's happened to get review first because he cc'd some people who might want to review it, which tends to bring it to their attention more.
I'm happy to apply your version.
thanks
-- PMM