Re: [PATCH v3 06/26] target/arm/kvm-rme: Initialize vCPU

2025-02-07 Thread Jean-Philippe Brucker
On Tue, Feb 04, 2025 at 03:02:41PM +1000, Gavin Shan wrote: > > +reg.id = AARCH64_CORE_REG(regs.pc); > > +reg.addr = (uintptr_t) &env->pc; > > +ret = kvm_vcpu_ioctl(cs, KVM_SET_ONE_REG, ®); > > +if (ret) { > > +return ret; > > +} > > + > > +return 0; > > +} > > + >

Re: [PATCH v3 06/26] target/arm/kvm-rme: Initialize vCPU

2025-02-03 Thread Gavin Shan
On 11/26/24 5:56 AM, Jean-Philippe Brucker wrote: The target code calls kvm_arm_vcpu_init() to mark the vCPU as part of a Realm. For a Realm vCPU, only x0-x7 can be set at runtime. Before boot, the PC can also be set, and is ignored at runtime. KVM also accepts a few system register changes durin

[PATCH v3 06/26] target/arm/kvm-rme: Initialize vCPU

2024-11-25 Thread Jean-Philippe Brucker
The target code calls kvm_arm_vcpu_init() to mark the vCPU as part of a Realm. For a Realm vCPU, only x0-x7 can be set at runtime. Before boot, the PC can also be set, and is ignored at runtime. KVM also accepts a few system register changes during initial configuration, as returned by KVM_GET_REG_