Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
69a9f69b
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
69a9f69b
编写于
3月 21, 2008
作者:
A
Avi Kivity
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
KVM: Move some x86 specific constants and structures to include/asm-x86
Signed-off-by:
N
Avi Kivity
<
avi@qumranet.com
>
上级
947da538
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
13 deletion
+13
-13
include/asm-x86/kvm_host.h
include/asm-x86/kvm_host.h
+13
-0
include/linux/kvm_host.h
include/linux/kvm_host.h
+0
-13
未找到文件。
include/asm-x86/kvm_host.h
浏览文件 @
69a9f69b
...
...
@@ -20,6 +20,13 @@
#include <asm/desc.h>
#define KVM_MAX_VCPUS 16
#define KVM_MEMORY_SLOTS 32
/* memory slots that does not exposed to userspace */
#define KVM_PRIVATE_MEM_SLOTS 4
#define KVM_PIO_PAGE_OFFSET 1
#define CR3_PAE_RESERVED_BITS ((X86_CR3_PWT | X86_CR3_PCD) - 1)
#define CR3_NONPAE_RESERVED_BITS ((PAGE_SIZE-1) & ~(X86_CR3_PWT | X86_CR3_PCD))
#define CR3_L_MODE_RESERVED_BITS (CR3_NONPAE_RESERVED_BITS | \
...
...
@@ -114,6 +121,12 @@ enum {
#define KVM_NR_MEM_OBJS 40
struct
kvm_guest_debug
{
int
enabled
;
unsigned
long
bp
[
4
];
int
singlestep
;
};
/*
* We don't want allocation failures within the mmu code, so we preallocate
* enough memory for a single page fault in a cache.
...
...
include/linux/kvm_host.h
浏览文件 @
69a9f69b
...
...
@@ -24,13 +24,6 @@
#include <asm/kvm_host.h>
#define KVM_MAX_VCPUS 16
#define KVM_MEMORY_SLOTS 32
/* memory slots that does not exposed to userspace */
#define KVM_PRIVATE_MEM_SLOTS 4
#define KVM_PIO_PAGE_OFFSET 1
/*
* vcpu->requests bit members
*/
...
...
@@ -43,12 +36,6 @@
struct
kvm_vcpu
;
extern
struct
kmem_cache
*
kvm_vcpu_cache
;
struct
kvm_guest_debug
{
int
enabled
;
unsigned
long
bp
[
4
];
int
singlestep
;
};
/*
* It would be nice to use something smarter than a linear search, TBD...
* Thankfully we dont expect many devices to register (famous last words :),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录