qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC v3 8/9] module: introduce MODULE_INIT_ACCEL_CPU


From: Paolo Bonzini
Subject: Re: [RFC v3 8/9] module: introduce MODULE_INIT_ACCEL_CPU
Date: Mon, 23 Nov 2020 14:18:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0

On 23/11/20 10:55, Claudio Fontana wrote:
One idea that came to mind is, why not extend accel.h to user mode?

It already contains

#ifndef CONFIG_USER_ONLY

parts, so maybe it was meant to be used by both, and just happened to
end up confined to include/softmmu ?

Basically I was thinking, we could have an AccelState and an
AccelClass for user mode as well (without bringing in the whole
machine thing), and from there we could use current_accel() to build
up the right name for the chosen accelerator?

Yes, extending the accelerator class to usermode emulation is certainly a good idea.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]