[lkml]   [2020]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v11 2/2] s390: virtio: PV needs VIRTIO I/O device protection
On Mon,  7 Sep 2020 11:39:07 +0200
Pierre Morel <> wrote:

> If protected virtualization is active on s390, VIRTIO has only retricted
> access to the guest memory.
> arch_has_restricted_virtio_memory_access to advertize VIRTIO if that's
> the case, preventing a host error on access attempt.

The description is a little inaccurate, but I don't care hence the r-b.

The function arch_has_restricted_virtio_memory_access() returning true
can not prevent the host from attempting to access memory if it decides
to do so. And as far as I know there was no host error on access attempt.
The page gets exported, and the host will operate on the encrypted
page. But in the end we do run into trouble, which is usually fatal for
the guest (not the host).

What we actually do here is the following. If we detect
an ill configured device we fail it (device status field), because
attempting to drive it is a recipe for disaster.

> Signed-off-by: Pierre Morel <>
> Reviewed-by: Cornelia Huck <>

Reviewed-by: Halil Pasic <>

 \ /
  Last update: 2020-09-08 00:37    [W:0.081 / U:0.948 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site