diff options
author | Xiaoyao Li <xiaoyao.li@intel.com> | 2024-02-29 01:00:38 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-23 17:35:25 +0200 |
commit | a14a2b0148e657cc526b7a75f2a1937628764e7a (patch) | |
tree | ff7436e59b1100db407c4bcdc790bb8de81e304d /target/s390x/kvm/pv.h | |
parent | 00a238b1a845fd5f0acd771664c5e184a63ed9b6 (diff) |
s390: Switch to use confidential_guest_kvm_init()
Use unified confidential_guest_kvm_init() for consistency with
other architectures.
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Message-Id: <20240229060038.606591-1-xiaoyao.li@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/s390x/kvm/pv.h')
-rw-r--r-- | target/s390x/kvm/pv.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/target/s390x/kvm/pv.h b/target/s390x/kvm/pv.h index 5877d28ff1..4b40817439 100644 --- a/target/s390x/kvm/pv.h +++ b/target/s390x/kvm/pv.h @@ -80,18 +80,4 @@ static inline int kvm_s390_dump_mem_state(uint64_t addr, size_t len, static inline int kvm_s390_dump_completion_data(void *buff) { return 0; } #endif /* CONFIG_KVM */ -int s390_pv_kvm_init(ConfidentialGuestSupport *cgs, Error **errp); -static inline int s390_pv_init(ConfidentialGuestSupport *cgs, Error **errp) -{ - if (!cgs) { - return 0; - } - if (kvm_enabled()) { - return s390_pv_kvm_init(cgs, errp); - } - - error_setg(errp, "Protected Virtualization requires KVM"); - return -1; -} - #endif /* HW_S390_PV_H */ |