Joerg Roedel
2021-Nov-19 08:36 UTC
[PATCH] Fix SEV-ES INS/OUTS instructions for word, dword, and qword.
Hi Michael, On Wed, Nov 17, 2021 at 06:13:26PM -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.Thanks for fixing this! When you re-send, please change the subject to x86/sev-es: Fix SEV-ES INS/OUTS instructions for word, dword, and qword Regards, -- J?rg R?del jroedel at suse.de SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 N?rnberg Germany (HRB 36809, AG N?rnberg) Gesch?ftsf?hrer: Ivo Totev