mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
00a238b1a8
commit
a14a2b0148
3 changed files with 13 additions and 16 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "qemu/osdep.h"
|
||||
#include "qapi/error.h"
|
||||
#include "exec/ram_addr.h"
|
||||
#include "exec/confidential-guest-support.h"
|
||||
#include "hw/s390x/s390-virtio-hcall.h"
|
||||
#include "hw/s390x/sclp.h"
|
||||
#include "hw/s390x/s390_flic.h"
|
||||
|
@ -260,7 +261,9 @@ static void ccw_init(MachineState *machine)
|
|||
s390_init_cpus(machine);
|
||||
|
||||
/* Need CPU model to be determined before we can set up PV */
|
||||
s390_pv_init(machine->cgs, &error_fatal);
|
||||
if (machine->cgs) {
|
||||
confidential_guest_kvm_init(machine->cgs, &error_fatal);
|
||||
}
|
||||
|
||||
s390_flic_init();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue