[PATCH v3 65/68] accel/hvf: Register init/exec/destroy vcpu hooks

Philippe Mathieu-Daudé posted 68 patches 7 months, 1 week ago
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Cameron Esfahani <dirty@apple.com>, Roman Bolshakov <rbolshakov@ddn.com>, Phil Dennis-Jordan <phil@philjordan.eu>, Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>, Stefano Stabellini <sstabellini@kernel.org>, Anthony PERARD <anthony@xenproject.org>, Paul Durrant <paul@xen.org>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Warner Losh <imp@bsdimp.com>, Kyle Evans <kevans@freebsd.org>, "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, "Dr. David Alan Gilbert" <dave@treblig.org>, Eduardo Habkost <eduardo@habkost.net>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Yanan Wang <wangyanan55@huawei.com>, Zhao Liu <zhao1.liu@intel.com>, Reinoud Zandijk <reinoud@netbsd.org>, Sunil Muthuswamy <sunilmut@microsoft.com>, Eric Blake <eblake@redhat.com>, Markus Armbruster <armbru@redhat.com>, Peter Xu <peterx@redhat.com>, David Hildenbrand <david@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Alexander Graf <agraf@csgraf.de>
There is a newer version of this series
[PATCH v3 65/68] accel/hvf: Register init/exec/destroy vcpu hooks
Posted by Philippe Mathieu-Daudé 7 months, 1 week ago
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 accel/hvf/hvf-accel-ops.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/accel/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c
index b61f08330f1..d2b3217f145 100644
--- a/accel/hvf/hvf-accel-ops.c
+++ b/accel/hvf/hvf-accel-ops.c
@@ -354,7 +354,10 @@ static void hvf_accel_ops_class_init(ObjectClass *oc, const void *data)
     ops->cpu_target_realize = hvf_arch_cpu_realize;
 
     ops->cpu_thread_routine = hvf_cpu_thread_fn,
+    ops->init_vcpu_thread = hvf_init_vcpu,
     ops->kick_vcpu_thread = hvf_kick_vcpu_thread;
+    ops->exec_vcpu_thread = hvf_vcpu_exec;
+    ops->destroy_vcpu_thread = hvf_vcpu_destroy;
 
     ops->synchronize_post_reset = hvf_cpu_synchronize_post_reset;
     ops->synchronize_post_init = hvf_cpu_synchronize_post_init;
-- 
2.49.0


Re: [PATCH v3 65/68] accel/hvf: Register init/exec/destroy vcpu hooks
Posted by Richard Henderson 7 months, 1 week ago
On 7/1/25 08:40, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   accel/hvf/hvf-accel-ops.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/accel/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c
> index b61f08330f1..d2b3217f145 100644
> --- a/accel/hvf/hvf-accel-ops.c
> +++ b/accel/hvf/hvf-accel-ops.c
> @@ -354,7 +354,10 @@ static void hvf_accel_ops_class_init(ObjectClass *oc, const void *data)
>       ops->cpu_target_realize = hvf_arch_cpu_realize;
>   
>       ops->cpu_thread_routine = hvf_cpu_thread_fn,
> +    ops->init_vcpu_thread = hvf_init_vcpu,
>       ops->kick_vcpu_thread = hvf_kick_vcpu_thread;
> +    ops->exec_vcpu_thread = hvf_vcpu_exec;
> +    ops->destroy_vcpu_thread = hvf_vcpu_destroy;
>   
>       ops->synchronize_post_reset = hvf_cpu_synchronize_post_reset;
>       ops->synchronize_post_init = hvf_cpu_synchronize_post_init;

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~