On Sat, Jun 06, 2026 at 07:21:32AM -0300, Daniel Henrique Barboza wrote:
...
> > I think we can just make RVSP a profile, and rvsp-ref CPU a BARE CPU
> > based on that profile; then set the profile's min SATP to Sv48, and the
> > BARE CPU's max SATP to Sv57.
> > 
> > In this case if any other CPU complying to RVSP is added, it can just
> > reuse the profile.
> 
> Having riscv-server-ref being a profile CPU seems compelling indeed ...
> new CPUs could instance it with .profile = &rvserver-ref to have everything
> already sorted out, we would also have a flag to enable the profile for
> existing cpus, e.g. -cpu rv64,rvserver-ref=on.
> 
> Drew, any thoughts?

As long as the concept of 'profile' is internal to QEMU and we comment its
[ab]use explaining why the riscv-server-ref is modeled that way, then that
sounds good to me. If the concept is exposed to users then I fear we'd
confuse things by inventing profiles that don't exist in the profiles
spec.

Thanks,
drew

Reply via email to