[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC/PATCH v0 10/12] gunyah: CPU execution loop
From: |
Srivatsa Vaddagiri |
Subject: |
Re: [RFC/PATCH v0 10/12] gunyah: CPU execution loop |
Date: |
Thu, 12 Oct 2023 17:55:59 +0530 |
* Philippe Mathieu-Daud? <philmd@linaro.org> [2023-10-12 06:43:38]:
> > -void *gunyah_cpu_thread_fn(void *arg)
> > -{
> > - CPUState *cpu = arg;
> > -
> > - do {
> > - /* Do nothing */
> > - } while (!cpu->unplug || cpu_can_run(cpu));
> > -
> > - return NULL;
> > -}
>
> This diff could be nicer if you define gunyah_cpu_thread_fn()
> in the final place in previous patches, so you don't need to
> move it here.
Sure.
> > diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
> > index fdcbe87352..b3901e134d 100644
> > --- a/include/hw/core/cpu.h
> > +++ b/include/hw/core/cpu.h
> > @@ -240,6 +240,7 @@ typedef struct SavedIOTLB {
> > struct KVMState;
> > struct kvm_run;
> > +struct gh_vcpu_run;
> > /* work queue */
> > @@ -443,6 +444,11 @@ struct CPUState {
> > /* track IOMMUs whose translations we've cached in the TCG TLB */
> > GArray *iommu_notifiers;
> > +
> > + struct {
> > + int fd;
> > + struct gh_vcpu_run *run;
> > + } gunyah;
>
> NACK. Please declare as struct AccelCPUState in gunyah_int.h.
Ok thanks for that input. Will address it next version.
- vatsa
- [RFC/PATCH v0 00/12] Gunyah hypervisor support, Srivatsa Vaddagiri, 2023/10/11
- [RFC/PATCH v0 08/12] gunyah: Specific device-tree location, Srivatsa Vaddagiri, 2023/10/11
- [RFC/PATCH v0 09/12] gunyah: Customize device-tree, Srivatsa Vaddagiri, 2023/10/11
- [RFC/PATCH v0 10/12] gunyah: CPU execution loop, Srivatsa Vaddagiri, 2023/10/11
- [RFC/PATCH v0 11/12] gunyah: Workarounds (NOT FOR MERGE), Srivatsa Vaddagiri, 2023/10/11
- [RFC/PATCH v0 02/12] update-linux-headers: Include gunyah.h, Srivatsa Vaddagiri, 2023/10/11
- [RFC/PATCH v0 03/12] gunyah: Basic support, Srivatsa Vaddagiri, 2023/10/11
- [RFC/PATCH v0 04/12] gunyah: Add VM properties, Srivatsa Vaddagiri, 2023/10/11
- [RFC/PATCH v0 07/12] gunyah: Add gicv3 interrupt controller, Srivatsa Vaddagiri, 2023/10/11
- [RFC/PATCH v0 12/12] gunyah: Documentation, Srivatsa Vaddagiri, 2023/10/11