# Re: \[PATCH 4/6\] Revert "x86/sev-es: Handle string port IO to kernel memory properly"

- From: Joerg Roedel \<joro@8bytes.org\>
- Date: 2021-05-19 12:22:56 
- List: virtualization
- Page: https://ratatoskr.run/virtualization/2021/05/1383372
- Thread: https://ratatoskr.run/stable/2021/05/1373030/t.md

```text
On Wed, May 12, 2021 at 05:38:29PM +0000, Sean Christopherson wrote:
> Alternatively, and probably even better, fold this revert into the switch to
> the unchecked version (sounds like those will use kernel-specific flavors?).

I folded this revert into the previous commit. But I kept the
__get_user()/__put_user() calls and just added a comment explaining why
they are used and why it is safe to use them.

After all, even the get_kernel*() functions call __get_user_size() under
the hood.

Regards,

	Joerg
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
```
