Just one random thought. What if we turn on all vCPUs when their VMs are loaded? vCPUs are making progress only when they are assigned to physical CPUs. So, conceptually, isn't it safe to assume that all vCPUs are on immediately when VMs are loaded except they will begin making progress when some physical CPUs begin executing them?
--
You received this message because you are subscribed to the Google Groups "Hafnium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hafnium-discu...@googlegroups.com.
To post to this group, send email to hafnium...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/hafnium-discuss/CAHvD%3DH8DiWN1m%3DtP0nSr_a%3DJkW3dLO7Mh-_nTfRz1pfqFsXL5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web, visit https://groups.google.com/d/msgid/hafnium-discuss/CADcWuH0tkeJ7SA2Oi7-eC_LnccQjNfPndhasBJ%3DtNg1zU6OycA%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/hafnium-discuss/CAHvD%3DH8OsevHLn6Ch8-_%2BaKC0ApVUfrAx8wVjSgdFoNPzAPn2A%40mail.gmail.com.
run. Once this is done then hf_vcpu_run can run it. So we can't call vcpu_on(...) until the VM is ready for the vCPU to run, and has provided somewhere for it to start executing, which it does with a PSCI call.
run. Once this is done then hf_vcpu_run can run it. So we can't call vcpu_on(...) until the VM is ready for the vCPU to run, and has provided somewhere for it to start executing, which it does with a PSCI call.vcpu_seondary_reset_and_start() is called within load_secondary() for vCPU[0]. So, at least, the VM is ready to run vCPU[0] when its loading gets completed in vpcu_secondary_reset_and_start()'s while loop?If so, in theory, we can also turn on other vCPUs except we may not want to introduce concurrency at the very beginning of VM initiation. Effectively, we want to let the VM make its own discussion when to initiate concurrency?