Re: [PATCH 1/2][4.17] x86emul: further correct 64-bit mode zero count repeated string insn handling

2022-10-19 Thread Jan Beulich
On 10.10.2022 20:56, Andrew Cooper wrote: > On 06/10/2022 14:11, Jan Beulich wrote: >> In an entirely different context I came across Linux commit 428e3d08574b >> ("KVM: x86: Fix zero iterations REP-string"), which points out that >> we're still doing things wrong: For one, there's no zero-extensio

Re: [PATCH 1/2][4.17] x86emul: further correct 64-bit mode zero count repeated string insn handling

2022-10-11 Thread Jan Beulich
On 10.10.2022 20:56, Andrew Cooper wrote: > On 06/10/2022 14:11, Jan Beulich wrote: >> In an entirely different context I came across Linux commit 428e3d08574b >> ("KVM: x86: Fix zero iterations REP-string"), which points out that >> we're still doing things wrong: For one, there's no zero-extensio

Re: [PATCH 1/2][4.17] x86emul: further correct 64-bit mode zero count repeated string insn handling

2022-10-10 Thread Andrew Cooper
On 06/10/2022 14:11, Jan Beulich wrote: > In an entirely different context I came across Linux commit 428e3d08574b > ("KVM: x86: Fix zero iterations REP-string"), which points out that > we're still doing things wrong: For one, there's no zero-extension at > all on AMD. And then while RCX is zero-e

[PATCH 1/2][4.17] x86emul: further correct 64-bit mode zero count repeated string insn handling

2022-10-06 Thread Jan Beulich
In an entirely different context I came across Linux commit 428e3d08574b ("KVM: x86: Fix zero iterations REP-string"), which points out that we're still doing things wrong: For one, there's no zero-extension at all on AMD. And then while RCX is zero-extended from 32 bits uniformly for all string in