16 Sep, 2020

1 commit


25 Apr, 2020

1 commit

  • The kernel fails to compile with CONFIG_PROTECTED_VIRTUALIZATION_GUEST
    set but CONFIG_KVM unset.

    This patch fixes the issue by making the needed variable always available.

    Link: https://lkml.kernel.org/r/20200423120114.2027410-1-imbrenda@linux.ibm.com
    Fixes: a0f60f843199 ("s390/protvirt: Add sysfs firmware interface for Ultravisor information")
    Reported-by: kbuild test robot
    Reported-by: Philipp Rudo
    Suggested-by: Philipp Rudo
    Reviewed-by: David Hildenbrand
    Reviewed-by: Cornelia Huck
    Reviewed-by: Vasily Gorbik
    Acked-by: Christian Borntraeger
    Signed-off-by: Claudio Imbrenda
    Signed-off-by: Vasily Gorbik

    Claudio Imbrenda
     

28 Feb, 2020

1 commit

  • Add "prot_virt" command line option which controls if the kernel
    protected VMs support is enabled at early boot time. This has to be
    done early, because it needs large amounts of memory and will disable
    some features like STP time sync for the lpar.

    Extend ultravisor info definitions and expose it via uv_info struct
    filled in during startup.

    Signed-off-by: Vasily Gorbik
    Reviewed-by: Thomas Huth
    Acked-by: David Hildenbrand
    Reviewed-by: Cornelia Huck
    Acked-by: Christian Borntraeger
    [borntraeger@de.ibm.com: patch merging, splitting, fixing]
    Signed-off-by: Christian Borntraeger

    Vasily Gorbik
     

12 Feb, 2020

1 commit

  • The query parameter block might contain additional information and can
    be extended in the future. If the size of the block does not suffice we
    get an error code of rc=0x100. The buffer will contain all information
    up to the specified size and the hypervisor/guest simply do not need the
    additional information as they do not know about the new data. That
    means that we can (and must) accept rc=0x100 as success.

    Cc: stable@vger.kernel.org
    Reviewed-by: Cornelia Huck
    Fixes: 5abb9351dfd9 ("s390/uv: introduce guest side ultravisor code")
    Signed-off-by: Christian Borntraeger
    Signed-off-by: Vasily Gorbik

    Christian Borntraeger
     

10 Apr, 2019

1 commit

  • The Ultravisor Call Facility (stfle bit 158) defines an API to the
    Ultravisor (UV calls), a mini hypervisor located at machine
    level. With help of the Ultravisor, KVM will be able to run
    "protected" VMs, special VMs whose memory and management data are
    unavailable to KVM.

    The protected VMs can also request services from the Ultravisor.
    The guest api consists of UV calls to share and unshare memory with the
    kvm hypervisor.

    To enable this feature support PROTECTED_VIRTUALIZATION_GUEST kconfig
    option has been introduced.

    Co-developed-by: Janosch Frank
    Signed-off-by: Janosch Frank
    Signed-off-by: Vasily Gorbik
    Signed-off-by: Martin Schwidefsky

    Vasily Gorbik