On 1/27/23 05:07, Jean-Philippe Brucker wrote:
--- a/target/arm/kvm-rme.c +++ b/target/arm/kvm-rme.c @@ -118,6 +118,16 @@ int kvm_arm_rme_init(ConfidentialGuestSupport *cgs, Error **errp) return 0; }+int kvm_arm_rme_vcpu_init(CPUState *cs)+{ + ARMCPU *cpu = ARM_CPU(cs); + + if (kvm_arm_rme_enabled()) { + cpu->kvm_rme = true; + } + return 0; +}
So... harking back to patch 3, how may times are we going to query the cast of machine->cgs to TYPE_RME_GUEST before we save this value?
r~