* Re: [PATCH v2] x86/sev-es: Fix SEV-ES INS/OUTS instructions for word, dword, and qword
[not found] <20211119232757.176201-1-sterritt@google.com>
@ 2021-11-24 13:28 ` Joerg Roedel
0 siblings, 0 replies; only message in thread
From: Joerg Roedel @ 2021-11-24 13:28 UTC (permalink / raw)
To: Michael Sterritt
Cc: Tom Lendacky, x86, kvm, Peter Zijlstra, Dave Hansen, linux-kernel,
virtualization, marcorr, Ingo Molnar, Borislav Petkov, linux-coco,
pgonda, H. Peter Anvin, Paolo Bonzini, Thomas Gleixner
On Fri, Nov 19, 2021 at 03:27:57PM -0800, Michael Sterritt wrote:
> Properly type the operands being passed to __put_user()/__get_user().
> Otherwise, these routines truncate data for dependent instructions
> (e.g., INSW) and only read/write one byte.
>
> Tested: Tested by sending a string with `REP OUTSW` to a port and then
> reading it back in with `REP INSW` on the same port. Previous behavior
> was to only send and receive the first char of the size. For example,
> word operations for "abcd" would only read/write "ac". With change, the
> full string is now written and read back.
>
> Fixes: f980f9c31a923 (x86/sev-es: Compile early handler code into kernel image)
> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
> Reviewed-by: Marc Orr <marcorr@google.com>
> Reviewed-by: Peter Gonda <pgonda@google.com>
> Signed-off-by: Michael Sterritt <sterritt@google.com>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
^ permalink raw reply [flat|nested] only message in thread