[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v10 05/16] s390x: protvirt: Inhibit balloon when switching to
From: |
Cornelia Huck |
Subject: |
Re: [PATCH v10 05/16] s390x: protvirt: Inhibit balloon when switching to protected mode |
Date: |
Wed, 18 Mar 2020 18:27:53 +0100 |
On Wed, 18 Mar 2020 10:30:36 -0400
Janosch Frank <address@hidden> wrote:
> Ballooning in protected VMs can only be done when the guest shares the
> pages it gives to the host. If pages are not shared, the integrity
> checks will fail once those pages have been altered and are given back
> to the guest.
>
> As we currently do not yet have a solution for this we will continue
> like this:
>
> 1. We block ballooning now in QEMU (with this patch).
>
> 2. Later we will provide a change to virtio that removes the blocker
> and adds VIRTIO_F_IOMMU_PLATFORM automatically by QEMU when doing the
> protvirt switch. This is OK, as the balloon driver in Linux (the only
> supported guest) will refuse to work with the IOMMU_PLATFORM feature
> bit set.
>
> 3. Later, we can fix the guest balloon driver to accept the IOMMU
> feature bit and correctly exercise sharing and unsharing of balloon
> pages.
>
> Signed-off-by: Janosch Frank <address@hidden>
> Reviewed-by: David Hildenbrand <address@hidden>
> Reviewed-by: Christian Borntraeger <address@hidden>
> Reviewed-by: Claudio Imbrenda <address@hidden>
> ---
> hw/s390x/s390-virtio-ccw.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
Reviewed-by: Cornelia Huck <address@hidden>
- [PATCH v10 02/16] Sync pv, (continued)
[PATCH v10 07/16] s390x: Add SIDA memory ops, Janosch Frank, 2020/03/18
[PATCH v10 05/16] s390x: protvirt: Inhibit balloon when switching to protected mode, Janosch Frank, 2020/03/18
- Re: [PATCH v10 05/16] s390x: protvirt: Inhibit balloon when switching to protected mode,
Cornelia Huck <=
[PATCH v10 10/16] s390x: protvirt: Set guest IPL PSW, Janosch Frank, 2020/03/18
[PATCH v10 12/16] s390x: protvirt: Disable address checks for PV guest IO emulation, Janosch Frank, 2020/03/18
[PATCH v10 09/16] s390x: protvirt: SCLP interpretation, Janosch Frank, 2020/03/18
[PATCH v10 11/16] s390x: protvirt: Move diag 308 data over SIDA, Janosch Frank, 2020/03/18