Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
7277e027
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7277e027
编写于
4月 12, 2010
作者:
B
Blue Swirl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix build when configured with --enable-io-thread
Signed-off-by:
N
Blue Swirl
<
blauwirbel@gmail.com
>
上级
24f7fb19
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
21 addition
and
12 deletion
+21
-12
cpus.c
cpus.c
+16
-0
cpus.h
cpus.h
+3
-1
vl.c
vl.c
+2
-11
未找到文件。
cpus.c
浏览文件 @
7277e027
...
...
@@ -33,6 +33,12 @@
#include "cpus.h"
#ifdef SIGRTMIN
#define SIG_IPI (SIGRTMIN+4)
#else
#define SIG_IPI SIGUSR1
#endif
static
CPUState
*
cur_cpu
;
static
CPUState
*
next_cpu
;
...
...
@@ -226,6 +232,10 @@ int qemu_init_main_loop(void)
return
qemu_event_init
();
}
void
qemu_main_loop_start
(
void
)
{
}
void
qemu_init_vcpu
(
void
*
_env
)
{
CPUState
*
env
=
_env
;
...
...
@@ -318,6 +328,12 @@ int qemu_init_main_loop(void)
return
0
;
}
void
qemu_main_loop_start
(
void
)
{
qemu_system_ready
=
1
;
qemu_cond_broadcast
(
&
qemu_system_cond
);
}
static
void
qemu_wait_io_event_common
(
CPUState
*
env
)
{
if
(
env
->
stop
)
{
...
...
cpus.h
浏览文件 @
7277e027
#ifndef QEMU_CPUS_H
#define QEMU_CPUS_H
/* cpu
-common
.c */
/* cpu
s
.c */
int
qemu_init_main_loop
(
void
);
void
qemu_main_loop_start
(
void
);
void
resume_all_vcpus
(
void
);
void
pause_all_vcpus
(
void
);
...
...
@@ -10,6 +11,7 @@ void pause_all_vcpus(void);
extern
int
smp_cores
;
extern
int
smp_threads
;
extern
int
debug_requested
;
extern
int
vmstop_requested
;
void
vm_state_notify
(
int
running
,
int
reason
);
bool
tcg_cpu_exec
(
void
);
void
set_numa_modes
(
void
);
...
...
vl.c
浏览文件 @
7277e027
...
...
@@ -244,12 +244,6 @@ int kvm_allowed = 0;
uint32_t
xen_domid
;
enum
xen_mode
xen_mode
=
XEN_EMULATE
;
#ifdef SIGRTMIN
#define SIG_IPI (SIGRTMIN+4)
#else
#define SIG_IPI SIGUSR1
#endif
static
int
default_serial
=
1
;
static
int
default_parallel
=
1
;
static
int
default_virtcon
=
1
;
...
...
@@ -1717,7 +1711,7 @@ static int reset_requested;
static
int
shutdown_requested
;
static
int
powerdown_requested
;
int
debug_requested
;
static
int
vmstop_requested
;
int
vmstop_requested
;
int
qemu_shutdown_requested
(
void
)
{
...
...
@@ -1955,10 +1949,7 @@ static void main_loop(void)
{
int
r
;
#ifdef CONFIG_IOTHREAD
qemu_system_ready
=
1
;
qemu_cond_broadcast
(
&
qemu_system_cond
);
#endif
qemu_main_loop_start
();
for
(;;)
{
do
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录