mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
port qemu-kvm's on_vcpu code
run_on_cpu allows to execute work on a given CPUState context. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
1fbb22e5f8
commit
e82bcec25f
4 changed files with 64 additions and 0 deletions
|
|
@ -249,6 +249,14 @@ void qemu_notify_event(void);
|
|||
void qemu_cpu_kick(void *env);
|
||||
int qemu_cpu_self(void *env);
|
||||
|
||||
/* work queue */
|
||||
struct qemu_work_item {
|
||||
struct qemu_work_item *next;
|
||||
void (*func)(void *data);
|
||||
void *data;
|
||||
int done;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
#define qemu_init_vcpu(env) do { } while (0)
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue